Subject: issues with libm and SANE??
To: port-macppc@netbsd.org, sane-devel <sane-devel@www.mostang.com>
From: paul beard <paulbeard@mac.com>
List: port-macppc
Date: 02/21/2002 14:00:33
I am really close to getting my scanner to work with NetBSD/macppc
but now I seem to be tripping over some math functions. I had
errors on "pow" being undefined, so we swapped them out for "log"
functions. And I get the same result.
/usr/pkg/lib/sane/libsane-umax.so.1: Undefined PLT symbol "log"
(reloc type = 21, symnum = 31)
Here are the lines affected:
/*
return( (int) 255 * pow( ((double) light)/255.0 ,
(1.0/analog_gamma) )+.5 );
*/
return( (int) 255 * exp( log( ((double) light)/255.0) /
analog_gamma)+.5 );
/*
scanner->output_range.max = (int) pow(2,
scanner->val[option].w) - 1;
*/
scanner->output_range.max = (int) exp(log(2)
scanner->val[option].w)
- 1;
so what's with libm and how to fix it?