You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com> on 2003/04/09 21:00:29 UTC

[users@httpd] Problems finding libs

Ok, I've enable LD_LIBRARY_PATH and SHLIBS_PATH, but cannot get the 
configure utility to recognise that there are shared libraries in other 
directories.  Here's the effect:

gcc  -DSOLARIS2=270 `../apaci`   -o gen_test_char gen_test_char.o  -lsocket -lnsl -lpthread -lexpat
./gen_test_char >test_char.h
ld.so.1: ./gen_test_char: fatal: libexpat.so.0: open failed: No such file or directory





# echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib
# echo $SHLIB_PATH
/usr/lib:/usr/local/lib


Any ideas?

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.
Thank you, I man it now!  I'll try it and report back.

Lee Fellows wrote:

>On Wed, 2003-04-09 at 15:38, Albert E. Whale, CISSP wrote:
>
>  
>
>>I FINALLY COME UP with a DIFFERENT ERROR!
>>
>># /usr/local/apache.new/bin/apachectl start
>>ld.so.1: /usr/local/apache.new/bin/httpd: fatal: libexpat.so.0: open failed: No such file
>>or directory
>>Killed
>>/usr/local/apache.new/bin/apachectl start: httpd could not be started
>># find /usr -name libexpat.so.0 -print
>>/usr/local/lib/libexpat.so.0
>>
>>And Yes, I tried setting and Exporting the LD_RUN_PATH, that's not Proven to be very successful.
>>
>>
>>    
>>
>
>  Hate to ask, but did you set and export LD_LIBRARY_PATH before
> attempting to start apache?  You might want to look at the crle
> command.  man is your friend.
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by Lee Fellows <lf...@4lane.com>.
On Thu, 2003-04-10 at 09:27, Albert E. Whale, CISSP wrote:

> Hmm, I thought that I just depicted that very event.  

  Wasn't evident you had done a complete reconfig/make/install cycle
  after setting LD_LIBRARY_PATH.  I am sorry if I misunderstood what
  you were saying.

> 
> What is the command line for crle to add /usr/local/lib to the 
> searchable directories?

   crle -u -l <directory to be added>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.

Lee Fellows wrote:

>On Wed, 2003-04-09 at 21:45, Albert E. Whale, CISSP wrote:
>  
>
>>Actually, NO.  The error messages I presented did not change.
>>
>>Here's what I'm doing, please tell me what's wrong with it.
>>
>># LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/apache.new/libexec
>># export LD_LIBRARY_PATH
>># /usr/local/apache.new/bin/apachectl start
>>Syntax error on line 205 of /usr/local/apache.new/conf/httpd.conf:
>>Cannot load /usr/local/apache.new/libexec/mod_mmap_static.so into server: \
>>ld.so.1: /usr/local/apache.new/bin/httpd: fatal: relocation error: \
>>file /usr/local/apache.new/libexec/mod_mmap_static.so: \
>>symbol ap_null_cleanup: referenced symbol not found
>>/usr/local/apache.new/bin/apachectl start: httpd could not be started
>>
>>
>>BTW, I can perform a man on ld.so.1, ld, and ldd.  Nothing makes 
>>reference of crle.  If you can tell me what Package its in on a New 
>>version of Solaris I can see if I have the package on CD.  Appreciate 
>>your assistance.
>>    
>>
>
>  SUNWtoo is the package name on Solaris 2.8.  Not sure about 2.7.
>
>  Just a suggestion:  You may want to reconfigure/recompile apache
>  after setting and exporting LD_LIBRARY_PATH.  This way everything
>  gets built with the same environment.  I may be incorrect, but it
>  looks suspiciously like some components were built incorrectly.
>
>  HTH
>
>  
>
Hmm, I thought that I just depicted that very event.  

