Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling Apache 2.x on FCR5 T3
#1

I know that you can install it off the disc, but I'm trying to compile Apache 2.0.55 from source on Fedora Core 5 Test 3. I have installed gcc and the related compiler stuff.

 

I run the following configure command: ./configure --prefix=/usr/local/apache2. It finishes without error, so I run make:

 



Code:
/bin/sh /home/peter/Desktop/httpd-2.0.55/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -I../../include -I../../include/arch -I../../include/arch/unix  -c proc_mutex.c && touch proc_mutex.lo
proc_mutex.c: In function 'proc_mutex_proc_pthread_create':
proc_mutex.c:341: error: 'PTHREAD_PRIO_INHERIT' undeclared (first use in this function)
proc_mutex.c:341: error: (Each undeclared identifier is reported only once
proc_mutex.c:341: error: for each function it appears in.)
make[4]: *** [proc_mutex.lo] Error 1
make[4]: Leaving directory `/home/peter/Desktop/httpd-2.0.55/srclib/apr/locks/unix'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/peter/Desktop/httpd-2.0.55/srclib/apr/locks/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/peter/Desktop/httpd-2.0.55/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/peter/Desktop/httpd-2.0.55/srclib'
make: *** [all-recursive] Error 1




 

I have snipped the lines that appeared to work.

 

What am I doing wrong here? Is there something else I need to install (but surely then it would tell me during configure)? Or is it a (known or unknown) bug?

 

This seems to also happen with Apache 2.2.x.

 

Thanks in advance for any help. :)

Reply
#2

I notice it has -pthread in the line.. normally the linker is -lpthread or at least thats what I believe.

 

Anyway make sure you have pthreads installed.. look for:



Code:
$ ls /lib/libpthread*
/lib/libpthread-0.10.so  /lib/libpthread.so.0




Reply
#3

Quote:I notice it has -pthread in the line.. normally the linker is -lpthread or at least thats what I believe. 

Anyway make sure you have pthreads installed.. look for:



Code:
$ ls /lib/libpthread*
/lib/libpthread-0.10.so  /lib/libpthread.so.0

<div>


</div>
 

I get

Code:
$ ls /lib/libpthread*
/lib/libpthread-2.3.90.so  /lib/libpthread.so.0


.

 

Does this mean it should work?

Reply
#4

Quote:Does this mean it should work?
 

If you were on a source based distro.. :P

 

But look to see what package that is in.. and install the -dev. You will be missing the .a and .h files for that library probably :)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)