[email protected]
[Top] [All Lists]

Bug#341812: marked as forwarded (swig: C preprocessor apparently broken)

Subject: Bug#341812: marked as forwarded swig: C preprocessor apparently broken
From: Debian Bug Tracking System
Date: Sat, 03 Dec 2005 08:03:09 -0800
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 
Return-path: <SRS0=om/[email protected]>
Received: from moutng.kundenserver.de ([])
        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 [] (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] 
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-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

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.




Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

Version: GnuPG v1.4.1 (GNU/Linux)



To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#341812: marked as forwarded (swig: C preprocessor apparently broken), Debian Bug Tracking System <=