[sane-devel] Please clean before CVS update
Nicolas Martin
nicolas.martin at freesurf.fr
Sat Jan 31 10:25:47 UTC 2009
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
>
More information about the sane-devel
mailing list