Your message dated Sat, 3 Dec 2005 17:02:05 +0100
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #341812,
regarding swig: C preprocessor apparently broken
to be marked as having been forwarded to the upstream software
author(s) [EMAIL PROTECTED]
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
---------------------------------------
Received: (at 341812-forwarded) by bugs.debian.org; 3 Dec 2005 16:02:10 +0000
>From SRS0=om/[EMAIL PROTECTED] Sat Dec 03 08:02:10 2005
Return-path: <SRS0=om/[EMAIL PROTECTED]>
Received: from moutng.kundenserver.de ([212.227.126.188])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EiZpx-00061U-UX
for [EMAIL PROTECTED]; Sat, 03 Dec 2005 08:02:10 -0800
Received: from [84.141.8.31] (helo=stargate.galaxy)
by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis),
id 0MKwpI-1EiZpu1Ane-000723; Sat, 03 Dec 2005 17:02:06 +0100
Received: by stargate.galaxy (Postfix, from userid 1000)
id 73F821807A; Sat, 3 Dec 2005 17:02:05 +0100 (CET)
Date: Sat, 3 Dec 2005 17:02:05 +0100
From: Torsten Landschoff <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Swig preprocessor broken?
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
X-Provags-ID: kundenserver.de [EMAIL PROTECTED]
login:d638a0eb9c9fbc21c426336ab6dfa19b
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi *,=20
Please have a look at this bug report. I checked that it is in fact the
case that the simple apr.i suggested in the report does not work.=20
----------
=46rom: Peter Samuelson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: swig: C preprocessor apparently broken
Package: swig
Version: 1.3.27-1
Justification: causes FTBFS of unrelated software (subversion)
swig has a builtin C preprocessor which apparently is doing something
wrong when a .i file includes <apr-0/apr.h> from libapr0-dev:
$ cat apr.c
#include <apr.h>
$ gcc -c -I/usr/include/apr-0 apr.c
$ gcc -c -ansi -I/usr/include/apr-0 apr.c
In file included from apr.c:1:
/usr/include/apr-0/apr.h:400:2: error: #error no decision has been made o=
n APR_PATH_MAX for your platform
$ gcc -c -ansi -D_XOPEN_SOURCE=3D500 -I/usr/include/apr-0 apr.c
$ cat apr.i
%include apr.h
$ swig -python -D_XOPEN_SOURCE=3D500 -I/usr/include/apr-0 apr.i
/usr/include/apr-0/apr.h:400: Error: no decision has been made on APR_PAT=
H_MAX for your platform
Of course, there is one horrible workaround:
$ swig -python -DPATH_MAX=3D4096 -I/usr/include/apr-0 apr.i
*** No module name specified using %module or -module.
I am guessing that this bug has always been around, but was hidden
prior to swig 1.3.27 because older swig ignored the "#error" directive.
--------------
The question is if swig should try to follow include nesting at all
which would be needed to get around this problem. I checked 1.3.25 and=20
1.3.27. Both read just apr.h, the first without a hitch, the second
breaks in the #error line.
Opinions?
Greetings
Torsten
--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDkcF8dQgHtVUb5EcRAjFoAJ9Y0tkGVOXlxDOykEOW6hUukAXetQCeK+xU
ypsfZNNxHygJkTR+XL3qXCQ=
=Bphs
-----END PGP SIGNATURE-----
--AqsLC8rIMeq19msA--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]