Cannot successfully build PHP in Fedora 9


 
Thread Tools Search this Thread
Operating Systems Linux Cannot successfully build PHP in Fedora 9
# 1  
Old 01-03-2011
Cannot successfully build PHP in Fedora 9

Hi everyone,

I need to update PHP from 5.2.6 to the latest version, and I can't build it properly. I just upgraded Apache to 2.2.17, and that is working fine, but when I build PHP, libphp5.so is not built and placed in the Apache modules folder.

I have stripped the ./configure command down to
Code:
--with-apxs2=/usr/local/apache2/bin/apxs

Apache is shut down when I compile PHP.
I am logged in as root during the whole process.

I understand that Fedora 9 is an old distro, but we can't really upgrade at this moment.

This should work on Fedora 9 just fine, right?

Thanks for any help that you can provide.
# 2  
Old 01-03-2011
Quote:
Originally Posted by manafi
Hi everyone,

I need to update PHP from 5.2.6 to the latest version, and I can't build it properly. I just upgraded Apache to 2.2.17, and that is working fine, but when I build PHP, libphp5.so is not built and placed in the Apache modules folder.
Where is it put instead? Is it even built? You may be able to copy it manually.
# 3  
Old 01-03-2011
No, I don't think it is built. I ran
Code:
find . -name libphp5.so

in the install directory, and it came up with nothing. Is there somewhere else it might be located?
# 4  
Old 01-03-2011
Try looking for it in the build directory. You may have to copy it manually.

It may have a funny name, look for '*.so*'
# 5  
Old 01-04-2011
I've looked throughout the build directory, and I don't find anything with a .so extension. There are both libs and modules folders, but they are empty.

However, I found this message in the config.log file:
Code:
/root/install/php-5.2.16/configure:14043: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14026 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char yp_get_default_domain(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yp_get_default_domain();

Is that something that I need to be concerned about?

---------- Post updated 01-04-11 at 10:22 AM ---------- Previous update was 01-03-11 at 01:16 PM ----------

This has been solved -- mostly due to my own stupidity, but with a little help from 'make distclean'

Thanks for all of your help.
# 6  
Old 01-04-2011
Glad you got it working!
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Build.xml invocation by Build Script

Hi I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies

2. UNIX for Dummies Questions & Answers

Adding SDK Build on Kernel Source Build

Hi, So I downloaded this kernel source and was able to build it successfully. But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself. I added the SDK in the main Makefile: init-y := init/ #added SDK... (0 Replies)
Discussion started by: h0ujun
0 Replies

3. Red Hat

fedora grub help, moving to tri boot (XP, ubuntu, fedora soemething)

I will shortly be adding a fedora flavor to my devel box. I currently have XP (installed first on an ssd), ubuntu 10.04 (installed second on the first partition of a platter drive), and I want to add either Cent or SL on the second partition of the platter drive. I will probably also want to... (0 Replies)
Discussion started by: LMHmedchem
0 Replies

4. Linux

Dual Boot Win XP And Fedora with Fedora Installed First

Hi everyone, I hope this question goes here. Anyways, I have a unique situation where my friend's comp has Fedora installed and wants to add Win XP as a dual boot without formatting the drive. Is it possible to create a partition on the current hard drive and then install win xp? I couldn't find... (4 Replies)
Discussion started by: eltinator
4 Replies
Login or Register to Ask a Question