how about using mod_so's LoadFile directive?

On Thu, 28 Sep 2000, Rajit Singh wrote:

> To Whom It May Concern,
> 
> I have a question with regards using LD_PRELOAD (or something more appropriate) to 
>load libiconv_plug.so and override any other iconv implementation.  (Would be 
>grateful is someone can help).
> 
> I'm running Apache with mod_perl 1.24 on Solaris 2.6.  I'm using XML::Sablotron, and 
>get it to convert to the iso-8859-1 character set.  This isn't supported by default 
>on Solaris, because its default iconv installation doesn't support Unicode (which is 
>what Sablotron converts from).  So I installed a new iconv implementation - and in 
>the installation it advises using LD_PRELOAD=/usr/local/lib/libiconv_plug.so to 
>override the default iconv implementation.
> 
> When running my scripts under normal CGI circumstances I used SetEnv in httpd.conf 
>in the <Directory/> configuration to set LD_PRELOAD.  When trying the script under 
>mod_perl, I've tried a number of methods to get libiconv_plug.so to override the 
>default iconv implementation to no avail.
> 
> I've tried SetEnv (out of desperation... I already knew it wouldn't work)
> I tried compiling Sablotron with iconv_plug.so, but I figured that wouldn't work, 
>'cause then it's loaded after the default implementation
> I tried set LD_PRELOAD and then running apachectl.
> I tried setting LD_PRELOAD inside apachectl.
> 
> Really... I'd be grateful if someone has an answer for this.
> 
> Thanks in advance,
> Rajit
> 

Reply via email to