[rtg] make issues for rtg from cvs on freebsd 6.0 - libtool: link: cannot find the library

Matt Provost mprovost at termcap.net
Sun Aug 20 18:20:19 EDT 2006


On Sat, Aug 19, 2006 at 03:15:34PM -0500, Swen Wulf wrote:
> Hi,
> 
> not sure what my problem is, but perhaps somebody can help getting the 
> CVS version compiled on a FreeBSD 6.0 system. I searched the list and 
> tried some suggestions, i.e. setting the LDFLAG and modifying the 
> Makefile to include the system version of libtool, but it always breaks 
> at the same place. What library do I miss?!
> 
> I am no FreeBSD guru, so if you can spell things out for me I would 
> appreciate it. One earlier posts simply said "Pthreads is wrong", but I 
> would have no idea how to change it.
> 
> Here is the output of the configure command, no warnings:
> 
> rtg# ./configure
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking whether make sets ${MAKE}... yes
> checking build system type... i386-unknown-freebsd6.0
> checking host system type... i386-unknown-freebsd6.0
> checking for gawk... (cached) nawk
> checking for gcc... gcc
> checking for C compiler default output... 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 style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking how to run the C preprocessor... gcc -E
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln -s works... yes
> checking for ld used by GCC... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking for a sed that does not truncate output... /usr/bin/sed
> checking how to recognise dependent libraries... pass_all
> checking command to parse /usr/bin/nm -B output... ok
> 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 ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/bin/ld) supports shared libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... freebsd6.0 ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking whether -lc should be explicitly linked in... yes
> creating libtool
> checking for bison... bison -y
> checking for flex... flex
> checking for flex... (cached) flex
> checking for yywrap in -lfl... yes
> checking lex output file root... lex.yy
> checking whether yytext is a pointer... yes
> checking whether to enable -Wall... no
> checking for kstat_lookup in -lkstat... no
> checking for gethostbyname in -lnsl... no
> checking for socket in -lsocket... no
> checking for floor in -lm... yes
> checking for pthread_exit in -lpthread... yes
> checking for deflate in -lz... yes
> checking libtool... checking for lt_dlinit in -lltdl... yes
> checking for ANSI C header files... (cached) yes
> checking malloc.h usability... no
> checking malloc.h presence... no
> checking for malloc.h... no
> checking math.h usability... yes
> checking math.h presence... yes
> checking for math.h... yes
> checking syslog.h usability... yes
> checking syslog.h presence... yes
> checking for syslog.h... yes
> checking ctype.h usability... yes
> checking ctype.h presence... yes
> checking for ctype.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking netinet/in.h usability... yes
> checking netinet/in.h presence... yes
> checking for netinet/in.h... yes
> checking for unsigned long long... yes
> checking for long long... yes
> checking for gcc option to accept ANSI C... none needed
> checking for an ANSI C-conforming const... yes
> checking for size_t... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking return type of signal handlers... void
> checking for gettimeofday... yes
> checking for strerror... yes
> checking for strtoll... yes
> checking png.h usability... yes
> checking png.h presence... yes
> checking for png.h... yes
> checking for png_read_info in -lpng... yes
> checking gd.h usability... yes
> checking gd.h presence... yes
> checking for gd.h... yes
> checking for gdImageCreateFromPng in -lgd... yes
> checking pgsql... checking for PQconnectdb in -lpq... yes
> checking mysql... checking for my_thread_init in -lmysqlclient_r... yes
> checking if UCD-SNMP needs crypto support... no
> checking if Net-SNMP needs crypto support... yes
> checking for CRYPTO_free in -lcrypto... yes
> checking for CRYPTO_free in -ldes... no
> checking for snmp_timeout in -lnetsnmp... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating cgilib-0.4/Makefile
> config.status: creating etc/Makefile
> config.status: creating src/Makefile
> config.status: creating contrib/Makefile
> config.status: creating etc/createdb
> config.status: creating etc/rtgtargmkr.pl
> config.status: creating etc/common.php
> config.status: creating man/rtgplot.1
> config.status: creating man/rtgpoll.1
> config.status: creating config/config.h
> config.status: config/config.h is unchanged
> config.status: executing default-1 commands
> 
> 
> 
> 
> rtg# make
> Making all in cgilib-0.4
> source='cgi.c' object='cgi.o' libtool=no  depfile='.deps/cgi.Po' 
> tmpdepfile='.deps/cgi.TPo'  depmode=gcc3 /bin/sh ../config/depcomp  gcc 
> -DHAVE_CONFIG_H -I. -I. -I../config    -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f cgi.c || echo './'`cgi.c
> rm -f libcgi.a
> ar cru libcgi.a cgi.o
> ranlib libcgi.a
> Making all in src
> bison -y -d -d rtgtarg.y && mv y.tab.c rtgtarg.c
> if test -f y.tab.h; then  if cmp -s y.tab.h rtgtarg.h; then  rm -f 
> y.tab.h;  else  mv y.tab.h rtgtarg.h;  fi;  fi
> make  all-am
> source='librtgmysql.c' object='librtgmysql.lo' libtool=yes 
> depfile='.deps/librtgmysql.Plo' tmpdepfile='.deps/librtgmysql.TPlo' 
> depmode=gcc3 /bin/sh ../config/depcomp  /bin/sh ../libtool 
> --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config  -I../cgilib-0.4 
>  -I/usr/local/include -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include/mysql -I/usr/local/include/net-snmp 
> -I/usr/local/include/net-snmp/..  -g -O2 -c -o librtgmysql.lo `test -f 
> librtgmysql.c || echo './'`librtgmysql.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 
> -I/usr/local/include -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include/mysql -I/usr/local/include/net-snmp 
> -I/usr/local/include/net-snmp/.. -g -O2 -c librtgmysql.c -MT 
> librtgmysql.lo -MD -MP -MF .deps/librtgmysql.TPlo  -fPIC -DPIC -o 
> librtgmysql.lo
> /bin/sh ../libtool --mode=link gcc  -g -O2   -L/usr/local/ssl/lib 
> -L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/lib 
> -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -o librtgmysql.la 
> -rpath '/usr/local/rtg/lib' librtgmysql.lo  -lnetsnmp -lcrypto 
> -lmysqlclient_r -lpq -lgd -lpng -lltdl -lz -lpthread -lm  -pthread
> mkdir .libs
> rm -fr .libs/librtgmysql.la .libs/librtgmysql.* .libs/librtgmysql.*
> (cd . && ln -s librtgmysql.lo librtgmysql.o)
> gcc -shared  librtgmysql.lo  -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath 
> -Wl,/usr/local/lib/mysql -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath 
> -Wl,/usr/local/lib/mysql  -L/usr/local/ssl/lib -L/usr/local/lib 
> -L/usr/local/lib/mysql /usr/local/lib/libnetsnmp.so -lcrypto 
> /usr/local/lib/mysql/libmysqlclient_r.so -lpq -lgd -lpng 
> /usr/local/lib/libltdl.so -lz -lpthread -lm  -Wl,-soname 
> -Wl,librtgmysql.so.0 -o .libs/librtgmysql.so.0
> (cd .libs && rm -f librtgmysql.so && ln -s librtgmysql.so.0 librtgmysql.so)
> (cd .libs && rm -f librtgmysql.so && ln -s librtgmysql.so.0 librtgmysql.so)
> creating librtgmysql.la
> (cd .libs && rm -f librtgmysql.la && ln -s ../librtgmysql.la librtgmysql.la)
> source='librtgpgsql.c' object='librtgpgsql.lo' libtool=yes 
> depfile='.deps/librtgpgsql.Plo' tmpdepfile='.deps/librtgpgsql.TPlo' 
> depmode=gcc3 /bin/sh ../config/depcomp  /bin/sh ../libtool 
> --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config  -I../cgilib-0.4 
>  -I/usr/local/include -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include/mysql -I/usr/local/include/net-snmp 
> -I/usr/local/include/net-snmp/..  -g -O2 -c -o librtgpgsql.lo `test -f 
> librtgpgsql.c || echo './'`librtgpgsql.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 
> -I/usr/local/include -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include/mysql -I/usr/local/include/net-snmp 
> -I/usr/local/include/net-snmp/.. -g -O2 -c librtgpgsql.c -MT 
> librtgpgsql.lo -MD -MP -MF .deps/librtgpgsql.TPlo  -fPIC -DPIC -o 
> librtgpgsql.lo
> /bin/sh ../libtool --mode=link gcc  -g -O2   -L/usr/local/ssl/lib 
> -L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/lib 
> -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -o librtgpgsql.la 
> -rpath '/usr/local/rtg/lib' librtgpgsql.lo  -lnetsnmp -lcrypto 
> -lmysqlclient_r -lpq -lgd -lpng -lltdl -lz -lpthread -lm  -pthread
> rm -fr .libs/librtgpgsql.la .libs/librtgpgsql.* .libs/librtgpgsql.*
> (cd . && ln -s librtgpgsql.lo librtgpgsql.o)
> gcc -shared  librtgpgsql.lo  -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath 
> -Wl,/usr/local/lib/mysql -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath 
> -Wl,/usr/local/lib/mysql  -L/usr/local/ssl/lib -L/usr/local/lib 
> -L/usr/local/lib/mysql /usr/local/lib/libnetsnmp.so -lcrypto 
> /usr/local/lib/mysql/libmysqlclient_r.so -lpq -lgd -lpng 
> /usr/local/lib/libltdl.so -lz -lpthread -lm  -Wl,-soname 
> -Wl,librtgpgsql.so.0 -o .libs/librtgpgsql.so.0
> (cd .libs && rm -f librtgpgsql.so && ln -s librtgpgsql.so.0 librtgpgsql.so)
> (cd .libs && rm -f librtgpgsql.so && ln -s librtgpgsql.so.0 librtgpgsql.so)
> creating librtgpgsql.la
> (cd .libs && rm -f librtgpgsql.la && ln -s ../librtgpgsql.la librtgpgsql.la)
> source='rtgsnmp.c' object='rtgsnmp.o' libtool=no 
> depfile='.deps/rtgsnmp.Po' tmpdepfile='.deps/rtgsnmp.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtgsnmp.c || echo './'`rtgsnmp.c
> source='rtgdbi.c' object='rtgdbi.o' libtool=no 
> depfile='.deps/rtgdbi.Po' tmpdepfile='.deps/rtgdbi.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtgdbi.c || echo './'`rtgdbi.c
> source='rtgpoll.c' object='rtgpoll.o' libtool=no 
> depfile='.deps/rtgpoll.Po' tmpdepfile='.deps/rtgpoll.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtgpoll.c || echo './'`rtgpoll.c
> source='rtgutil.c' object='rtgutil.o' libtool=no 
> depfile='.deps/rtgutil.Po' tmpdepfile='.deps/rtgutil.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtgutil.c || echo './'`rtgutil.c
> source='rtgtarg.c' object='rtgtarg.o' libtool=no 
> depfile='.deps/rtgtarg.Po' tmpdepfile='.deps/rtgtarg.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtgtarg.c || echo './'`rtgtarg.c
> source='rtggram.c' object='rtggram.o' libtool=no 
> depfile='.deps/rtggram.Po' tmpdepfile='.deps/rtggram.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtggram.c || echo './'`rtggram.c
> source='rtghash.c' object='rtghash.o' libtool=no 
> depfile='.deps/rtghash.Po' tmpdepfile='.deps/rtghash.TPo'  depmode=gcc3 
> /bin/sh ../config/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../config 
> -I../cgilib-0.4   -I/usr/local/include -I/usr/local/include 
> -I/usr/local/include -I/usr/local/include/mysql 
> -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/..  -g -O2 
> -c `test -f rtghash.c || echo './'`rtghash.c
> /bin/sh ../libtool --mode=link gcc  -g -O2   -L/usr/local/ssl/lib 
> -L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/lib 
> -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -o rtgpoll -rpath 
> '/usr/local/rtg/lib' rtgsnmp.o rtgdbi.o  rtgpoll.o rtgutil.o rtgtarg.o 
> rtggram.o rtghash.o -lfl -lnetsnmp -lcrypto -lmysqlclient_r -lpq -lgd 
> -lpng -lltdl -lz -lpthread -lm  -pthread
> libtool: link: cannot find the library `'
> *** Error code 1
> 
> Stop in /root/rtg/src.
> *** Error code 1
> 
> Stop in /root/rtg/src.
> *** Error code 1
> 
> Stop in /root/rtg.
> 
> Is there a way to find out WHAT library? Any suggestions welcome.
> 

I've seen some suggestions to modify the libtool script to print out the
library name:

http://naranja.umh.es/~atg/B1098370398/C2036966428/E737470728/index.html

Try that and see what it says.

Thanks,
Matt


More information about the RTG mailing list