From: Nick S. <ni...@sm...> - 2005-02-07 11:16:49
|
Hello! After a bit of problem with a disk, I took the opportunity to upgrade to FC3, upgrade MySQL, recompiling Nagios (OK) and recompile PP. However, I have some trouble - perhaps someone has encountered this? (configure output and make output attached). Configure seems to progress normally. In make, I get a load of warnings like: make[2]: Entering directory `/opt/perfparse-0.105.5/libpp_common' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. '-DLIBDIR="/opt/nagios/lib"' '-DLOCALSTATEDIR="/opt/nagios/var"' '-DSYSCONFDIR="/opt/nagios/etc"' '-DPREFIX="/opt/nagios"' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include '-DLOCALEDIR="/opt/nagios/share/locale"' -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF ".deps/libpp_common_la-config_file.Tpo" -c -o libpp_common_la-config_file.lo `test -f 'config_file.c' || echo './'`config_file.c; \ then mv -f ".deps/libpp_common_la-config_file.Tpo" ".deps/libpp_common_la-config_file.Plo"; else rm -f ".deps/libpp_common_la-config_file.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=\"/opt/nagios/lib\" -DLOCALSTATEDIR=\"/opt/nagios/var\" -DSYSCONFDIR=\"/opt/nagios/etc\" -DPREFIX=\"/opt/nagios\" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\"/opt/nagios/share/locale\" -I.. -g -O2 -Wall -MT libpp_common_la-config_file.lo -MD -MP -MF .deps/libpp_common_la-config_file.Tpo -c config_file.c -fPIC -DPIC -o .libs/libpp_common_la-config_file.o config_file.c: In function `config_definition_init': config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 2) config_file.c:105: warning: null argument where non-null required (arg 2) config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 1) config_file.c:105: warning: null argument where non-null required (arg 2) Which I have ignored for the time being. However, later on it comes to a halt at: if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. '-DLIBDIR="/opt/nagios/lib"' '-DLOCALSTATEDIR="/opt/nagios/var"' '-DSYSCONFDIR="/opt/nagios/etc"' '-DPREFIX="/opt/nagios"' -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include '-DLOCALEDIR="/opt/nagios/share/locale"' -I.. -g -O2 -Wall -MT libpp_common_la-log.lo -MD -MP -MF ".deps/libpp_common_la-log.Tpo" -c -o libpp_common_la-log.lo `test -f 'log.c' || echo './'`log.c; \ then mv -f ".deps/libpp_common_la-log.Tpo" ".deps/libpp_common_la-log.Plo"; else rm -f ".deps/libpp_common_la-log.Tpo"; exit 1; fi cc -g -O2 -Wall -o .libs/perfchart.png perfchart_png-perfchart.o perfchart_png-cgi.o -L/opt/perfparse-0.105.5/libpp_mysql /opt/perfparse-0.105.5/libpp_mysql/.libs/libpp_mysql.so -L/usr/lib/mysql /usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lc -lnss_files -lnss_dns -lresolv -L/opt/perfparse-0.105.5/libpp_common /opt/perfparse-0.105.5/libpp_common/.libs/libpp_common.so -lglib-2.0 -L/usr/lib -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lgd -ldl -lm -Wl,--rpath -Wl,/opt/nagios/lib /usr/bin/ld: cannot find -lXpm collect2: ld returned 1 exit status Now, I got past by linking libXpm.so to libXpm.so.4.11 in /usr/X11R6/lib, but then it halted at libX11, and so on - getting confused at the versioned so libraries. Is this a function of the compiler, loader, Makefile or what? Any ideas? Thanks Nick |