Gaby,

I get the following error while trying to build open-axiom Rev: 356 on
Solaris 10 x86 with the Blastwave GNU toolchain:

...
cd sman && gmake
gmake[2]: Entering directory `/export/home0/wspage/open-test/src/sman'
../../libtool --mode=compile gcc -c -O2 -fno-strength-reduce -Wall
-D_GNU_SOURCE -o session.lo -I../../../open-axiom/src/include
-I../../config -I../../../open-axiom/src/sman
../../../open-axiom/src/sman/session.c
mkdir .libs
 gcc -c -O2 -fno-strength-reduce -Wall -D_GNU_SOURCE
-I../../../open-axiom/src/include -I../../config
-I../../../open-axiom/src/sman ../../../open-axiom/src/sman/session.c
-fPIC -DPIC -o .libs/session.o
../../../open-axiom/src/sman/session.c:95: warning: 'pr' defined but not used
 gcc -c -O2 -fno-strength-reduce -Wall -D_GNU_SOURCE
-I../../../open-axiom/src/include -I../../config
-I../../../open-axiom/src/sman ../../../open-axiom/src/sman/session.c
-o session.o >/dev/null 2>&1
../../libtool --mode=link gcc -static -o
../../i386-pc-solaris2.10/lib/session session.lo
../../i386-pc-solaris2.10/lib/libspad.la -lsocket
gcc -o ../../i386-pc-solaris2.10/lib/session .libs/session.o
../../i386-pc-solaris2.10/lib/.libs/libspad.a -lsocket
../../i386-pc-solaris2.10/lib/.libs/libspad.a(sockio-c.o): In function `NANQ':
sockio-c.c:(.text+0x1a52): undefined reference to `sqrt'
collect2: ld returned 1 exit status
gmake[2]: *** [../../i386-pc-solaris2.10/lib/session] Error 1
gmake[2]: Leaving directory `/export/home0/wspage/open-test/src/sman'
gmake[1]: *** [all-sman] Error 2
gmake[1]: Leaving directory `/export/home0/wspage/open-test/src'
gmake: *** [all-src] Error 2
-bash-3.00$

-------

On Solaris sqrt is located in libm. Apparently this also affects at
least graph/Gdraw and graph/viewman. Setting

  LDF=-lm

in

src/sman/Makefile and src/graph/viewman/Makefile, etc. cures the
problem but I expect there is an autoconf test specific to Solaris
that might be more subtle... AC_CHECK_LIB(m,sqrt)?

Regards,
Bill Page.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel

Reply via email to