[sane-devel] CVS and Solaris

Chris Bagwell chris at cnpbagwell.com
Mon Feb 2 03:26:26 UTC 2009


Hi all,

FYI: I've made enough updates to lib/, source code, and Makefile's that 
I can now compile everything under Solaris again and some basic tests 
work (I have no scanner hooked to the machine)...

Well, it all working except for the hpljm1005 backend.

I get a strange link error about not finding round() even though I have 
-lm and when I look at /usr/lib/libm.so I see the round() symbol marked 
as "W" (weak).  I've tried moving the -lm earlier with no luck either.

It could very well be because I have a buggy version of GNU tools on 
that platform.  If anyone else wants to give it a spin, let me know if 
it works for you.

gcc -shared -Wl,-h -Wl,libsane.so.1 -o .libs/libsane-hpljm1005.so.1.1.0  
.libs/libsane_hpljm1005_la-hpljm1005-s.o 
../sanei/.libs/sanei_init_debug.o ../sanei/.libs/sanei_constrain_value.o 
../sanei/.libs/sanei_config.o .libs/sane_strstatus.o 
../sanei/.libs/sanei_usb.o -Wl,-z 
-Wl,allextract,../lib/.libs/liblib.a,./.libs/libhpljm1005.a -Wl,-z 
-Wl,defaultextract  -lm -lc  -Wl,-z -Wl,defs
Undefined                       first referenced
 symbol                             in file
 round                               
./.libs/libhpljm1005.a(libhpljm1005_la-hpljm1005.o)
 ld: fatal: Symbol referencing errors. No output written to 
.libs/libsane-hpljm1005.so.1.1.0

Chris



More information about the sane-devel mailing list