Gaby, Recently when building on Solaris x86 I found that I also needed the '-lm' option in the Makefile for
src/graph/viewAlone/Makefile ! AXIOM_X11_LDFLAGS = -L/usr/openwin/lib -R/usr/openwin/lib -lm -lXpm -lSM -lICE -lX11 and src/graph/viewman/Makefile ! viewman_LDFLAGS = -lm $(axiom_target_libdir)/libspad.la \ $(axiom_target_libdir)/libopen-axiom-core.$(DLLEXT) Apparently the change to LDF is not quite sufficient in these two cases. I still think the autoconf test is the best way to go. Regards, Bill Page. On 1/21/08, Gabriel Dos Reis wrote: > On Thu, 17 Jan 2008, Bill Page wrote: > > | Gaby, > | > | I get the following error while trying to build open-axiom Rev: 356 on > | Solaris 10 x86 with the Blastwave GNU toolchain: > > > [...] > > > | sockio-c.c:(.text+0x1a52): undefined reference to `sqrt' > > > lesson: don't just check on GNU systems :-) > > (I've always considered it odd that some C system requires -lm, when > they don't require -lstdio. Both <math.h> and <stdio.h> are part of > of the C standard!) > > > | 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)? > > > Instead of dragging Autoconf into this mess, I just supply -lm > unconditionally. That should not harm. > Let me know if you find further problem with this. > > -- Gaby > > *** ChangeLog (revision 367) > --- ChangeLog (local) > *************** > *** 1,3 **** > --- 1,7 ---- > + 2008-01-21 Gabriel Dos Reis <[EMAIL PROTECTED]> > + > + * config/var-def.mk (LDF): Include -lm. > + > 2008-01-05 Gabriel Dos Reis <[EMAIL PROTECTED]> > > * configure.ac.pamphlet: For mingw host, default $prefix to > *** config/var-def.mk (revision 367) > --- config/var-def.mk (local) > *************** open_axiom_installdir = @open_axiom_inst > *** 179,185 **** > INC=$(top_srcdir)/src/include > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > ! [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > > axiom_use_x = @axiom_use_x@ > --- 179,185 ---- > INC=$(top_srcdir)/src/include > [EMAIL PROTECTED]@ > [EMAIL PROTECTED]@ > ! [EMAIL PROTECTED]@ -lm > [EMAIL PROTECTED]@ > > axiom_use_x = @axiom_use_x@ > ------------------------------------------------------------------------- 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