Meant for this to go to the mailing list for future reference. ---------- Forwarded message ---------- From: Chris Bagwell <[email protected]> Date: Fri, Sep 25, 2009 at 10:04 AM Subject: Re: Fw: [sane-devel] SANE compile problem on Solaris To: David Price <djprice at mindspring.com>
On Fri, Sep 25, 2009 at 9:43 AM, David Price <djprice at mindspring.com> wrote: > Chris, > > > > Thanks for your reponse and suggestions. I have tried both suggestions, > both I still cannot get it compiled but with different errors: > > > > First, I downloaded the latest backend version from git, it made it a lot > further in the build but then failed with: > make[2]: Entering directory > `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend' > /bin/bash ../libtool --silent --tag=CC --mode=link gcc > -I/usr/sfw/include -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes > -pedantic -Wl,-z,defs -rpath '/opt/sane/lib/sane' -version-number 1:0:21 > -module -L/usr/sfw/lib -o libsane-epjitsu.la > libsane_epjitsu_la-epjitsu-s.lo ../lib/liblib.la > libepjitsu.la../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo > ../sanei/sanei_config.lo sane_strstatus.lo ../sanei/sanei_usb.lo -lm > Undefined first referenced > symbol in file > roundf > ./.libs/libepjitsu.a(libepjitsu_la-epjitsu.o) > ld: fatal: Symbol referencing errors. No output written to > .libs/libsane-epjitsu.so.1.0.21 > collect2: ld returned 1 exit status > make[2]: *** [libsane-epjitsu.la] Error 1 > make[2]: Leaving directory > `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend' > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend' > > make: *** [all-recursive] Error 1 > > > I ran into this myself as well. What I kinda remember was my LD_LIBRARY_PATH was set to something that was giving priority to libm.so.1; which doesn't defined roundf(); instead of libm.so.2. I think I had partially set up my environment to use an older SUNWspro (Sun's own compiler) and that was causing the issues; even though I was compiling with GCC. Try setting up a shell that doesn't have visibility to /opt/SUNWspro/lib or gives priority to "/lib" first (using LD_LIBRARY_PATH). Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20090925/d2a850bc/attachment-0001.htm>
