[sane-devel] what am I doing wrong on netbsd/macppc with sane 1.0.7??

Henning Meier-Geinitz henning@meier-geinitz.de
Sat, 16 Feb 2002 00:03:31 +0100


On Fri, Feb 15, 2002 at 01:27:39PM -0800, paul beard wrote:
> gmake[1]: Entering directory 
> `/usr/pkgsrc/graphics/sane-backends/work/sane-backends-1.0.7/frontend'
> cc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
> -I/usr/local/include -I/
> usr/pkgsrc/graphics/sane-backends/work/.buildlink/include 
> SANE_CONFIG_DIR=/usr/pkg/etc/sane.d 
> -DPATH_SANE_DATA_DIR=/usr/pkg/share
>   -DV_MAJOR=1 -DV_MINOR=0 
> -I/usr/pkgsrc/graphics/sane-backends/work/.buildlink/include -O -O 
> -W -Wall scanimage.c
> scanimage.c: In function `main':
> scanimage.c:1564: incompatible type for argument 2 of `vprintf'

This is:

                 vprintf(fmt, arglist);
                 const char **arglist = malloc(8 * sizeof(char**));
I don't really understand all of GNU stdarg.h, so maybe this is just
wrong for NetBSD. However, compilation worked for me on NetBSD
(i386). I had other problems with shared libs, though.

You may try if casting helps ((va_list) arglist).

Abel, any ideas?

> I can install binaries using pkg_add but then xsane fails on a 
> dependency.
> [/home/paul]# xsane
> Shared object "libusb-0.1.so.4" not found
> /usr/lib/libusb.a
> /usr/lib/libusb.so
> /usr/lib/libusb.so.0
> /usr/lib/libusb.so.0.0
> /usr/lib/libusb_p.a
> /usr/lib/libusb_pic.a
> the version installed is libusb-0.1.5.

Looks like your binary xsane is build with libusb-0.1.so.4 and
installed on a system that doesn't have this lib. I don't know if this
works on NetBSD but maybe you can just set a link to the new library?

The NetBSD binary packages are not created by the SANE developers.

> what am I missing?

Maybe nothing, it may just be a bug.