[sane-devel] issues with libm and SANE??
Frank Zago
fzago@greshamstorage.com
Thu, 21 Feb 2002 22:14:44 -0600 (CST)
On Thu, 21 Feb 2002, paul beard wrote:
> 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)
Are you sure the libm is linked?
ldd /usr/pkg/lib/sane/libsane-umax.so.1
shoudl tell you.
> scanner->output_range.max = (int) pow(2,
> scanner->val[option].w) - 1;
This one could be replaced by a shift.
Frank.