[rtg] build issues on FreeBSD 6.x

Jens Nykær jny at sunsite.dk
Fri Jul 7 07:17:07 EDT 2006


bill fumerola skrev:
> On Thu, Jul 06, 2006 at 09:39:18AM +0200, Jens Nyk??r wrote:
>   
>> Been a while since I worked with RTG, and a lot of changes have happen 
>> since last time I checked out the CVS version.
>> So of course I ran into problems straight away. :-)
>>
>> # uname 
>> -a                                                                          
>>
>> FreeBSD jny.iux.netdesign.dk 6.0-RELEASE-p5 FreeBSD 6.0-RELEASE-p5 #1: 
>> Wed Mar  8 10:40:09 CET 2006     root@:/usr/obj/usr/src/sys/JNY_KERNEL  i386
>>
>> Running make gives this output.
>>
>> #make
>> Making all in cgilib-0.4
>> Making all in src
>> make  all-am
>> /bin/bash ../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 -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 -lgd -lpng -lltdl -lz -lpthread 
>> -lm  -pthread
>> libtool: link: cannot find the library `' (libcrypt.la: -pthread)
>> *** Error code 1
>>     
>
> using -lpthread and -pthread is wrong.
>   
       Okay. Why, and how do you suggest I change that?
> using /bin/bash is wrong.
>   
       Perhaps. But I seriously do not believe this to be the problem.
> not including output from ./configure and such is wrong.
>   
    No problem. Here is the whole enchilada.  (with /bin/sh, even)

# ./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... configure: WARNING: Cannot find Postgres headers.  Use 
--with-pgsql= to specify non-default path.
checking for PQconnectdb in -lpq... no
configure: WARNING: Cannot link with Postgres libs! (pq)
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
# 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/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/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/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 -o librtgmysql.la  -rpath 
'/usr/local/rtg/lib' librtgmysql.lo  -lnetsnmp -lcrypto -lmysqlclient_r 
-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/lib -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 -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='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/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/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/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/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/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/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/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 -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 -lgd -lpng -lltdl -lz -lpthread 
-lm  -pthread
libtool: link: cannot find the library `'
*** Error code 1







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gizmo.fireflynetworks.com/pipermail/rtg/attachments/20060707/4d4b6dac/attachment-0001.htm


More information about the RTG mailing list