Open Source Liberty Liberty Discussion Forum Forum Archive Liberty Home

It is currently Sun Sep 05, 2010 10:35 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: use of liberty_parse-2.6 within Perl
PostPosted: Wed Mar 10, 2010 5:43 am 

Joined: Mon Mar 08, 2010 7:48 am
Posts: 1
Hi,
I have donwloaded the liberty_parse-2.6 package from the Liberty download page: http://www.opensourceliberty.org/resources_ccs.html.
I have carefully read the README and INSTALL files and followed all the steps that executed without any issue.
Now I am interested by the liberty.so generation to be able to use this package in Perl.
I noticed there was a second README file in a "perl" directory coming along with the package. I tried to follow the (simple) instructions :
make perl/liberty.so
But this generates tons of errors.
So I would like to know if anyone has been able to use this package so far, and if yes, have you found how to fix below errors (only posting the first ones):
> make perl/liberty.so
(cd perl; gcc -c -fpic liberty_wrap.c -I`perl -v | grep perl\, | sed 's@This is perl, v\([^ ]\+\) built for \(.\+\)@/usr/lib/perl5/\1/\2/CORE@'` -I.. -D_GNU_SOURCE)
liberty_wrap.c:702:20: EXTERN.h: No such file or directory
liberty_wrap.c:703:18: perl.h: No such file or directory
liberty_wrap.c:704:18: XSUB.h: No such file or directory
liberty_wrap.c:712:28: patchlevel.h: No such file or directory
liberty_wrap.c:715:48: could_not_find_Perl_patchlevel.h: No such file or directory
liberty_wrap.c:958: error: syntax error before '*' token
liberty_wrap.c:963: error: syntax error before '*' token
liberty_wrap.c: In function `SWIG_croak_null':
liberty_wrap.c:992: error: `SV' undeclared use in this function
...


Thanks, Alex.


Top
 Profile  
 
 Post subject: Re: use of liberty_parse-2.6 within Perl
PostPosted: Thu Jul 15, 2010 9:13 am 

Joined: Tue Feb 26, 2008 2:06 pm
Posts: 6
Just a wild guess, but make sure you have the perl development packages installed too. If you only have the runtime libraries installed, you won't be able to compile because header files are missing.

If you are sure you have the dev files available, then you are just not referencing them correctly. The -I command line option used to indicate the path to include files might be missing or wrong.

Nick


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group