[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: libtool: unrecognized option `-DLINUX=2' when building swig-py

From: Frank Gruman <fgatwork_at_verizon.net>
Date: 2005-05-07 00:52:17 CEST

All,

I figured out my problem here.

The error goes all the way back to the SWIG install. You ahve to make
sure that Python is loaded with the header files as well (development
sources). I had taken the default Python install from Suse. It told me
that Python was there, but nowhere did I find a note that said the
header files were required. Just a little hard looking.

Anyway - once you load the Python development files, you have to rebuild
SWIG and then rebuild Subversion. This generates a couple of library
files needed for the swig-py to compile properly. Once this is all
done, the 'make swig-py' runs without any troubles.

Overall - make sure you have all of your source/development files when
building these things. I relied on the .rpm install, and found that I
missed one.

Regards,
Frank

Frank Gruman wrote:

> I saw this was an issue a couple months back on the dev list, and the
> response was that SWIG 1.3.24 is not supported.
>
> I just ran into the same error when make-ing swig-py, and the
> subversion/bindings/swig/INSTALL doc states that 1.3.24 is supported.
>
> fyi - running
> SLES 9.0
> SVN 1.2.0 rc2
> SWIG 1.3.24
> Python 2.3.3
> Apache 2.0.54
> libtool 1.5.14 (errors at 1.5.2 as well)
>
> Any ideas?
>
> Regards,
> Frank
>
>
> The contents of the original post were:
>
>
> angus young wrote:
>
>> Hi,
>>
>> On Red Hat EL AS 3.0 w/:
>>
>> httpd-2.0.46-44.ent
>> swig-1.3.24-1
>> neon-0.24.7
>> libtool-1.4.3-6 (but I tried the latest
>> libtool-1.5.10).
>>
>> I've always this compile error:
>>
>> make swing-py
>>
>> [...]
>> /bin/sh /usr/src/redhat/BUILD/subversion-1.1.3/libtool
>> --silent --mode=compile -DLINUX=2 -D_REENTRANT
>> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
>> -D_GNU_SOURCE
>> -I/usr/src/redhat/BUILD/subversion-1.1.3/subversion/bindings/swig
>> -I/usr/src/redhat/BUILD/subversion-1.1.3/subversion/include
>> -I -DSVN_SWIG_VERSION=103024 -I/usr/include/httpd
>> -I/usr/include/httpd
>> -I/usr/src/redhat/BUILD/subversion-1.1.3/subversion/bindings/swig/python/libsvn_swig_py
>>
>> -prefer-pic -c -o
>> subversion/bindings/swig/python/svn_client.lo
>> subversion/bindings/swig/python/svn_client.c
>> libtool: unrecognized option `-DLINUX=2'
>> Try `libtool --help' for more information.
>> make: ***
>> [subversion/bindings/swig/python/svn_client.lo] Error
>> 1
>>
>>
>> Any idea ?
>
>
> SWIG 1.3.24 is not supported.
>
> Max.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 7 00:54:27 2005

This is an archived mail posted to the Subversion Users mailing list.