[sane-devel] Odd compile problem

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 21 Mar 2002 18:38:16 +0100


Hi,

On Thu, Mar 21, 2002 at 01:57:58AM +0000, Michael Carmack wrote:
> Linux 2.4.17
> gcc 2.95.3
> glibc 2.1.3

Here: 2.4.17-rc1, 2.95.4,  2.2.5

> The problem occurs when I try to specify a target directory 
> (via --prefix=...) that is of the following form:
> 
>     /some/path/.i686-pc-linux-gnu/prefix/dir

I tried:
./configure --prefix=/tmp/sane/1.0.7/.i686-pc-linux-gnu/

No problems here:
SANE_DEBUG_SANEI_CONFIG=255 /tmp/sane/1.0.7/bin/scanimage -L
[sanei_debug] Setting debug level of sanei_config to 255.
[sanei_config] sanei_config_open: attempting to open ./dll.conf'
[sanei_config] sanei_config_open: attempting to open /tmp/sane/1.0.7/.i686-pc-linux-gnu//etc/sane.d/dll.conf'
[...]

> open("/pkg/sane/1.0.7/.1-pc-1-gnu/etc/sane.d/dll.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
> 
> Any ideas here? Note that I've compiled hundreds of programs using that
> particular directory name in the prefix path (.i686-pc-linux-gnu), and
> Sane is the first one that's had problems with it.

Looks like in one of your (system?) headers there is code like this:

#define linux 1
#define i686 1

Bye,
  Henning