[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Confuse-devel] --enable-shared not working for me
From: |
Martin Hedenfalk |
Subject: |
Re: [Confuse-devel] --enable-shared not working for me |
Date: |
Fri, 13 Aug 2004 12:54:28 +0200 |
Hi,
The shared library _is_ built, but it's named
src/.libs/libconfuse.0.0.0, without the .so extension. If you do a make
install, both the static library (libconfuse.a) and the shared library
(libconfuse.0.0.0) should be installed in /usr/local/lib.
I'm not sure why the .so extension is not added though...
/martin
On Fri, 2004-08-13 at 04:40, Brett Russ wrote:
> Martin Hedenfalk wrote:
> > I've released version 2.4 now which I believe fixes those problems.
>
> Hmm, still no luck for me Martin. I'm attaching a log file of what I
> did with 2.4. This log file shows my attempt with `configure
> --enable-shared` followed by `make`. I also tried (but didn't log)
> `configure --enabled-shared --disable-static` followed by `make` and
> that also did not produce a shared object.
>
> If this runs for you we should figure out what is different about our
> environments?
>
> Thanks,
> BR
>
> ______________________________________________________________________
> address@hidden:~/dload/confuse-2.4> ./configure --enable-shared &>
> ~/tmp/cfg-make.txt
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... yes
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
> checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
> checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for pgf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for f90... no
> checking for xlf90... no
> checking for pgf90... no
> checking for epcf90... no
> checking for f95... no
> checking for fort... no
> checking for xlf95... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
> checking for gfortran... no
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether accepts -g... no
> checking the maximum length of command line arguments... 32768
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc static flag works... yes
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/i586-suse-linux/bin/ld
> checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared
> libraries... yes
> checking for g++ option to produce PIC... -fPIC
> checking if g++ PIC flag -fPIC works... yes
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared
> libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> appending configuration tag "F77" to libtool
> checking whether NLS is requested... yes
> checking for msgfmt... /usr/bin/msgfmt
> checking for gmsgfmt... /usr/bin/msgfmt
> checking for xgettext... /usr/bin/xgettext
> checking for msgmerge... /usr/bin/msgmerge
> checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
> checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
> checking for shared library run path origin... done
> checking whether NLS is requested... yes
> checking for GNU gettext in libc... yes
> checking whether to use NLS... yes
> checking where the gettext function comes from... libc
> checking for check - version >= 0.8.2... no
> *** Could not run check test program, checking why...
> *** The test program failed to compile or link. See the file config.log for
> *** the exact error that occured.
> configure: WARNING: Check not found, tests will not be built
> checking for ANSI C header files... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for an ANSI C-conforming const... yes
> checking for strcasecmp... yes
> checking for strdup... yes
> checking for strndup... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating Doxyfile
> config.status: creating src/Makefile
> config.status: creating examples/Makefile
> config.status: creating po/Makefile.in
> config.status: creating m4/Makefile
> config.status: creating tests/Makefile
> config.status: creating libconfuse.spec
> config.status: creating confuse-config
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing default-1 commands
> config.status: creating po/POTFILES
> config.status: creating po/Makefile
>
> address@hidden:~/dload/confuse-2.4> make 2>&1 >> ~/tmp/cfg-make.txt
> make all-recursive
> make[1]: Entering directory `/home/brett/dload/confuse-2.4'
> Making all in m4
> make[2]: Entering directory `/home/brett/dload/confuse-2.4/m4'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/brett/dload/confuse-2.4/m4'
> Making all in po
> make[2]: Entering directory `/home/brett/dload/confuse-2.4/po'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/brett/dload/confuse-2.4/po'
> Making all in src
> make[2]: Entering directory `/home/brett/dload/confuse-2.4/src'
> if /bin/sh ../libtool --mode=compile gcc
> -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -g
> -O2 -MT confuse.lo -MD -MP -MF ".deps/confuse.Tpo" -c -o confuse.lo
> confuse.c; \
> then mv -f ".deps/confuse.Tpo" ".deps/confuse.Plo"; else rm -f
> ".deps/confuse.Tpo"; exit 1; fi
> mkdir .libs
> gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -g
> -O2 -MT confuse.lo -MD -MP -MF .deps/confuse.Tpo -c confuse.c -fPIC -DPIC
> -DPIC -o confuse.o
> mv -f confuse.o .libs/confuse.lo
> gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -g
> -O2 -MT confuse.lo -MD -MP -MF .deps/confuse.Tpo -c confuse.c -o confuse.o
> >/dev/null 2>&1
> mv -f .libs/confuse.lo confuse.lo
> if /bin/sh ../libtool --mode=compile gcc
> -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -g
> -O2 -MT lexer.lo -MD -MP -MF ".deps/lexer.Tpo" -c -o lexer.lo lexer.c; \
> then mv -f ".deps/lexer.Tpo" ".deps/lexer.Plo"; else rm -f ".deps/lexer.Tpo";
> exit 1; fi
> rm -f .libs/lexer.lo
> gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -g
> -O2 -MT lexer.lo -MD -MP -MF .deps/lexer.Tpo -c lexer.c -fPIC -DPIC -DPIC -o
> lexer.o
> mv -f lexer.o .libs/lexer.lo
> gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -g
> -O2 -MT lexer.lo -MD -MP -MF .deps/lexer.Tpo -c lexer.c -o lexer.o >/dev/null
> 2>&1
> mv -f .libs/lexer.lo lexer.lo
> /bin/sh ../libtool --mode=link gcc -g -O2 -o libconfuse.la -rpath
> /usr/local/lib confuse.lo lexer.lo
> rm -fr .libs/libconfuse.la .libs/libconfuse.* .libs/libconfuse.*
> gcc -shared confuse.lo lexer.lo -Wl,-soname -Wl,libconfuse.0 -o
> .libs/libconfuse.0.0.0
> (cd .libs && rm -f libconfuse.0 && ln -s libconfuse.0.0.0 libconfuse.0)
> (cd .libs && rm -f libconfuse && ln -s libconfuse.0.0.0 libconfuse)
> ar cru .libs/libconfuse.a confuse.o lexer.o
> ranlib .libs/libconfuse.a
> creating libconfuse.la
> (cd .libs && rm -f libconfuse.la && ln -s ../libconfuse.la libconfuse.la)
> make[2]: Leaving directory `/home/brett/dload/confuse-2.4/src'
> Making all in examples
> make[2]: Entering directory `/home/brett/dload/confuse-2.4/examples'
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -MT cfgtest.o -MD -MP
> -MF ".deps/cfgtest.Tpo" -c -o cfgtest.o cfgtest.c; \
> then mv -f ".deps/cfgtest.Tpo" ".deps/cfgtest.Po"; else rm -f
> ".deps/cfgtest.Tpo"; exit 1; fi
> /bin/sh ../libtool --mode=link gcc -g -O2 -L../src/ -o cfgtest cfgtest.o
> ../src/libconfuse.la
> mkdir .libs
> gcc -g -O2 -o .libs/cfgtest cfgtest.o -L/home/brett/dload/confuse-2.4/src
> ../src/.libs/libconfuse
> creating cfgtest
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -MT simple.o -MD -MP
> -MF ".deps/simple.Tpo" -c -o simple.o simple.c; \
> then mv -f ".deps/simple.Tpo" ".deps/simple.Po"; else rm -f
> ".deps/simple.Tpo"; exit 1; fi
> /bin/sh ../libtool --mode=link gcc -g -O2 -L../src/ -o simple simple.o
> ../src/libconfuse.la
> gcc -g -O2 -o .libs/simple simple.o -L/home/brett/dload/confuse-2.4/src
> ../src/.libs/libconfuse
> creating simple
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -g -O2 -MT reread.o -MD -MP
> -MF ".deps/reread.Tpo" -c -o reread.o reread.c; \
> then mv -f ".deps/reread.Tpo" ".deps/reread.Po"; else rm -f
> ".deps/reread.Tpo"; exit 1; fi
> /bin/sh ../libtool --mode=link gcc -g -O2 -L../src/ -o reread reread.o
> ../src/libconfuse.la
> gcc -g -O2 -o .libs/reread reread.o -L/home/brett/dload/confuse-2.4/src
> ../src/.libs/libconfuse
> creating reread
> make[2]: Leaving directory `/home/brett/dload/confuse-2.4/examples'
> Making all in tests
> make[2]: Entering directory `/home/brett/dload/confuse-2.4/tests'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/brett/dload/confuse-2.4/tests'
> make[2]: Entering directory `/home/brett/dload/confuse-2.4'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/home/brett/dload/confuse-2.4'
> make[1]: Leaving directory `/home/brett/dload/confuse-2.4'
>
> address@hidden:~/dload/confuse-2.4> find -iname "*so*"
> ./doc/html/confuse_8h-source.html
>
>
> ______________________________________________________________________
> _______________________________________________
> Confuse-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/confuse-devel