From: Darryl L. P. <mcp...@gm...> - 2012-10-05 15:11:09
|
On Wed, Oct 03, 2012 at 12:52:47PM -0400, Darryl L. Pierce wrote: > I'm trying to general Perl 5 language bindings for the Proton API set. > When I build the project, I'm seeing the following error: > > In file included from /usr/lib64/perl5/CORE/perl.h:5040:0, > from > /home/mcpierce/Programming/Proton/cmake/bindings/perl/perlPERL_wrap.c:731: > /usr/lib64/perl5/CORE/proto.h:816:87: error: unknown type name ‘off64_t’ > /usr/lib64/perl5/CORE/proto.h:828:2: error: unknown type name ‘off64_t’ > /usr/lib64/perl5/CORE/proto.h:828:93: error: unknown type name ‘off64_t’ > /usr/lib64/perl5/CORE/proto.h:833:2: error: unknown type name ‘off64_t’ > In file included from /usr/lib64/perl5/CORE/perl.h:5040:0, > from > /home/mcpierce/Programming/Proton/cmake/bindings/perl/perlPERL_wrap.c:731: > /usr/lib64/perl5/CORE/proto.h:7161:93: error: unknown type name ‘off64_t’ > /usr/lib64/perl5/CORE/proto.h:7174:2: error: unknown type name ‘off64_t’ > make[2]: *** [bindings/perl/CMakeFiles/cproton_perl.dir/perlPERL_wrap.c.o] > Error 1 > make[1]: *** [bindings/perl/CMakeFiles/cproton_perl.dir/all] Error 2 > make: *** [all] Error 2 > > I've googled the error but can't find where anybody has actually > solved it. Any ideas of what to do? Does nobody have an idea of what the solution is to this? I tried a very pared down example: mcpierce@mcpierce-laptop:temp $ cat test.h #ifndef TEST_H #define TEST_H void test1(void); #endif mcpierce@mcpierce-laptop:temp $ cat test.i %module test %{ #include "test.h" %} mcpierce@mcpierce-laptop:temp $ swig -perl5 test.i mcpierce@mcpierce-laptop:temp $ gcc -I /lib64/perl5/CORE/ -c test.c test_wrap.c In file included from /lib64/perl5/CORE/perl.h:5040:0, from test_wrap.c:731: /lib64/perl5/CORE/proto.h:816:47: error: unknown type name ‘off64_t’ /lib64/perl5/CORE/proto.h:828:15: error: unknown type name ‘off64_t’ /lib64/perl5/CORE/proto.h:828:51: error: unknown type name ‘off64_t’ /lib64/perl5/CORE/proto.h:833:15: error: unknown type name ‘off64_t’ In file included from /lib64/perl5/CORE/perl.h:5040:0, from test_wrap.c:731: /lib64/perl5/CORE/proto.h:7161:53: error: unknown type name ‘off64_t’ /lib64/perl5/CORE/proto.h:7174:15: error: unknown type name ‘off64_t’ This is on Fedora Linux 17 x86_64. I'm block at this point trying to provide Perl language bindings for our project until I solve this problem. -- Darryl L. Pierce <mcp...@gm...> http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?" |