[FWTools] fwtools 0.9.8 error on RHEL 3

Norman Barker nbarker at rsinc.com
Fri Apr 29 10:03:44 EDT 2005



-----Original Message-----
From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]
Sent: Friday, April 29, 2005 2:51 PM
To: Norman Barker
Cc: fwtools at lists.maptools.org
Subject: Re: [FWTools] fwtools 0.9.8 error on RHEL 3


On 4/29/05, Norman Barker <nbarker at rsinc.com> wrote:
> I got round it by doing this by creating this script in my cgi-bin directory for mapserver and explicitly setting
> LD_LIBRARY_PATH again!!
> 
> #!/bin/sh
> . /usr/local/FWTools/fwtools_env.sh
> LD_LIBRARY_PATH=/usr/local/FWTools/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH
> exec mapserv "$*"
> 
> And this worked, any ideas on getting working without the hack?

Norman, 

One of the things I changed in 0.9.8 was to set the LD_LIBRARY_PATH
like this:
  LD_LIBRARY_PATH=${FWTOOLS_HOME}/lib:${LD_LIBRARY_PATH}:/lib:${FWTOOLS_HOME}/lib/fallback

My local libgcc_s.so is in the $FWTOOLS_HOME/lib/fallback.  The
intent was to only use my libgcc_s.so (in .../lib/fallback) if one isn't found 
in /lib.  But I am suspecting that your libgcc_s.so is either somewhere
else, or missing.  And that it would be better if I didn't distribute 
libgcc_s.so at all. 

Hmm, that doesn't explain why things work for you at the shell, but 
in the cgi situation.  Perhaps your local account already had an
LD_LIBRARY_PATH variable, but the cgi account did not, and the 
empty portion of the LD_LIBRARY_PATH is causing problems?  If
LD_LIBRARY_PATH is unset to start, it expands to something like:
/opt/FWTools/lib::/opt/FWTools/lib/fallback. 

Could you try a few experiments including:

 o Alter your script to read:

#!/bin/sh
LD_LIBRARY_PATH=/junk
export LD_LIBRARY_PATH
. /usr/local/FWTools/fwtools_env.sh
LD_LIBRARY_PATH=/usr/local/FWTools/lib:$LD_LIBRARY_PATH
exec mapserv "$*"

 o See if you have your own libgcc_s.so in /lib. 

I appreciate your assistance in fixing this up.  One of my objectives
with FWTools-linux is to make it fairly distribution ad version agnostic,
but there are definately some tricky aspects to making this work.


Hi Frank,

I have done a locate on libgcc_s.so and I find
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libgcc_s.so
/lib/libgcc_s.so.1
/lib/ssa/libgcc_s.so.1
/lib/ssa/libgcc_s.so

as well as the ones in FWTools

There is no LD_LIBRARY_PATH in the user account, and I have checked httpd.conf and no path variables are set there.

I changed the script to set LD_LIBRARY_PATH to junk, and the mapserver service request getCapabilities still works.

Unfortunately the server has no outside access, so I can't give you an account.  Even though me putting the script in the cgi-bin is a bit of hack, I have to congratulate you on FWTools, it works really well, and we are all having fun here querying the WCS.

Many thanks,

Norman 





More information about the FWTools mailing list