Hi Torfinn, Torfinn Ingolfsen writes:
> Ok, I remembered to look at the FreeBSD port, and check how things are > done there. Now I'm using this configure line: > tingo@kg-core1$ MAKE=gmake CPPFLAGS=-I/usr/local/include > LDFLAGS=-L/usr/local/lib ./configure --disable-locking > --enable-pthread --without-api-spec --without-systemd BACKENDS="epson2 > plustek" > > unfortunately, gmake still wants to build other backends (yes, I have > done 'gmake clean' first): > cc -DHAVE_CONFIG_H -I. -I../include/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=0 -I. -I. -I../include -I../include -I/usr/local/include > -Wall -Wextra -pedantic -g -O2 -MT ../backend/umax_pp_low.o -MD -MP > -MF $depbase.Tpo -c -o ../backend/umax_pp_low.o > ../backend/umax_pp_low.c &&\ > mv -f $depbase.Tpo $depbase.Po > ../backend/umax_pp_low.c:1174:4: error: use of undeclared identifier 'found' > found = 0; > ^ > ../backend/umax_pp_low.c:1175:4: error: use of undeclared identifier 'fd' > fd = open (name, O_RDONLY); > ^ > ../backend/umax_pp_low.c:1176:8: error: use of undeclared identifier 'fd' > if (fd < 0) > ^ > ../backend/umax_pp_low.c:1194:34: error: use of undeclared identifier 'fd' > sanei_umax_pp_setparport (fd); > ^ > 4 errors generated. > gmake[2]: *** [Makefile:656: ../backend/umax_pp_low.o] Error 1 > gmake[2]: Leaving directory '/zs/tingo/work/sane/backends/tools' ^^^^^ This isn't building a backend, it's compiling bits of the umax_pp backend code for inclusion in a umax_pp utility program. You should be able to work around this with make -C backend or cd backend make Hope this helps, -- Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 Support Free Software https://my.fsf.org/donate Join the Free Software Foundation https://my.fsf.org/join