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

abel deuring adeuring at gmx.net
Sat Feb 16 16:03:59 GMT 2002


Henning Meier-Geinitz wrote:
> 
> Hi,
> 
> 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
> > -D_GNU_SOURCE -DPATH_
> > 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);
> with
>                  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?

No really. Reading "man vprintf" and "man stdarg", I wonder meanwhile,
if I misunderstood something regarding the usage of vprintf. Perhaps the
whole stuff should be replaced by something like a loop that uses
sprintf. 

Abel



More information about the sane-devel mailing list