perl xs error: unknown type name ‘off64_t’
Hello all,
I'm trying some SWIG examples to work with perl XS.
I got this error:
jmf@wheejy:~/tech/swig/aaa$ swig -perl5 example.i
jmf@wheejy:~/tech/swig/aaa$
jmf@wheejy:~/tech/swig/aaa$ gcc -c example.c example_wrap.c
-I /usr/lib/perl/5.12.3/CORE/
In file included from /usr/lib/perl/5.12.3/CORE/perl.h:4946:0,
from example_wrap.c:731:
/usr/lib/perl/5.12.3/CORE/proto.h:692:47: error: unknown type name
‘off64_t’
/usr/lib/perl/5.12.3/CORE/proto.h:699:15: error: unknown type name
‘off64_t’
/usr/lib/perl/5.12.3/CORE/proto.h:699:51: error: unknown type name
‘off64_t’
/usr/lib/perl/5.12.3/CORE/proto.h:704:15: error: unknown type name
‘off64_t’
/usr/lib/perl/5.12.3/CORE/proto.h:6178:15: error: unknown type name
‘off64_t’
/usr/lib/perl/5.12.3/CORE/proto.h:6179:53: error: unknown type name
‘off64_t’
jmf@wheejy:~/xarmazem/tech/swig/aaa$
seems that off64_t is not being found by gcc ! or something similar ?
can anyone point me in the correct direction ?
Thank you.
Joao
Reply to: