From: Zac <spd...@gm...> - 2005-04-07 18:10:23
|
Hello, I am currently trying to compile perfparse 0.105.6 on a new Solaris 10 box. I currently have this version working on a Gentoo box with no problems, but am running into many problems with this Solaris install. Initially I had issues with options selected by the configure script for the MYSQL_CFLAGS variable in the MakeFiles. I compared this to the Makefiles on my Gentoo system and saw that they were completely different. I decided to remove all flags so that I am left with: MYSQL_CFLAGS = -I/usr/local/mysql/include This got me further. Next I had to correct the path to MYSQL_LIBS, which brings me to where I am stuck. Going through the make output, all looks well until I get here: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include -I../libpp_mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I../libpp_common -I../libnagios_perfdata_parser -DLOCALEDIR=\"/opt/nagios/share/locale\" -g -O2 -Wall -MT libpp_storage_mysql_la-libstorage.lo -MD -MP -MF .deps/libpp_storage_mysql_la-libstorage.Tpo -c libstorage.c -fPIC -DPIC -o .libs/libpp_storage_mysql_la-libstorage.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/mysql/include -I../libpp_mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I../libpp_common -I../libnagios_perfdata_parser -DLOCALEDIR=\"/opt/nagios/share/locale\" -g -O2 -Wall -MT libpp_storage_mysql_la-libstorage.lo -MD -MP -MF .deps/libpp_storage_mysql_la-libstorage.Tpo -c libstorage.c -o libpp_storage_mysql_la-libstorage.o >/dev/null 2>&1 /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o libpp_storage_mysql.la -rpath /opt/nagios/lib -module libpp_storage_mysql_la-storage_mysql.lo libpp_storage_mysql_la-libstorage.lo -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm -L../libpp_mysql -lpp_mysql -lnsl -lm -lsocket gcc -shared -Wl,-h -Wl,libpp_storage_mysql.so.0 -o .libs/libpp_storage_mysql.so.0.0.0 .libs/libpp_storage_mysql_la-storage_mysql.o .libs/libpp_storage_mysql_la-libstorage.o -R/opt/src/perfparse-0.105.6/libpp_mysql/.libs -R/opt/nagios/lib -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -L/opt/src/perfparse-0.105.6/libpp_mysql /opt/src/perfparse-0.105.6/libpp_mysql/.libs/libpp_mysql.so -lnsl -lm -lsocket -lc Text relocation remains referenced against symbol offset in file .data1 0x6d6 /usr/local/mysql/lib/libmysqlclient.a(client.o) .rodata1 0x6e2 /usr/local/mysql/lib/libmysqlclient.a(client.o) option_types 0x77c /usr/local/mysql/lib/libmysqlclient.a(client.o) .text 0x79a /usr/local/mysql/lib/libmysqlclient.a(client.o) .data1 0x8a4 /usr/local/mysql/lib/libmysqlclient.a(client.o) .rodata1 0x9c5 /usr/local/mysql/lib/libmysqlclient.a(client.o) .text 0x9e4 /usr/local/mysql/lib/libmysqlclient.a(client.o) .text 0x9e8 /usr/local/mysql/lib/libmysqlclient.a(client.o) .text 0x9ec /usr/local/mysql/lib/libmysqlclient.a(client.o) .text 0x9f0 /usr/local/mysql/lib/libmysqlclient.a(client.o) --snip--- place here hundreds of lines roughly the same as the previous 10 --snip-- fileno 0x31 /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o) fileno 0x5e /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o) fileno 0x7e /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o) fileno 0xfa /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o) fclose 0x104 /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o) fdopen 0x1ad /usr/local/mysql/lib/libmysqlclient.a(my_fopen.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `libpp_storage_mysql.la' Current working directory /opt/src/perfparse-0.105.6/modules *** Error code 1 The following command caused the error: set fnord $MAKEFLAGS; amf=$2; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='intl m4 libnagios_perfdata_parser libpp_common libpp_mysql modules perfparse db_tools cgi images config contrib po scripts'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /opt/src/perfparse-0.105.6 *** Error code 1 make: Fatal error: Command failed for target `all' I am currently using gcc from the Solaris companion cd nagios4# gcc -v Reading specs from /opt/sfw/lib/gcc/i386-pc-solaris2.10/3.4.2/specs Configured with: ../gcc-3.4.2/configure --prefix=/opt/sfw --with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/opt/sfw/bin/gas --enable-shared --disable-libgcj Thread model: posix gcc version 3.4.2 If i have done something previously to cause this I will gladly go back to the Makefile created by the configure script and post the issues it has. Thanks for any input at all. -Zac Israel |