Hi there,
Quick question, I just read this thread here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01697.html
It's about Inline'd C code not being loaded from within mod_perl. We have exactly this problem:
Starting httpd: [Mon Dec 08 14:11:56 2003] [error] Undefined subroutine &Album::Filter::Image::AutoEnhance::c_calc_histogram called at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Album/Filter/ Image/AutoEnhance.pm line 705, <DATA> line 225.!Compilation failed in require at (eval 13) line 1, <DATA> line 225.!
I see the discussion was in late 2002, has this ever been resolved, or ist it impossible to use Inline when using mod_perl? It works very well when run from the command line.
I don't know - though looking at the dates (and the Changes file) would indicate that no such resolution was incorporated into the current version of Inline.
I don't know anything about mod_perl, but I gather that it *is* possible to use inline with mod_perl - at least there's an example of such in 'perldoc Inline::C-Cookbook'.... perhaps there are some ifs and buts as well, wrt inline and mod_perl :-)
In the mean time, I repackaged it as XS module and that seems to work well too.
Does that then solve your problem ?
If not, did you use Inline to build that XS module or did you build the XS module in the usual way (independently of Inline) ?
If you build your module using Inline, then that module still (I believe) needs Inline to run. But if you grab the XS code that Inline autogenerated whilst building your module, then you can use that XS code to build a version of your module that *doesn't* need Inline. I'm just wondering whether you might solve your problem by going that one extra step ?
Cheers, Rob
--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.