[rtg] libtool
Shaun
mailinglists at unix-scripts.com
Tue Apr 1 16:01:41 EDT 2008
I ran libtoolize -force in the rtg dir and now I'm getting a bit futher but
now I'm getting this.
[root at D047AE51 rtg]# ./configure
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 build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for gawk... (cached) gawk
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 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... /bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for egrep... grep -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 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... no
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... GNU/Linux 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... no
creating libtool
checking for bison... no
checking for byacc... byacc
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 whether to enable -Wall... no
checking for kstat_lookup in -lkstat... no
checking for gethostbyname in -lnsl... yes
checking for socket in -lsocket... no
checking for floor in -lm... yes
checking for pthread_exit in -lpthread... yes
checking for clock_gettime in -lrt... 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... yes
checking malloc.h presence... yes
checking for malloc.h... yes
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 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 depfiles commands
[root at D047AE51 rtg]# make
Making all in cgilib-0.4
make[1]: Entering directory `/usr/src/rtg/cgilib-0.4'
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/include -I/usr/include
-I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -g
-O2 -MT cgi.o -MD -MP -MF ".deps/cgi.Tpo" -c -o cgi.o cgi.c; \
then mv -f ".deps/cgi.Tpo" ".deps/cgi.Po"; else rm -f
".deps/cgi.Tpo"; exit 1; fi
rm -f libcgi.a
ar cru libcgi.a cgi.o
ranlib libcgi.a
make[1]: Leaving directory `/usr/src/rtg/cgilib-0.4'
Making all in src
make[1]: Entering directory `/usr/src/rtg/src'
make[2]: Entering directory `/usr/src/rtg'
make[2]: Leaving directory `/usr/src/rtg'
byacc -d rtgtarg.y
if test -f y.tab.h; then \
to=`echo "rtgtarg_H" | sed \
-e
'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
-e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \
sed -e "/^#/!b" -e "s/Y_TAB_H/$to/g" -e "s|y\.tab\.h|rtgtarg.h|" \
y.tab.h >rtgtarg.ht; \
rm -f y.tab.h; \
if cmp -s rtgtarg.ht rtgtarg.h; then \
rm -f rtgtarg.ht ;\
else \
mv rtgtarg.ht rtgtarg.h; \
fi; \
fi
if test -f y.output; then \
mv y.output rtgtarg.output; \
fi
sed '/^#/ s|y\.tab\.c|rtgtarg.c|' y.tab.c >rtgtarg.ct && mv rtgtarg.ct
rtgtarg.c
rm -f y.tab.c
make all-am
make[2]: Entering directory `/usr/src/rtg/src'
make[3]: Entering directory `/usr/src/rtg'
make[3]: Leaving directory `/usr/src/rtg'
if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I.
-I../config -I../cgilib-0.4 -I/usr/include -I/usr/include
-I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -g
-O2 -MT librtgmysql.lo -MD -MP -MF ".deps/librtgmysql.Tpo" -c -o
librtgmysql.lo librtgmysql.c; \
then mv -f ".deps/librtgmysql.Tpo" ".deps/librtgmysql.Plo"; else rm
-f ".deps/librtgmysql.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT librtgmysql.lo -MD -MP -MF
.deps/librtgmysql.Tpo -c librtgmysql.c -fPIC -o .libs/librtgmysql.o
/bin/sh ../libtool --mode=link --tag=CC gcc -g -O2 -L/usr/local/ssl/lib
-L/usr/lib -L/usr/lib/mysql -L/usr/lib -L/usr/lib -L/usr/lib -o
librtgmysql.la -rpath '/usr/local/rtg/lib' librtgmysql.lo -lnetsnmp
-lcrypto -lmysqlclient_r -lgd -lpng -lltdl -lz -lrt -lpthread -lm -lnsl
../libtool: line 4343: test: : integer expression expected
../libtool: line 4343: test: : integer expression expected
creating reloadable object files...
creating a temporary reloadable object file: .libs/librtgmysql.la-1.o
/usr/bin/ld -r -o .libs/librtgmysql.la-1.o .libs/librtgmysql.o
gcc -shared .libs/librtgmysql.la-1.o -L/usr/local/ssl/lib -L/usr/lib
-L/usr/lib/mysql -lnetsnmp -lcrypto -lmysqlclient_r -lgd -lpng
/usr/lib/libltdl.so -lz -lrt -lpthread -lm -lnsl -Wl,-soname
-Wl,librtgmysql.so.0 -o .libs/librtgmysql.so.0.0.0
rm -f .libs/librtgmysql.la-1.o
(cd .libs && rm -f librtgmysql.so.0 && ln -s librtgmysql.so.0.0.0
librtgmysql.so.0)
(cd .libs && rm -f librtgmysql.so && ln -s librtgmysql.so.0.0.0
librtgmysql.so)
creating librtgmysql.la
(cd .libs && rm -f librtgmysql.la && ln -s ../librtgmysql.la librtgmysql.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtgsnmp.o -MD -MP -MF
".deps/rtgsnmp.Tpo" -c -o rtgsnmp.o rtgsnmp.c; \
then mv -f ".deps/rtgsnmp.Tpo" ".deps/rtgsnmp.Po"; else rm -f
".deps/rtgsnmp.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtgdbi.o -MD -MP -MF
".deps/rtgdbi.Tpo" -c -o rtgdbi.o rtgdbi.c; \
then mv -f ".deps/rtgdbi.Tpo" ".deps/rtgdbi.Po"; else rm -f
".deps/rtgdbi.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtgpoll.o -MD -MP -MF
".deps/rtgpoll.Tpo" -c -o rtgpoll.o rtgpoll.c; \
then mv -f ".deps/rtgpoll.Tpo" ".deps/rtgpoll.Po"; else rm -f
".deps/rtgpoll.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtgutil.o -MD -MP -MF
".deps/rtgutil.Tpo" -c -o rtgutil.o rtgutil.c; \
then mv -f ".deps/rtgutil.Tpo" ".deps/rtgutil.Po"; else rm -f
".deps/rtgutil.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtgtarg.o -MD -MP -MF
".deps/rtgtarg.Tpo" -c -o rtgtarg.o rtgtarg.c; \
then mv -f ".deps/rtgtarg.Tpo" ".deps/rtgtarg.Po"; else rm -f
".deps/rtgtarg.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtggram.o -MD -MP -MF
".deps/rtggram.Tpo" -c -o rtggram.o rtggram.c; \
then mv -f ".deps/rtggram.Tpo" ".deps/rtggram.Po"; else rm -f
".deps/rtggram.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../cgilib-0.4 -I/usr/include
-I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp
-I/usr/include/net-snmp/.. -g -O2 -MT rtghash.o -MD -MP -MF
".deps/rtghash.Tpo" -c -o rtghash.o rtghash.c; \
then mv -f ".deps/rtghash.Tpo" ".deps/rtghash.Po"; else rm -f
".deps/rtghash.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link --tag=CC gcc -g -O2 -L/usr/local/ssl/lib
-L/usr/lib -L/usr/lib/mysql -L/usr/lib -L/usr/lib -L/usr/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 -lrt -lpthread -lm -lnsl
gcc -g -O2 -o rtgpoll rtgsnmp.o rtgdbi.o rtgpoll.o rtgutil.o rtgtarg.o
rtggram.o rtghash.o -L/usr/local/ssl/lib -L/usr/lib -L/usr/lib/mysql -lfl
-lnetsnmp -lcrypto -lmysqlclient_r -lgd -lpng /usr/lib/libltdl.so -ldl -lz
-lrt -lpthread -lm -lnsl -Wl,--rpath -Wl,/usr/local/rtg/lib
rtgtarg.o: In function `yyerror':
/usr/src/rtg/src/rtgtarg.y:146: undefined reference to `lineno'
/usr/src/rtg/src/rtgtarg.y:147: undefined reference to `yytext'
rtgtarg.o: In function `yyparse':
/usr/src/rtg/src/rtgtarg.c:305: undefined reference to `yylex'
rtgtarg.o: In function `yyparse':
/usr/src/rtg/src/rtgtarg.y:52: undefined reference to `yylineno'
/usr/src/rtg/src/rtgtarg.y:50: undefined reference to `yylineno'
rtgtarg.o: In function `yyparse':
/usr/src/rtg/src/rtgtarg.c:520: undefined reference to `yylex'
rtghash.o: In function `hash_target_file':
/usr/src/rtg/src/rtghash.c:256: undefined reference to `yyin'
/usr/src/rtg/src/rtghash.c:264: undefined reference to `yyin'
collect2: ld returned 1 exit status
make[2]: *** [rtgpoll] Error 1
make[2]: Leaving directory `/usr/src/rtg/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/rtg/src'
make: *** [all-recursive] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.grdata.com/pipermail/rtg/attachments/20080401/14ae0d4d/attachment-0001.html
More information about the RTG
mailing list