On Wed, Dec 31, 2003 at 01:45:42PM -0800, Stas Bekman wrote:
i.e. -R hardcodes the path to the libs. And -L is getting completely ignored?
-L is the link-time search path. It's used. -R is the run-time search path. This is stored in the executable or shared library.
Can you please post me the complete build log? I want to see how APR.so was linked. Thanks
LD_RUN_PATH="/export/apache2_dev/lib:/usr/lib" cc -G -L/usr/local/lib -R/usr/lo cal/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib APR.o -xO3 -L/usr/loc al/lib -R/usr/local/lib -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib -o . ./../../blib/arch/Apache2/auto/APR/APR.so -L/export/apache2_dev/lib -lapr-0 -l sendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl -L/export/apache2_dev/l ib -laprutil-0 -lexpat
Here's the problem:
LD_RUN_PATH is getting overridden by the specified -R path. The -R specified is from the perl config.
So either LD_RUN_PATH has to be set up to include all -R values, and the -R(s) removed from the link command line.
Or -R has to be added with the appropriate path rather than using LD_RUN_PATH.
Or I have to change my perl build to remove any specified -R values, check *all* my perl module builds to make sure they work afterwards.
No, no, this is not a good solution, since others have the same problem. You should leave perl as is. Who sets LD_RUN_PATH="/export/apache2_dev/lib:/usr/lib"? I can't see us setting this value. Where does it come from? It must be ExtUtils::MakeMaker who does that, but where does it take these values from? especially "/export/apache2_dev/lib". Is it in your environment?
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
