Your message dated Sat, 20 Aug 2011 00:25:59 +0200
with message-id <[email protected]>
and subject line SWIG preprocessor works as designed
has caused the Debian Bug report #341812,
regarding swig: C preprocessor apparently broken
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
341812: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=341812
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: swig
Version: 1.3.27-1
Severity: important
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 on
APR_PATH_MAX for your platform
$ gcc -c -ansi -D_XOPEN_SOURCE=500 -I/usr/include/apr-0 apr.c
$ cat apr.i
%include apr.h
$ swig -python -D_XOPEN_SOURCE=500 -I/usr/include/apr-0 apr.i
/usr/include/apr-0/apr.h:400: Error: no decision has been made on
APR_PATH_MAX for your platform
Of course, there is one horrible workaround:
$ swig -python -DPATH_MAX=4096 -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.
------------------------------------------------------------
debian: sid i386
gcc-4.0: 4.0.2-4
libc6-dev: 2.3.5-8.1
libapr0-dev: 2.0.55-3
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Hi all,
given that SWIG in fact works as designed (not following indirect
includes unless the includeall option is given), I am closing this bug.
Greetings, Torsten
--- End Message ---