perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: [Fwd: Re: using one mod_perl's .so in another .so?]
Date Tue, 11 Dec 2001 18:57:40 GMT
you won't be able to call it directly without some work.  see the manpage 
on dlopen and see how XSLoader/DynaLoader opens the file.  you could
change dl_load_flags to be 0x01 and bing it'll work.  but that's on your  
linux box, problems will happen on other platforms such as win32, hpux,   
aix.

you could try using apr optional functions.  or have APR::PerlIO store a   
pointer to the function you need somewhere in the perl symbol table, which
would work the same way, different api.  apr's would be cleaner.

could also build a libaprperlio.so and link the extension .so's
against it, but that would end up being painful.

there are a some other tricks, but not all are portable.

as for the header file, you could just move that to the xs/ directory.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message