What is the command line for crle to add /usr/local/lib to the 
searchable directories?

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by Lee Fellows <lf...@4lane.com>.
On Wed, 2003-04-09 at 21:45, Albert E. Whale, CISSP wrote:
> Actually, NO.  The error messages I presented did not change.
> 
> Here's what I'm doing, please tell me what's wrong with it.
> 
> # LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/apache.new/libexec
> # export LD_LIBRARY_PATH
> # /usr/local/apache.new/bin/apachectl start
> Syntax error on line 205 of /usr/local/apache.new/conf/httpd.conf:
> Cannot load /usr/local/apache.new/libexec/mod_mmap_static.so into server: \
> ld.so.1: /usr/local/apache.new/bin/httpd: fatal: relocation error: \
> file /usr/local/apache.new/libexec/mod_mmap_static.so: \
> symbol ap_null_cleanup: referenced symbol not found
> /usr/local/apache.new/bin/apachectl start: httpd could not be started
> 
> 
> BTW, I can perform a man on ld.so.1, ld, and ldd.  Nothing makes 
> reference of crle.  If you can tell me what Package its in on a New 
> version of Solaris I can see if I have the package on CD.  Appreciate 
> your assistance.

  SUNWtoo is the package name on Solaris 2.8.  Not sure about 2.7.

  Just a suggestion:  You may want to reconfigure/recompile apache
  after setting and exporting LD_LIBRARY_PATH.  This way everything
  gets built with the same environment.  I may be incorrect, but it
  looks suspiciously like some components were built incorrectly.

  HTH

-- 
Lee Fellows <lf...@4lane.com>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.

Lee Fellows wrote:

