[sane-devel] sane-backends from git 2012-08-16

m. allan noah kitno455 at gmail.com
Fri Aug 17 18:39:37 UTC 2012


There was a recent patch to kvs backends to allow them to build
statically, by renaming some functions. It appears that one was
missed. Try changing the call to kvs40xx_scan instead, and see if that
builds.

allan

On Fri, Aug 17, 2012 at 2:24 PM, Sergei LITVINENKO
<sergei.litvinenko at gmail.com> wrote:
> Hello everybody,
>
> I try to build rpm for F16 (spec from src.rpm package). In spec sane-backend
> is configured as:
>
> %configure \
>     --with-gphoto2=%{_prefix} \
>     --with-docdir=%{_docdir}/%{name}-%{version} \
>     --disable-locking --disable-rpath \
>     --enable-pthread
>
>
> Try to use like the same
>
> ./configure --with-gphoto2 --disable-locking --disable-rpath
> --enable-pthread
>
> and have:
>
> /bin/sh ../libtool --silent --tag=CC   --mode=link gcc  -g -O2 -W -Wall
> -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi
> -Wl,-z,defs  -o libkvs40xx.la  libkvs40xx_la-kvs40xx.lo
> libkvs40xx_la-kvs40xx_cmd.lo libkvs40xx_la-kvs40xx_opt.lo
> /bin/sh ../libtool --silent --tag=CC   --mode=link gcc  -g -O2 -W -Wall
> -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi
> -Wl,-z,defs -rpath '/usr/local/lib/sane' -version-number 1:0:23 -module  -o
> libsane-kvs40xx.la  libsane_kvs40xx_la-kvs40xx-s.lo ../lib/liblib.la
> libkvs40xx.la ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo
> ../sanei/sanei_config.lo sane_strstatus.lo ../sanei/sanei_usb.lo
> ../sanei/sanei_scsi.lo  -lusb  -lpthread
> ./.libs/libkvs40xx.a(libkvs40xx_la-kvs40xx.o): In function
> `sane_kvs40xx_start':
> /home/sergeil/desk/src/BUILD/sane-backends-20120816/backend/kvs40xx.c:595:
> undefined reference to `scan'
> collect2: ld returned 1 exit status
> make[2]: *** [libsane-kvs40xx.la] Ошибка 1
> make[2]: Выход из каталога
> `/home/sergeil/desk/src/BUILD/sane-backends-20120816/backend'
> make[1]: *** [all] Ошибка 2
> make[1]: Выход из каталога
> `/home/sergeil/desk/src/BUILD/sane-backends-20120816/backend'
> make: *** [all-recursive] Ошибка 1
>
> Do you know where function scan() is defined?
>
> /home/sergeil/desk/src/BUILD/sane-backends-20120816/backend/kvs40xx.c
> ...
>       if (duplex)
>         {
>           st = kvs40xx_set_window (s, SIDE_BACK);
>           if (st)
>             return st;
>         }
>
>       st = scan (s);
>       if (st)
>         return st;
> ...
>
>
> PS: In case of simple configuration `./configure`, make can finish OK.
>
> --
> Best regards,
> Sergei LITVINENKO
>
> There is a great difference between
> "be involved" and "be committed".
> Usually we are committed...
>
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org



-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list