Doug MacEachern wrote:

> 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.


I've used the APR's optional functions. It works :) Thanks Doug!


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

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/


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

Reply via email to