Subject: Re: [sane-devel] issues with libm and SANE??
To: paul beard <paulbeard@mac.com>
From: Frank Zago <fzago@greshamstorage.com>
List: port-macppc
Date: 02/21/2002 22:14:44
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.