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?
