[sane-devel] compile sane snapshot under Freebsd 7.1

Louis Lagendijk louis at lagendijk.xs4all.nl
Mon May 4 19:22:13 UTC 2009


On Sat, 2009-05-02 at 15:59 -0500, Chris Bagwell wrote:
> I'm very glad to hear someone was able to test under FreeBSD.  Thats
> the main platform I do not have access to.  Really need to set up a
> qemu image some day.

> > > canon_dr.c picks the wrong saneopts.h (from /usr/local/sane). possibly
> > > other sources do the same, but I for now simply removed the old sane
> > > includes
> > >     
> > 
> > most backends seem to include the system sane files instead of the src
> > ones. perhaps we should change that at some point?
> >   
> I didn't worry about this because I assumed our -I options should
> always force it to look for internal versions first.
> 
> AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I
> $(top_srcdir)/include -DLIBDIR="$(libdir)/sane"
> 
> Somehow your still getting -I/usr/local/include with higher priority.
> How was that specified?  "./configure CPPFLAGS=-I/usr/local/include"?
> 
> Can you look at what command line options are being used to compile?
> You will need to edit backend/Makefile and remove the "--silent" from
> $LIBTOOL.

> Generating umax1220u.conf from umax1220u.conf.in
Generating umax.conf from umax.conf.in
Generating umax_pp.conf from umax_pp.conf.in
Generating v4l.conf from v4l.conf.in
Generating xerox_mfp.conf from xerox_mfp.conf.in
Generating dll.conf from dll.conf.in
Generating saned.conf from saned.conf.in
gmake  all-am
gmake[1]: Entering directory
`/usr/ports/graphics/sane-backends/sane-backends/backend'
rm -f dll-s.c
ln -s ./stubs.c dll-s.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include/sane -I/usr/local/include -I. -I. -I../include -I../include
-DLIBDIR="/usr/local/lib/sane" -DBACKEND_NAME=dll -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share
-DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane 	  -DV_MAJOR=1 -DV_MINOR=1
-g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-pedantic -ansi -MT libsane_la-dll-s.lo -MD -MP
-MF .deps/libsane_la-dll-s.Tpo -c -o libsane_la-dll-s.lo `test -f
'dll-s.c' || echo './'`dll-s.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I.
-I../include -I../include -DLIBDIR=/usr/local/lib/sane
-DBACKEND_NAME=dll -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share
-DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 -DV_MINOR=1 -g
-O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-pedantic -ansi -MT libsane_la-dll-s.lo -MD -MP
-MF .deps/libsane_la-dll-s.Tpo -c dll-s.c  -fPIC -DPIC
-o .libs/libsane_la-dll-s.o
mv -f .deps/libsane_la-dll-s.Tpo .deps/libsane_la-dll-s.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include/sane -I/usr/local/include -I. -I. -I../include -I../include
-DLIBDIR="/usr/local/lib/sane" -DBACKEND_NAME=dll -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share
-DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane 	  -DV_MAJOR=1 -DV_MINOR=1
-g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-pedantic -ansi -MT libdll_la-dll.lo -MD -MP -MF .deps/libdll_la-dll.Tpo
-c -o libdll_la-dll.lo `test -f 'dll.c' || echo './'`dll.c
 gcc -DHAVE_CONFIG_H -I. -I../include/sane -I/usr/local/include -I. -I.
-I../include -I../include -DLIBDIR=/usr/local/lib/sane
-DBACKEND_NAME=dll -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share
-DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 -DV_MINOR=1 -g
-O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-pedantic -ansi -MT libdll_la-dll.lo -MD -MP -MF .deps/libdll_la-dll.Tpo
-c dll.c  -fPIC -DPIC -o .libs/libdll_la-dll.o
dll.c: In function 'load':
dll.c:535: warning: ISO C forbids conversion of object pointer to
function pointer type
dll.c:560: warning: ISO C forbids conversion of object pointer to
function pointer type
mv -f .deps/libdll_la-dll.Tpo .deps/libdll_la-dll.Plo
/bin/sh ../libtool  --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   -o
libdll.la  libdll_la-dll.lo  
ar cru .libs/libdll.a .libs/libdll_la-dll.o
ranlib .libs/libdll.a
creating libdll.la
(cd .libs && rm -f libdll.la && ln -s ../libdll.la libdll.la)
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include/sane -I/usr/local/include -I. -I. -I../include -I../include
-DLIBDIR="/usr/local/lib/sane" -D_REENTRANT
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
-DPATH_SANE_DATA_DIR=/usr/local/share
-DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane 	  -DV_MAJOR=1 -DV_MINOR=1
-g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-pedantic -ansi -MT sane_strstatus.lo -MD -MP
-MF .deps/sane_strstatus.Tpo -c -o sane_strstatus.lo sane_strstatus.c


This is still the old snapshot. Will try a 1.0.20 from git as soon as I
found out how to retrieve from git....
Louis




More information about the sane-devel mailing list