On Wed, 29 May 2002 17:52:04 +0200 Oliver Rauch <oliver.ra...@rauch-domain.de> wrote:
> Hi, > > I got the following mail, may be someone has an idea why this happens. > Bye > Oliver > > ahensc...@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.