# Re: Cannot compile sane-1.0.2 on SuSE 6.4

From: Petter Reinholdtsen (pere@hungry.com)
Date: Wed Apr 26 2000 - 19:55:57 PDT

- Next message: Petter Reinholdtsen: "Re: 16 bit support for scanimage"
  - Previous message: Kurt Savegnago: "Re: ? about gimp"
  - Maybe in reply to: Robert Schwebel: "Cannot compile sane-1.0.2 on SuSE 6.4"
  - Next in thread: Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"
  - Reply: Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"
  - Reply: Henning Meier-Geinitz: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  > ... 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.

  I believe this patch should fix both problems.

  Index: include/sane/sanei_debug.h
  ===================================================================
  RCS file: /cvsroot/external/sane/include/sane/sanei_debug.h,v
  retrieving revision 1.1.1.1.2.1
  diff -u -w -r1.1.1.1.2.1 sanei_debug.h
  --- sanei_debug.h 2000/01/25 15:37:55 1.1.1.1.2.1
  +++ sanei_debug.h 2000/04/27 02:40:38
  @@ -8,12 +11,11 @@
  # define HAVE_VARARG_MACROS
  #endif

  #ifndef HAVE_VARARG_MACROS
  extern void sanei_debug (int level, const char *msg, ...);
  #endif
  #ifdef NDEBUG
  -# define DBG_INIT(backend, var)
  +# define DBG_LEVEL (0)
  +# define DBG_INIT()
  # ifdef HAVE_VARARG_MACROS
  # define DBG(level, msg, args...)
  # else

  At least my source compiles with -DNDEBUG with this patch. :-)

      --
      ##>  Petter Reinholdtsen  <##  |  pere@td.org.uit.no
      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Petter Reinholdtsen: "Re: 16 bit support for scanimage"
  - Previous message: Kurt Savegnago: "Re: ? about gimp"
  - Maybe in reply to: Robert Schwebel: "Cannot compile sane-1.0.2 on SuSE 6.4"
  - Next in thread: Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"
  - Reply: Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"
  - Reply: Henning Meier-Geinitz: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Wed Apr 26 2000 - 19:53:33 PDT