Click here to get back home

Help needed with MakeMaker

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Help needed with MakeMaker Geoffrey Rommel 08-15-2005
Posted by Geoffrey Rommel on August 15, 2005, 2:37 pm
Please log in for more thread options


I am building a Perl module with XS. Most of it is fairly standard, but I am
using an SQL preprocessor, so I need to precompile my C-with-embedded-SQL
into plain C before compiling the rest of the module. In other words, I need
to convert X.csql to X.c at the same time as Y.xs is converted to Y.c. I
have read the MakeMaker man page and tried a number of things (C=>"X.c Y.c",
MY::depend, etc.), but nothing quite works.

The closest attempt performed the precompile correctly but then failed to
pull in the correct headers for the XS code:

LD_RUN_PATH="/lib" cc -G B.c xxx.o /usr/lib/ppruntim.a -o
blib/arch/auto/xxx/xxx/B.so -lnsl -lsocket
"B.xs", line 1: cannot find include file: "EXTERN.h"
"B.xs", line 2: cannot find include file: "perl.h"
"B.xs", line 3: cannot find include file: "XSUB.h"
[etc.]

I'm sure there is some simple incantation I'm missing here. Any ideas?




Similar ThreadsPosted
ExtUtils::MakeMaker December 30, 2006, 9:06 am
MakeMaker and data files March 22, 2006, 8:02 am
MakeMaker and compiling/installing C/C++ programs July 29, 2004, 11:39 am
installing files in /usr/lib/share with MakeMaker October 9, 2005, 3:30 pm
ExtUtils::MakeMaker installation question January 15, 2005, 11:38 am
Setting file permissions in ExtUtils::MakeMaker January 25, 2005, 5:15 am
How do I totally remove module installed via MakeMaker February 5, 2005, 1:58 pm
extutils::MakeMaker trying to portability build a shared lib July 9, 2007, 4:36 pm
Passing Environment and ExtUtils::MakeMaker options to CPAN methods August 5, 2005, 8:42 am
Net::FTP help needed January 15, 2007, 9:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap