Re: Cannot compile sane-1.0.2 on SuSE 6.4

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Sat Apr 22 2000 - 05:17:47 PDT

  • Next message: Oliver Rauch: "xsane-0.59 available"

    Hi,

    > May anyone of you developers make a patch? It seems that I don't know
    > enough of the Sane internals to patch it myself...

    The following patch will correct this bug but ...

    --- sanei_debug.h-old Sat Apr 22 13:54:38 2000
    +++ sanei_debug.h Sat Apr 22 13:55:16 2000
    @@ -13,7 +13,7 @@
     #endif
     
     #ifdef NDEBUG
    -# define DBG_INIT(backend, var)
    +# define DBG_INIT()
     # ifdef HAVE_VARARG_MACROS
     # define DBG(level, msg, args...)
     # else

    ... but it won't solve the problem because at least the Artec and Microtek
    backends use DBG_LEVEL without checking if it is defined. So the easiest way
    for you is to just not set NDEBUG. It must be set somewhere in the SuSE
    patch or in the sane.spec. I don't now how SuSE compiled this without fixing
    the other bugs.

    What shell we do? Set DBG_LEVEL to 0 if NDEBUG is set? Remove the NDEBUG
    option?

    Or fix the backends like this:
    #ifdef NDEBUG
    int debug_level = NDEBUG
    #else
    int debug_level = 0
    #endif

    And use debug_level from there on?

    Bye, Henning

    --
    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 : Sat Apr 22 2000 - 05:14:13 PDT