[sane-devel] Canoscan 8400F

Stef stef.dev at free.fr
Sat Nov 1 07:04:22 UTC 2014


On 31/10/2014 22:02, Myroslav Kavatsyuk wrote:
> Dear Stef,
>
> The SANE was configured with the proper CFLAGS shell variables:
>
> export CFLAGS="-DUNIT_TESTING=1"
> export LDFLAGS="-DUNIT_TESTING=1"
> export CPPFLAGS="-DUNIT_TESTING=1"
> export BACKENDS=genesys
> export PRELOADABLE_BACKENDS=genesys
>
> ./configure --prefix=/home/xxx/4_pwork/SANE/local/
>
> I have checked, during the compilation process definition statements 
> were passed to compiler:
>
> /bin/bash ../libtool --silent  --tag=CC   --mode=compile gcc 
> -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I. 
> -I../include -I../include 
> -DLIBDIR="/home/xxx/4_pwork/SANE/local/lib/sane" 
> -DBACKEND_NAME=genesys -DUNIT_TESTING=1 -D_REENTRANT 
> -DPATH_SANE_CONFIG_DIR=/home/xxx/4_pwork/SANE/local/etc/sane.d 
> -DPATH_SANE_DATA_DIR=/home/xxx/4_pwork/SANE/local/share 
> -DPATH_SANE_LOCK_DIR=/home/xxx/4_pwork/SANE/local/var/lock/sane 
> -DV_MAJOR=1 -DV_MINOR=0  -DUNIT_TESTING=1 -W -Wall -Wcast-align 
> -Wcast-qual -Wmissing-declarations -Wmissing-prototypes 
> -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -MT 
> libgenesys_la-genesys_gl843.lo -MD -MP -MF 
> .deps/libgenesys_la-genesys_gl843.Tpo -c -o 
> libgenesys_la-genesys_gl843.lo `test -f 'genesys_gl843.c'
>
> But the resulting library does not make functions public.
>
> Best regards,
> Myroslav
>
> ------------------------------------------------------------------------
> **
     Hello,

     I configure with:
CFLAGS="-DUNIT_TESTING -ggdb" ./configure

then unit testing progs are link with:

gcc -ggdb -o gl646 gl646.o 
../sane-backends/backend/.libs/sane_strstatus.o 
-I../sane-backends/include -L../sane-backends/backend/.libs 
-L../sane-backends/sanei/.libs -L../sane-backends/lib/.libs -lgenesys 
-lsanei -llib -lusb-1.0 -lpthread -lrt -lreadline -lncurses -lm

Regards,
     Stef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20141101/ab809323/attachment.html>


More information about the sane-devel mailing list