Meant for this to go to the mailing list for future reference.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Chris Bagwell</b> <span dir="ltr"><<a href="mailto:chris@cnpbagwell.com">chris@cnpbagwell.com</a>></span><br>
Date: Fri, Sep 25, 2009 at 10:04 AM<br>Subject: Re: Fw: [sane-devel] SANE compile problem on Solaris<br>To: David Price <<a href="mailto:djprice@mindspring.com">djprice@mindspring.com</a>><br><br><br><br><br><div class="gmail_quote">
On Fri, Sep 25, 2009 at 9:43 AM, David Price <span dir="ltr"><<a href="mailto:djprice@mindspring.com" target="_blank">djprice@mindspring.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p>Chris,</p>
<p> </p>
<p>Thanks for your reponse and suggestions. I have tried both suggestions, both I still cannot get it compiled but with different errors:</p>
<p> </p>
<p>First, I downloaded the latest backend version from git, it made it a lot further in the build but then failed with:<br>make[2]: Entering directory `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend'<br>
/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 <a href="http://libsane-epjitsu.la" target="_blank">libsane-epjitsu.la</a> libsane_epjitsu_la-epjitsu-s.lo ../lib/<a href="http://liblib.la" target="_blank">liblib.la</a> <a href="http://libepjitsu.la" target="_blank">libepjitsu.la</a> ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo sane_strstatus.lo ../sanei/sanei_usb.lo -lm <br>
Undefined first referenced<br> symbol in file<br>roundf ./.libs/libepjitsu.a(libepjitsu_la-epjitsu.o)<br>ld: fatal: Symbol referencing errors. No output written to .libs/libsane-epjitsu.so.1.0.21<br>
collect2: ld returned 1 exit status<br>make[2]: *** [<a href="http://libsane-epjitsu.la" target="_blank">libsane-epjitsu.la</a>] Error 1<br>make[2]: Leaving directory `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend'<br>
make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/export/home/price/download/sane/git/install.git20090925/sane-backends-git20090925/backend'</p><div><br>make: *** [all-recursive] Error 1<br></div>
<p> </p></div></blockquote><div><br>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.<br>
<br></div></div>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).<br>
<font color="#888888">
<br>Chris<br>
</font></div><br>