>On Wed, 2003-04-09 at 16:20, Albert E. Whale, CISSP wrote:
>  
>
>>> Hate to ask, but did you set and export LD_LIBRARY_PATH before
>>>attempting to start apache?  You might want to look at the crle
>>>command.  man is your friend.
>>>
>>>
>>>
>>>      
>>>
>
>  
>
>>Well this might provide some insight to the problem at had.  First of 
>>all there is no man page for crle installed on the system.  Second of 
>>all, I have the following issues:
>>
>># crle -l /usr/local/lib
>>crle: /var/ld/ld.config: open failed: No such file or directory
>># ls /var/ld
>>/var/ld: No such file or directory
>>(NO WONDER THIS DOESN'T WORK!)  THANKS FOR THE HEADS UP LEE!
>>
>>
>>This just keeps getting better and Better!
>>
>>What Package needs to be [installed|reinstalled}?
>>
>>Any other ideas.  
>>    
>>
>  
>  Try man on ld.so.1 and ld/ldd.  I do not have a 2.7 machine available
>  at this time to try anything.  Did setting and export LD_LIBRARY_PATH
>  work to get apache started?
>  
>
Actually, NO.  The error messages I presented did not change.

Here's what I'm doing, please tell me what's wrong with it.

# LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/apache.new/libexec
# export LD_LIBRARY_PATH
# /usr/local/apache.new/bin/apachectl start
Syntax error on line 205 of /usr/local/apache.new/conf/httpd.conf:
Cannot load /usr/local/apache.new/libexec/mod_mmap_static.so into server: ld.so.1: /usr/local/apache.new/bin/httpd: fatal: relocation error: file /usr/local/apache.new/libexec/mod_mmap_static.so: symbol ap_null_cleanup: referenced symbol not found
/usr/local/apache.new/bin/apachectl start: httpd could not be started


BTW, I can perform a man on ld.so.1, ld, and ldd.  Nothing makes 
reference of crle.  If you can tell me what Package its in on a New 
version of Solaris I can see if I have the package on CD.  Appreciate 
your assistance.

-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by Lee Fellows <lf...@4lane.com>.
On Wed, 2003-04-09 at 16:20, Albert E. Whale, CISSP wrote:
> >
> >  Hate to ask, but did you set and export LD_LIBRARY_PATH before
> > attempting to start apache?  You might want to look at the crle
> > command.  man is your friend.
> >
> >
> >

> >
> Well this might provide some insight to the problem at had.  First of 
> all there is no man page for crle installed on the system.  Second of 
> all, I have the following issues:
> 
> # crle -l /usr/local/lib
> crle: /var/ld/ld.config: open failed: No such file or directory
> # ls /var/ld
> /var/ld: No such file or directory
> (NO WONDER THIS DOESN'T WORK!)  THANKS FOR THE HEADS UP LEE!
> 
> 
> This just keeps getting better and Better!
> 
> What Package needs to be [installed|reinstalled}?
> 
> Any other ideas.  
  
  Try man on ld.so.1 and ld/ldd.  I do not have a 2.7 machine available
  at this time to try anything.  Did setting and export LD_LIBRARY_PATH
  work to get apache started?





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.

Lee Fellows wrote:

>On Wed, 2003-04-09 at 15:38, Albert E. Whale, CISSP wrote:
>
>  
>
>>I FINALLY COME UP with a DIFFERENT ERROR!
>>
>># /usr/local/apache.new/bin/apachectl start
>>ld.so.1: /usr/local/apache.new/bin/httpd: fatal: libexpat.so.0: open failed: No such file
>>or directory
>>Killed
>>/usr/local/apache.new/bin/apachectl start: httpd could not be started
>># find /usr -name libexpat.so.0 -print
>>/usr/local/lib/libexpat.so.0
>>
>>And Yes, I tried setting and Exporting the LD_RUN_PATH, that's not Proven to be very successful.
>>
>>
>>    
>>
>
>  Hate to ask, but did you set and export LD_LIBRARY_PATH before
> attempting to start apache?  You might want to look at the crle
> command.  man is your friend.
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>
Well this might provide some insight to the problem at had.  First of 
all there is no man page for crle installed on the system.  Second of 
all, I have the following issues:

# crle -l /usr/local/lib
crle: /var/ld/ld.config: open failed: No such file or directory
# ls /var/ld
/var/ld: No such file or directory
(NO WONDER THIS DOESN'T WORK!)  THANKS FOR THE HEADS UP LEE!


This just keeps getting better and Better!

What Package needs to be [installed|reinstalled}?

Any other ideas.  



-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problems finding libs - small update.

Posted by Lee Fellows <lf...@4lane.com>.
On Wed, 2003-04-09 at 15:38, Albert E. Whale, CISSP wrote:

> I FINALLY COME UP with a DIFFERENT ERROR!
> 
> # /usr/local/apache.new/bin/apachectl start
> ld.so.1: /usr/local/apache.new/bin/httpd: fatal: libexpat.so.0: open failed: No such file
> or directory
> Killed
> /usr/local/apache.new/bin/apachectl start: httpd could not be started
> # find /usr -name libexpat.so.0 -print
> /usr/local/lib/libexpat.so.0
> 
> And Yes, I tried setting and Exporting the LD_RUN_PATH, that's not Proven to be very successful.
> 
> 

  Hate to ask, but did you set and export LD_LIBRARY_PATH before
 attempting to start apache?  You might want to look at the crle
 command.  man is your friend.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Problems finding libs - small update.

Posted by "Albert E. Whale, CISSP" <ae...@ABS-CompTech.com>.
WOW, this is a Horrible platform to work with.  Please remind me that 
I'd rather have a Root Canal than work on this platform. Oh well, Small 
Progress to report.  

Albert E. Whale, CISSP wrote:

> Ok, I've enable LD_LIBRARY_PATH and SHLIBS_PATH, but cannot get the 
> configure utility to recognize that there are shared libraries in 
> other directories.  Here's the effect:
>
> gcc  -DSOLARIS2=270 `../apaci`   -o gen_test_char gen_test_char.o  
> -lsocket -lnsl -lpthread -lexpat
> ./gen_test_char >test_char.h
> ld.so.1: ./gen_test_char: fatal: libexpat.so.0: open failed: No such 
> file or directory
>
> # echo $LD_LIBRARY_PATH
> /usr/lib:/usr/local/lib
> # echo $SHLIB_PATH
> /usr/lib:/usr/local/lib

After executing:

export LD_LIBRARY_PATH SHLIBS_PATH
make clean
./configure --prefix=/usr/local/apache.new --enable-module=most 
--enable-shared=
max
make
make install  

I FINALLY COME UP with a DIFFERENT ERROR!

# /usr/local/apache.new/bin/apachectl start
ld.so.1: /usr/local/apache.new/bin/httpd: fatal: libexpat.so.0: open failed: No such file
or directory
Killed
/usr/local/apache.new/bin/apachectl start: httpd could not be started
# find /usr -name libexpat.so.0 -print
/usr/local/lib/libexpat.so.0

And Yes, I tried setting and Exporting the LD_RUN_PATH, that's not Proven to be very successful.





-- 
Albert E. Whale, CISSP
http://www.abs-comptech.com
----------------------------------------------------------------------
ABS Computer Technology, Inc. - ESM, Computer & Networking Specialists
Sr. Security, Network, and Systems Consultant
Founding Board of Directors of Pittsburgh FBI - InfraGard





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org