From: Yves <yme...@pe...> - 2005-04-08 08:04:38
|
When users say they have a compilation problem on solaris and when I see = lines like this : /usr/local/mysql/lib/libmysqlclient.a(client.o) I say that I have no idea, and that maybe the libmysqlclient.a file is br= oken and they should install their own mysql (compile from the sources). They never ans= wer back so I don't know if it the good solution or if they just stop trying to compile= perfparse. To you, I will say the same : try to compile mysql from the sources, and = then, for perfparse, try again. Yves > 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 =3D -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=3D\"/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=3D\"/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=3DCC --mode=3Dlink 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 sect= ions > 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=3D$2; \ > dot_seen=3Dno; \ > target=3D`echo all-recursive | sed s/-recursive//`; \ > list=3D'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" =3D "."; then \ > dot_seen=3Dyes; \ > local_target=3D"$target-am"; \ > else \ > local_target=3D"$target"; \ > fi; \ > (cd $subdir && make $local_target) \ > || case "$amf" in *=3D*) exit 1;; *k*) fail=3Dyes;; *) exit 1;; esac= ; \ > done; \ > if test "$dot_seen" =3D "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=3D/opt/sfw > --with-ld=3D/usr/ccs/bin/ld --with-gnu-as --with-as=3D/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 > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users= . > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - Perfparse - http://www.perfparse.org/ - |