apache module with pthread library linked crashes Apache 1.3.12 on RedHat Linux 6.2

apache module with pthread library linked crashes Apache 1.3.12 on RedHat Linux 6.2

Post by dbu.. » Fri, 13 Oct 2000 04:00:00



A simple module just by linking pthread library
crashes apache 1.3.12 server,
i.e  httpd doesn't comes up.

This happens on RedHat 6.2 Linux.

any idea on apache module which links pthread library
for apache1.3.12 is appreciated.

steps to reproduc the problem:

downloaded apache_1.3.12.tar.gz on a RedHat 6.2 Linux machine.

compiled and installed with

#configure --enable-shared=max --enable-module=most \
--prefix=/usr/local/apache
#export PATH=/usr/local/apache/bin:$PATH
#apxs -g -i -n testMod
#cd testMod
#make
apxs -c    mod_testMod.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE
-I/usr/local/apache/include  -c mod_testMod.c
gcc -shared -o mod_testMod.so mod_testMod.o
#rm mod_testMod.so
#gcc -shared -o mod_testMod.so mod_testMod.o -lpthread
#make install
#/usr/local/apache/sbin/apactrl start

httpd dossn't comes up.

Thanks,
Datta.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. apache module with pthread library linked crashes Apache 1.3.12 on RedHat Linux 6.2

Hello,

I currently have a problem starting Apache daemon when a loadable
module links pthread.
The environment is RH6.2 + Apache 1.3.12

steps to reproduce the problem:

downloaded apache_1.3.12.tar.gz on a RedHat 6.2 Linux machine.

Configured, compiled and installed with
     %configure --enable-shared=max --enable-module=most \
      --prefix=/usr/local/apache
     %make
     %make install

Then we create a dummy module:
     %export PATH=/usr/local/apache/bin:$PATH
     %apxs -g -n testMod
     %cd testMod
     %make
       apxs -c    mod_testMod.c
       gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT
       -I../lib/expat-lite -fpic -DSHARED_MODULE
       -I/usr/local/apache/include  -c mod_testMod.c
       gcc -shared -o mod_testMod.so mod_testMod.o

And we link libpthread.so to it:
     %rm mod_testMod.so
     %gcc -shared -o mod_testMod.so mod_testMod.o -lpthread
     %make install

Finally, we start the webserver:
     %/usr/local/apache/sbin/apactrl start

     Result: httpd doesn't comes up.

I understand that between 6.1 and 6.2 the glibc library changed.
In my real situation, I have a module that links a shared library which
needs pthread. So if I remove pthread link from it it needs to be
replaced by something else. What else?

Thanks for your time/support,
Stef.

--
_________________________________________________
               Stephane Richard
 Kasenna Inc.         Redefining Broadband Video!

Sent via Deja.com http://www.deja.com/
Before you buy.

2. xbiff++ with sound

3. pbs compiling apache 1.3.12 (under Redhat 6.2)

4. non-standard network routing problem/question

5. Apache/1.3.12 on Sun Sparc with RedHat 6.2

6. Stable 1.3.xx kernel?

7. Apache 1.3.12 with RedHat 6.2

8. Keep getting EADDRINUSE on re-bind.

9. help with mod_rewrite (apache 1.3.12, RH linux 6.2)

10. MMAP error message on rh 6.2 apache 1.3.12

11. Problem installing apache 1.3.12 on RedHat Linux

12. installing apache 1.3.12 on redhat linux 6.1

13. Apache 1.3.12 - AddDescription problem (apache bug ?)