> This is the result of a "configure && make":
> make: Entering directory `/home/local/sane-1.0.2/sanei'
> rm -f .libs/sanei_ab306.lo
> /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DNDEBUG
> -Df2cFortran -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
> -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -O -W -Wall
> -DSCSIBUFFERSIZE=131072 sanei_ab306.c -fPIC -DPIC -o .libs/sanei_ab306.lo
> sanei_ab306.c:257: macro `DBG_INIT' used without args
> make: *** [sanei_ab306.o] Error 1
> make: Leaving directory `/home/local/sane-1.0.2/sanei'
> make: *** [all-recursive] Error 1
> callisto:/usr/local/sane-1.0.2 #
> Any idea?
Yes. You have compiled SANE without debugging support (maybe this decision
was made by SuSE, I don't know, why). Try to compile with debugging support
(which is the standard setting). Just remove -DNDEBUG from the Makefiles or
use the SANE tar.gz files from http://www.mostang.com/sane/.
The cause of your problem (which I can reproduce by typing CPPFLAGS="-DNDEBUG"
./configure and make) is in include/sane/sanei_debug.h:
# define DBG_INIT(backend, var)
# define DBG_INIT() \
sanei_init_debug (STRINGIFY(BACKEND_NAME), \
Without debugging support DBG_INIT has two arguments, otherwise none. It is
called with no argument by sanei_ab306.c (and other files). I don't know too
much about C macros so I can't say if this is a bug or a problem with the C
compiler. Any comments?
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail firstname.lastname@example.org
This archive was generated by hypermail 2b29 : Wed Apr 19 2000 - 12:37:52 PDT