LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2013, 02:29 PM   #1
adrhc
Member
 
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 103

Rep: Reputation: 13
apache cannot load mod_proxy_ajp into server: libc.so.0


root@nsa310:~# uname -a
Linux nsa310 [COLOR="rgb(46, 139, 87)"]2.6.31.8[/COLOR] #2 Fri Aug 2 11:21:44 CST 2013 armv5tel GNU/Linux

I have a Zyxel NSA310 with a factory-installed apache:

root@nsa310:~# /usr/sbin/httpd -V
Server version: Apache/2.2.9 (Unix)
Server built: Jan 17 2013 15:28:39
Server's Module Magic Number: 20051115:15
Server loaded: APR 1.3.0, APR-Util 1.3.0
Compiled using: APR 1.3.0, APR-Util 1.3.0
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

It doesn't contain the mod_proxy_ajp.so module so I downloaded Apache/2.2.9 sources and compiled them with same compiler options in order to obtain mod_proxy_ajp.so module. When I'm loading the module with:
LoadModule proxy_ajp_module /usr/local/zy-pkgs/lib/mod_proxy_ajp.so
at starting I'm getting the error:
root@nsa310:~/apache2/bin# /bin/nice -n -2 /usr/sbin/httpd -f /etc/service_conf/httpd.conf
httpd: Syntax error on line 16 of /etc/service_conf/httpd.conf: Cannot load /usr/local/zy-pkgs/ffproot/ffp/home/root/apache2/modules/mod_proxy_ajp.so into server: libc.so.0: cannot open shared object file: No such file or directory


The compiled version outputs same result for httpd -V and it starts fine with de same module loading declaration. What the error means ?

Last edited by adrhc; 11-06-2013 at 02:38 PM.
 
Old 11-07-2013, 04:18 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Can you post output of
ldd /usr/sbin/httpd
ldd /usr/local/zy-pkgs/ffproot/ffp/home/root/apache2/modules/mod_proxy_ajp.so

There is probably some naming convention clash with your libc.so file.
 
Old 11-07-2013, 05:10 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
libc.so.0: cannot open shared object file: No such file or directory
I think libc.so.0 is an uClibc file only.

You could try : # ln -s libc-<version>.so libc.so.0

( Like this glibc example : # ln -s libc-2.16.so libc.so.0 )

-
 
Old 12-26-2013, 03:18 PM   #4
adrhc
Member
 
Registered: Dec 2006
Location: Bucharest
Distribution: Ubuntu 16.04 LTS
Posts: 103

Original Poster
Rep: Reputation: 13
Thank you for your help; I try:
root@nsa310:~# ldd /ffp/lib/mod_proxy_ajp-2.2.9.so
ldd: can't open cache '/ffp/etc/ld.so.cache'
checking sub-depends for '/ffp/lib/libpthread.so.0'
  • ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x2a000000)
  • libdl.so.0 => /ffp/lib/libdl.so.0 (0x4001d000)
  • libc.so.0 => /ffp/lib/libc.so.0 (0x40028000)
checking sub-depends for '/ffp/lib/libc.so.0'
  • ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x2a000000)
  • libpthread.so.0 => /ffp/lib/libpthread.so.0 (0x00000000)
  • libc.so.0 => /ffp/lib/libc.so.0 (0x00000000)
  • /ffp/lib/ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x00000000)
then I found all files
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Balancing in Apache Server uk.engr Linux - Newbie 3 05-24-2012 03:26 PM
Is Apache 2.2.0 mod_proxy_ajp needed for tomcat? cygnus-x1 Linux - Software 2 10-16-2006 07:50 PM
Server load problems with Suse 9.3 and Apache 2.0.53 wessie Linux - Newbie 1 08-04-2006 05:14 AM
Java can't load libc.so.6 on Fedora 4 - Help! stinky_tofu Linux - General 2 12-14-2005 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration