[sane-devel] Re: compiling xscanimage on Solaris 8 [update]

Michael K Bender benderm@marmail.ed.ray.com
Tue, 24 Jul 2001 16:58:49 -0400


Henning Meier-Geinitz wrote:
> 
[snip]
> 
> This one is an error, only the syslog and isfdtype things are warnings
> (everything without "warning:" is an error).
> 
> Sorry I don't have any more ideas. As sane-backends compiled without
> these probleme maybe you want to compare the files between
> sane-backends and sane-frontends, but there shouldn't be major
> differences. You may also compare the command lines for the compiler
> for sanei/sanei_init_debug.c between sane-frontends and sane-backends.
> Maybe there is a difference.
> 

Just an update on my trials with trying to get xscanimage compiled on Solaris 8.  Sane backends 1.0.5 work
perfectly, and I'm trying to compile the 1.0.5 frontends.

I moved a copy of the isfdtype.c file over into the frontends directory and modified the Makefiles to compile
it with the other libraries.  I added a line into config.h.in that references isfdtype - I just copied this
line out of the config.h.in from the backends.  I reran the configure script and all these changes were
incorporated, but, when I actually go to compile the program (using sys/varargs.h or stdargs.h) I get the
following (same) errors:

gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE   
-DPATH_SANE_DATA_DIR=/usr/share/sane        -DV_MAJOR=1 -DV_MINOR=0 -DSANE_V_MAJOR=1 -g -O2 -W -Wall
sanei_init_debug.c
../include/sane/sanei_debug.h: In function `sanei_debug_sanei_debug_call':
In file included from sanei_init_debug.c:67:
../include/sane/sanei_debug.h:76: `__builtin_va_alist' undeclared (first use in this function)
../include/sane/sanei_debug.h:76: (Each undeclared identifier is reported only once
../include/sane/sanei_debug.h:76: for each function it appears in.)
../include/sane/sanei_debug.h:74: warning: `ap' might be used uninitialized in this function
sanei_init_debug.c: In function `sanei_debug_msg':
sanei_init_debug.c:104: warning: implicit declaration of function `isfdtype'
*** Error code 1
make: Fatal error: Command failed for target `sanei_init_debug.o'

-----
It looks like it's crashing out as a result of the isfdtype problem.  I've looked around and changed all the
compile lines for isfdtype.c and sanei_debug_init.c to match those from the backends and keep getting the same
results.  Perhaps there's some other libraries or includes that I can't find or am not aware of.  I'm not
really the best debugger, so this is about as far as I'll be able to go with it.  Any more help would be
greatly appreciated.  Otherwise, I'll just keep using the scanimage commandline.  

Mike
-- 
*==========================================*
# Mike Bender     Marlboro System Managers #
#     benderm@sels.rsc.raytheon.com        #
#            508.490.2849                  #
*==========================================*