Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Building a perl C extension module erroring out on Ubuntu 5.10

Reply
Thread Tools

Building a perl C extension module erroring out on Ubuntu 5.10

 
 
Dan Stromberg
Guest
Posts: n/a
 
      09-15-2006

Hi again.

I'm trying to get a C extension module I wrote with SWIG to work with
perl. I got it to work OK with python, but perl's being a little more
troublesome.

When I use the usual (?) incantation, I get compile-time errors:

$ make
#swig -python -o odirectcmodule.c odirectcmodule.swg
swig -perl5 -o odirect_perl.c odirectcmodule.swg
gcc -ansi -Wall -Dbool=char -I/usr/lib/perl/5.8.7/CORE -fpic -c odirect_perl.c
In file included from /usr/lib/perl/5.8.7/CORE/op.h:496,
from /usr/lib/perl/5.8.7/CORE/perl.h:2600,
from odirect_perl.c:703:
/usr/lib/perl/5.8.7/CORE/reentr.h:611: error: field ‘_crypt_struct’ has incomplete type
/usr/lib/perl/5.8.7/CORE/reentr.h:619: error: field ‘_drand48_struct’ has incomplete type
/usr/lib/perl/5.8.7/CORE/reentr.h:770: error: field ‘_random_struct’ has incomplete type
/usr/lib/perl/5.8.7/CORE/reentr.h:775: error: field ‘_srandom_struct’ has incomplete type
In file included from /usr/lib/perl/5.8.7/CORE/perl.h:2605,

Is there something a little loopy with the way Ubuntu builds C extension
modules for perl?

I could try to find where _crypt_struct and such are defined and #include
the right header into the .c from SWIG, but shouldn't swig and the perl
extension module API's have a sort of in-advance agreement on how this is
to be done?

Is this a known problem?

Thanks!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TCPSocket.send is erroring Philliam Auriemma Ruby 1 12-16-2009 11:57 PM
upgraded project to VS2008 erroring in design view Kenneth.Grubb ASP .Net Building Controls 0 01-07-2008 06:44 PM
Erroring Out When Creating A Hung Process tpurl Perl Misc 3 11-01-2005 11:13 AM
Service Pack 4 Erroring RAS / VPN Lorie Computer Support 1 04-29-2005 03:29 AM



Advertisments