I've a problem with using functions from one .so in another .so

I'm working on Apache::SubProcess.
The subprocess returns the pipes to in/out/err and I try to convert them 
into PerlIO there. so you can do

($in, $out, $err) = run_proc(...);

apr_perlio_trans from APR::PerlIO performs the conversion. But I get 
this error, when I call this function in Apache__SubProcess.h:

/home/stas/httpd/prefork/bin/httpd: relocation error: 
/home/stas/apache.org/mp-subproc/blib/arch/auto/Apache/SubProcess/SubProcess.so: 
undefined symbol: apr_perlio_trans

in apr_perl_io.h I expose:

PerlIO *apr_perlio_trans(pTHX_ apr_file_t *file, apr_pool_t *pool);

and then I try to call it from SubProcess.h's function, which includes
apr_perl_io.h

If I do nm on PerlIO.so, it's there:

00001a40 T apr_perlio_trans

the actual test fails on loading Apache::SubProcess with the error from 
above when I do:

use APR::PerlIO;
use Apache::SubProcess;

Also what's the proper way to include one .h file in another .h in such 
a situation. Currently I do:

#include "../../APR/PerlIO/apr_perlio.h"

in xs/Apache/SubProcess/Apache__SubProcess.h. Which doesn't look right.

Thanks.
_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


-- 


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to