[sane-devel] [Fwd: Sane-1.0.8 Compile Failure]

Sergey Vlasov vsu at mivlgu.murom.ru
Wed May 29 17:16:23 BST 2002


On Wed, 29 May 2002 17:52:04 +0200
Oliver Rauch <oliver.rauch at rauch-domain.de> wrote:

> Hi,
> 
> I got the following mail, may be someone has an idea why this happens.
> Bye
> Oliver
> 
> ahenschel at comcast.net wrote:
> > 
> > Greetings,
> > 
> > This message concerns the sane-1.0.8 release.  I am not
> > subscribed to the sane mailing list so I am sending it to you.
> > 
> > Compilation of sane-backends-1.0.8 fails with gcc-3.1 and
> > produces the following error:
> > 
> > gcc -o .libs/scanimage scanimage.o stiff.o
> > ../backend/.libs/libsane.so -lnsl -lm ../lib/liblib.a -Wl,--rpath
> > -Wl,/usr/local/lib
> > ../backend/.libs/libsane.so: undefined reference to `inb'
> > ../backend/.libs/libsane.so: undefined reference to `outb'
> > collect2: ld returned 1 exit status
> > make[1]: *** [scanimage] Error 1
> > make[1]: Leaving directory `/sane-backends-1.0.8/frontend'
> > make: *** [all-recursive] Error 1
> > 
> > Andrew Henschel

If this happens on Linux, that's because inb() and outb() are
implemented in header files as inline functions, and are available only
when compiling with -O or higher. Explicitly setting CFLAGS="-g -O2"
should fix this.



More information about the sane-devel mailing list