Re: compiling xscanimage on Solaris 8

From: Michael K Bender (benderm@marmail.ed.ray.com)
Date: Tue Jul 17 2001 - 07:03:33 PDT

  • Next message: karsten.festag@t-online.de: "Re: How to write a backend?"

    Henning Meier-Geinitz wrote:
    > One idea: Try to add "#include <sys/varargs.h>" in
    > sanei/sanei_init_debug.c". I don't know if this helps...

    I tried this, along with changing "#include <sys/syslog.h>" to "<syslog.h>" and got the following results:

    In file included from sanei_init_debug.c:52:
    /usr/include/sys/varargs.h:61: warning: `va_start' redefined
    /usr/include/iso/stdarg_iso.h:78: warning: this is the location of the previous definition
    In file included from sanei_init_debug.c:52:
    /usr/include/sys/varargs.h:100: parse error before `void'
    ../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'
    gmake[1]: *** [sanei_init_debug.o] Error 1
    gmake[1]: Leaving directory `/home/oatmeal1/benderm/sane-frontends-1.0.5/sanei'
    gmake: *** [all-recursive] Error 1

    ===

    The only real difference is that adding varargs.h redefined the va_start function. I looked through the
    varargs.h header, and indeed va_list is a macro that is defined here. However, something must not be getting
    completely defined because as I trace through the header file, there should be no case where it does not get
    defined. I couldn't find which header file calls the stdarg_iso.h That header file itself says that it
    should only be called by other header files, and I haven't been able to find out which one, but, this is only
    a warning. Then again, it looks like it is a warning that is causing make to choke and die.

    Oh, you asked earlier and yes, I am using Sane backends 1.0.5

    Mike

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

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Tue Jul 17 2001 - 06:48:41 PDT