Thanks for the report. I should have also mentioned that part as a warning. I modified backend/Makefile to only link in what it needs. On my platform, coolscan2 didn't need math for some reason.
I'll submit the fix in a minute but if others have similar issues, here is a list of items that you can add to the specific "libsane_$(BACKEND_NAME)_la_LIBADD" line and it will get auto-substituted by configure; generally only when a platform needs it. Please bare with me as these failure occur on platforms I do not have access to. @SCSI_LIBS@ @CAM_LIBS@: scsi related libraries @IEEE1284_LIBS@: ieee1284 libraries @MATH_LIB@: Math lib @JPEG_LIBS@ @TIFF_LIBS@: graphics libs @SOCKET_LIBS@: -lsocket (when needed) @GETHOSTBYADDR_LIBS@: -lnsl (when needed) @GPHOTO2_LIB@: -lgphoto @AVAHI_LIBS@: avahi @V4L_LIBS@: -lv4l @DL_LIBS@: -ldl Chris Nicolas Martin wrote: > Hi, > > Just tried a full CVS rebuild. > > Compilation fails for me when linking coolscan2: > > /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/lib/sane' -version-number 1:1:0 -o > libsane-coolscan2.la > libsane_coolscan2_la-coolscan2-s.lo ../lib/liblib.la > libcoolscan2.la ../sanei/sanei_init_debug.lo > ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo > ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_usb.lo > ../sanei/sanei_scsi.lo -lusb > ./.libs/libcoolscan2.a(libcoolscan2_la-coolscan2.o): In function > `cs2_full_inquiry': > /data/sane-backends/backend/coolscan2.c:2375: undefined reference to > `floor' > /data/sane-backends/backend/coolscan2.c:2383: undefined reference to > `floor' > collect2: ld returned 1 exit status > make: *** [libsane-coolscan2.la] Erreur 1 > > > Looking more deeply at what's going on, I noticed that the -lm flag (for > math.h) has gone away from the linker command line. If I add it manually > and recompile just this step, it works. > > Might there be any relation with config/make tools updates ? > > Nicolas > > Le vendredi 30 janvier 2009 ? 21:15 -0600, Chris Bagwell a ?crit : > >> Hi all, >> >> I just submitted a rather large CVS update related to backend/ changing >> to automake and some related portability fixes. To be safe, please do a >> "make distclean" before updating to current CVS. I'm not aware of any >> issues if you do not but just a warning. >> >> Thanks also to Olaf for helping with the Makefile.am parts. >> >> >> Chris >> >> > >
