LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   /usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x (http://www.linuxquestions.org/questions/slackware-14/usr-sbin-httpd-symbol-lookup-error-usr-sbin-httpd-undefined-symbol-apr_atomic_x-689224/)

dasoberdick 12-09-2008 12:07 AM

/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x
 
After a few google searches I cant find a solution to this that makes sense. When I run /etc/rc.d/rc.httpd start I get

/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_xchgptr

same thing happens when I run apachectl start. Has anyone else seen this problem?

thedonkdonk 12-09-2008 01:36 AM

Quick google search shows this:
http://www.susegeek.com/webserver/st...gptr/#more-139

If that does not work, reply back.

dasoberdick 12-09-2008 01:49 AM

yeah I found that on the first search I did but then I couldn't remember what I searched for to find that. It was the most helpful so far but I couldn't find a convenient way to install those so I continued my search hoping to find something simpler. So anyways, I don't know how to install those, I cant even find them.

thedonkdonk 12-09-2008 03:01 AM

What distro are you using?

fedora 4 - 10, red hat 5 and centos would be: sudo yum -y install libapr-util libapr1 apache-utils

older red hat and fedora would be: up2date -i libapr-util libapr1 apache-utils

debian and ubuntu would be: sudo apt-get -y install libapr-util libapr1 apache-utils

j-ray 12-09-2008 03:16 AM

there are rpms "libapreq2". Search for that term (APacheREQ-Utilities)

for Apache2 be sure to install libapreq2!

brianL 12-09-2008 08:34 AM

What's this doing in the Slackware forum?

dasoberdick 12-09-2008 09:34 AM

yeah the real question is why are people asking me what distro I am using. this is in the slackware forum cause I am using slackware 12.1. I know there are programs to convert .rpm to .tgz but I have never had any success with them.

rg3 12-09-2008 09:59 AM

dasoberdick,

If you still haven't got an answer, I think you need to install apr and/or apr-util, both from /slackware/l/.

dasoberdick 12-09-2008 12:49 PM

I just did that and I still get the same error.

claytondias 05-07-2009 11:21 AM

upgrade your httpd packages (httpd, apr and apr-util) for the lastest version published in "slackware-current".


bye

bgeddy 05-07-2009 12:59 PM

Quote:

yeah the real question is why are people asking me what distro I am using.
@dasoberdick: updating your profile might help so folks can tell what you are running.

rael 12-17-2010 03:53 AM

Hi!

I fix it removing manually the old libraries that I have on /usr/local/lib and apache2 remains using that ones:

Code:

root@posido:/home/rgarcia# cp -up /usr/local/lib/libapr* libapr/
root@posido:/home/rgarcia# rm -i /usr/local/lib/libapr*
rm: remove regular file `/usr/local/lib/libapr-1.a'? y
rm: remove regular file `/usr/local/lib/libapr-1.la'? y
rm: remove symbolic link `/usr/local/lib/libapr-1.so'? y
rm: remove symbolic link `/usr/local/lib/libapr-1.so.0'? y
rm: remove regular file `/usr/local/lib/libapr-1.so.0.2.12'? y
rm: remove regular file `/usr/local/lib/libaprutil-1.a'? y
rm: remove regular file `/usr/local/lib/libaprutil-1.la'? y
rm: remove symbolic link `/usr/local/lib/libaprutil-1.so'? y
rm: remove symbolic link `/usr/local/lib/libaprutil-1.so.0'? y
rm: remove regular file `/usr/local/lib/libaprutil-1.so.0.2.12'? y

then reinstall the last version of libaprutil1 libaprutil1-dev libapr1 libapr1-dev and check that apache2 are using the correct apr libraries with ldd

Code:

root@posido:/home/rgarcia# ldd /usr/sbin/apache2
        linux-vdso.so.1 =>  (0x00007fffe4123000)
        libpcre.so.3 => /lib/libpcre.so.3 (0x00007f3a303b2000)
        libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x00007f3a3018f000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x00007f3a2ff59000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f3a2fd3c000)
        libc.so.6 => /lib/libc.so.6 (0x00007f3a2f9b9000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007f3a2f7b3000)
        librt.so.1 => /lib/librt.so.1 (0x00007f3a2f5ab000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f3a2f372000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f3a2f16d000)
        libexpat.so.1 => /lib/libexpat.so.1 (0x00007f3a2ef44000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3a3087d000)


and It works! :D

Code:

root@posido:/home/rgarcia# /etc/init.d/apache2 start
 * Starting web server apache2                                                              [ OK ]

I hope it helps.

ponce 12-17-2010 04:09 AM

Code:

/etc/init.d/apache2 start
I think people is in for jokes this christmas.

- this is a slackware forum.
- do not resurrect old threads but open new ones in the appropriate forum.

rael 12-18-2010 04:52 AM

Well you can change the command launcher for /etc/rc.d/rc.httpd start, apachectl start or whatever. I think that the distribution doesn't matter at all on this problem...

I check this thread when I was looking for a solution.. and I don't want to resurrect an old thread, just want to add a solution that works for my.

ponce 12-18-2010 05:32 AM

Code:

libaprutil1 libaprutil1-dev libapr1 libapr1-dev
this packages doesn't exists in slackware too (the -dev, btw, shouldn't be related to *running* apache).
you should post your solutions in your distribution specific forum because they apply to that.
plus you have installed stuff in /usr/local that breaks normal functioning of the distro's packages, you have to specify that, because it was the cause of your specific problem.

and more, the OP got this problem two years ago with slackware 12.1, he surely have found alternatives (and maybe updated his distro).


All times are GMT -5. The time now is 02:05 PM.