Linux-Noob Forums
Compiling Apache 2.x on FCR5 T3 - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Distro Noob (https://www.linux-noob.com/forums/forum-10.html)
+--- Forum: Fedora (https://www.linux-noob.com/forums/forum-94.html)
+---- Forum: Fedora Core Release 5 (https://www.linux-noob.com/forums/forum-43.html)
+---- Thread: Compiling Apache 2.x on FCR5 T3 (/thread-2095.html)



Compiling Apache 2.x on FCR5 T3 - hybrid - 2006-03-11


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. :)




Compiling Apache 2.x on FCR5 T3 - znx - 2006-03-11


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







Compiling Apache 2.x on FCR5 T3 - hybrid - 2006-03-11


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?




Compiling Apache 2.x on FCR5 T3 - znx - 2006-03-11


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 :)