Thanks for the report and sorry about that. Second time I messed up with this change. I just submitted a fix for it.
Its really odd how the different compiler versions and --disable-shared are all catching different symbol issues. My Fedora 17 wasn't finding this issue. This time, I ran "configure BACKEND=kvsXXX" for each of the 3 kvs backends I modified. Hopefully, that will have cought any remaining missing symbols. FYI: The Epjitsu and Snapscan backends both have a duplicate scan() symbol and what my compiler was using to not fail since I was linking. Its probably best to add prefixes to those backends at some point as well to prevent any issues in the off chance both backends are used on 1 system. Chris On Fri, Aug 17, 2012 at 1:39 PM, m. allan noah <kitno455 at gmail.com> wrote: > 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" > > -- > 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