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

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 30 May 2002 14:12:04 +0200


Hi,

On Wed, May 29, 2002 at 03:44:08PM -0400, ahenschel@comcast.net wrote:
> Output from:
> 
> ls -l backend/.libs/libsane.so
> nm backend/.libs/libsane.so

This one is interesting. The libsane.so you link to contains all the
sane backends as far as I see. This means, that the test for dynamic
loading in configure failed but shared libraries are possible.

This is nor a problem in itsself because preloading works with at
least gcc 3.0. But it's an indication, that something goes wrong
earlier.

> CFLAGS='-O2 -march=i686' ./configure

using CFLAGS=-O2 -pipe -march=i686 -W -Wall

My CFLAGS look like this by default:

using CFLAGS=-g -O2 -W -Wall

checking for ANSI C header files... no
checking for fcntl.h... no
checking for unistd.h... no

I may be wrong here but it looks like something is wrong with your
installation. At least the last two are basic C header files and I have
no  idea why they can't be found on your system. The compilation
should bail out much earlier because e.g. mustek.c shouldn't be
compiled.

checking for sys/select.h... no
checking for sys/time.h... no
checking for sys/shm.h... no

More missing headers that should be there....

checking for dlfcn.h... no

Ok, so we can't use dlopen.

Are you sure, you are compiling on a Unix system? :-)
For some reason, all your system headers aren't found by configure.
Maybe you can find out why by looking at config.log?

> Output from:
> 
> make
> 
> http://mywebpages.comcast.net/ahenschel/make-out.txt

Thanks, but I would like to have the warnings also. Try something like
"make >make.log 2>&1".

However, I believe the problem is somewhere in your installation of
gcc-3.1. Can you compile other packages?

Bye,
  Henning