SWIG generates files that can't find off64_t in 8.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
swig1.3 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: swig
I found this error on 8.10 64bit, and it seems to work fine on 8.04 32bit.
Following the tutorial at http://
jsteel@
In file included from /usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
I can fix the problem by inesrting the following code at the very top of /usr/lib/
#include <stdint.h>
typedef __off64_t off64_t;
This is my makefile that solves the problem for me.
all : test
#-isystem /usr/local/include aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_ BITS=64
CFLAGS= -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-
icinga- core-wrap- perl.c : icinga-core.i core-wrap- perl.c -oh icinga- core-wrap- perl.h icinga-core.i
swig -perl -outcurrentdir -o icinga-
icinga- core-wrap- perl.o : icinga- core-wrap- perl.c core-wrap- perl.c -I/usr/ lib/perl/ 5.10.1/ CORE/ -o icinga- core-wrap- perl.o
gcc $(CFLAGS) -I../include icinga-
test : icinga- core-wrap- perl.o
echo todo
https:/ /gitorious. org/icinga/ icinga- core/commit/ 5c19af4baf01b67 41bdef782a33339 da0e403de6