[sane-devel] problem in compiling on cygwin

Henning Meier-Geinitz henning at meier-geinitz.de
Mon Apr 5 17:27:12 BST 2004


Hi,

On Sat, Apr 03, 2004 at 07:34:22PM +0200, Giuseppe Sacco wrote:
> I had the "chance" to borrow a windows bot today I tried from scratch
> che complete process. The result is still the same but I have all logs,
> that you may find attached.
> 
> It seems that it complains about not finding cc1plus and /lib/cpp.
> Do you have the same log for any unix in order to make a comparison?

Ok, let's have a look (your log):

checking how to recognise dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking for as... as
checking for objdump... objdump
checking for dlfcn.h... (cached) yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

That's from libtool. Looks like it checks for C++ compilers and thinks
CC is one of those. What is CC in reality?

Here is my log (no C++ compiler installed):

checking how to recognise dependent libraries... pass_all
checking for dlfcn.h... (cached) yes

I'm a bit surprised about the difference (no test for as + objdump).

checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no

No CC here...

checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
checking for g77... no

But it still checks for /lib/cpp.  No trouble. So let's have a look
what really happens (your config.log):

configure:10046: checking for CC
configure:10062: found /usr/bin/CC
configure:10072: result: CC
configure:10088: checking for C++ compiler version
configure:10091: CC --version </dev/null >&5
CC (GCC) 3.3.1 (cygming special)

Ok, so it's gcc.

configure:10107: checking whether we are using the GNU C++ compiler
configure:10132: CC -c   -DPATH_SANE_CONFIG_DIR=$(configdir) -DPATH_SANE_DATA_DIR=$(datadi
CC: installation problem, cannot exec `cc1plus': No such file or directory

Looks like this makes the trouble. For some reason libtool thinks CC
is a c++ compiler. But it can't find out how to compile C++ files.

configure:10319: checking how to run the C++ preprocessor
configure:10351: CC -E  -DPATH_SANE_CONFIG_DIR=$(configdir) -DPATH_SANE_DATA_DIR=$(datadi
CC: installation problem, cannot exec `cc1plus': No such file or directory

Same here. libtool tries some more ways to preprocess c++ headers...

So the problem is that libtool thinks that CC is a c++ compiler. Let's
try a trick: I added a link CC to gcc on my system and tried again. No
error. Looks like gcc doesn't complain about .cc files here.

I don't know if that's fixed in libtool 1.5.4 (latest stable). Is it
possible to install that version on your system? If yes, please do and
run "libtoolize -f" in sane-backends. You may also need to update
libtool.m4 which is placed in acinclude.m4. Run aclocal and autoconf
after that.

If you can't do that, I'll try to generate a configure script based on
libtool 1.5.4 for testing.

I'll attach my logs.

Bye,
  Henning



-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-hmg.log.gz
Type: application/octet-stream
Size: 16832 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20040405/4ba120f4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-hmg.log.gz
Type: application/octet-stream
Size: 3492 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20040405/4ba120f4/attachment-0001.obj>


More information about the sane-devel mailing list