Jump to content
Sign in to follow this  
hybrid

Compiling Apache 2.x on FCR5 T3

Recommended Posts

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:

 

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

Share this post


Link to post
Share on other sites

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:

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

Share this post


Link to post
Share on other sites
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:

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

 

I get

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

.

 

Does this mean it should work?

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...