LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-13-2007, 07:54 AM   #1
soapbox
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Question trouble building PHP-5.1 on RHEL4 x86_64


Hello!
I know that RedHat officially does not provide PHP5 for RHEL4 yet, but it is absolutely necesery for me. I have dloaded php-5.1.4 source rpm from CentOS mirror (in fact I tried various PHP 5 source rpm versions) and did upgraded downloaded and installed flawlessly the missing prerequisite RPMs but it fails at the build stage where it is linking it all. I am not much into debugging why things fail to compile and when I tried it became only worse so I went and installed precompiled rpm and saved the fuss. But this time it is different - I need PHP5 on that RHEL4 machine and there is no prebuilt RPM as far as I know. Please tell me what is wrong here or help me understand how this mysterios building process is working on Linux in general, maybe one can point me to some good reading because just googling around does not give a full picture.
Anyway there is whats happening. I dont know where to look for more detailed error outputs or logs, this is what comes on stdout:

Code:
/bin/sh /usr/src/redhat/BUILD/php-5.1.4/build-cgi/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.1.
4/build-cgi/include -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/main -I/usr/src/redhat/BUILD/php-5.1.4 -I/usr/include/libxml2 -I/usr/kerberos/include
-I/usr/include/pcre -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/ext/date/lib -I/usr/src/redhat/BUILD/php-5.1.4/ext/date/lib -I/usr/include/freetype2 -
I/usr/include/imap -I/usr/src/redhat/BUILD/php-5.1.4/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/ext/mbstring/oniguruma -I/usr/
src/redhat/BUILD/php-5.1.4/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.1.4/ext
/mbstring/libmbfl/mbfl -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/ncurses -I/usr/includ
e/pspell -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/TSRM -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/Zend -I/usr/src/redhat/BUILD/php-5.1.4/main -I/u
sr/src/redhat/BUILD/php-5.1.4/Zend -I/usr/src/redhat/BUILD/php-5.1.4/TSRM -I/usr/src/redhat/BUILD/php-5.1.4/build-cgi/    -I/usr/include -O2 -g -pipe
-m64   -o ext/mysqli/mysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/redhat/BUILD/php-5.1.4/build-cgi/modules -L/usr/kerb
eros/lib -L/usr/kerberos/lib64 ext/mysqli/mysqli.lo ext/mysqli/mysqli_api.lo ext/mysqli/mysqli_prop.lo ext/mysqli/mysqli_nonapi.lo ext/mysqli/mysqli_f
e.lo ext/mysqli/mysqli_report.lo ext/mysqli/mysqli_repl.lo ext/mysqli/mysqli_driver.lo ext/mysqli/mysqli_warning.lo ext/mysqli/mysqli_exception.lo ext
/mysqli/mysqli_embedded.lo -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
/usr/lib64/mysql/libz.a(adler32.o)(.text+0x0): In function `adler32':
/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/adler32.c:66: multiple definition of `adler32'
/usr/lib64/mysql/libmysqlclient.a(adler32.o)(.text+0x0):/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/adler32.c:66:
first defined here
/usr/lib64/mysql/libz.a(adler32.o)(.text+0x340): In function `adler32_combine':
/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/adler32.c:138: multiple definition of `adler32_combine'
/usr/lib64/mysql/libmysqlclient.a(adler32.o)(.text+0x340):/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/adler32.c:13
8: first defined here
/usr/lib64/mysql/libz.a(compress.o)(.text+0x0): In function `compress2':
/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/compress.c:28: multiple definition of `compress2'
/usr/lib64/mysql/libmysqlclient.a(compress.o)(.text+0x0):/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/compress.c:28
: first defined here
/usr/lib64/mysql/libz.a(compress.o)(.text+0xf0): In function `compress':
/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/compress.c:68: multiple definition of `compress'
/usr/lib64/mysql/libmysqlclient.a(compress.o)(.text+0xf0):/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/compress.c:6
8: first defined here
/usr/lib64/mysql/libz.a(compress.o)(.text+0x100): In function `compressBound':
/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/compress.c:78: multiple definition of `compressBound'
/usr/lib64/mysql/libmysqlclient.a(compress.o)(.text+0x100):/data0/users/mysqldev/tmp-200707041150-5.0.45-15791/rpm/BUILD/mysql-5.0.45/zlib/compress.c:
78: first defined here
and then it goes on further with loads of those "multiple definitions", at the end there is this:
Code:
collect2: ld returned 1 exit status
make: *** [ext/mysqli/mysqli.la] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.68625 (%build)
Where should I start?

I'll appreciate any helpfull response.

Nils
 
Old 09-13-2007, 08:57 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Quote:
I need PHP5 on that RHEL4 machine and there is no prebuilt RPM as far as I know.
Quote:
I have dloaded php-5.1.4 source rpm from CentOS mirror
What!?, This does not make sense!, if you can download the source rpm then the binary rpms are available, for example from;

http://isoredirect.centos.org/centos...s/x86_64/RPMS/

php-5.1.6-3.el4s1.7.x86_64.rpm 18-Jun-2007 14:39 1.2M

Well lookie there php-5.1.6!!!
 
Old 09-13-2007, 10:00 AM   #3
soapbox
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard View Post
What!?, This does not make sense!, if you can download the source rpm then the binary rpms are available, for example from;

http://isoredirect.centos.org/centos...s/x86_64/RPMS/

php-5.1.6-3.el4s1.7.x86_64.rpm 18-Jun-2007 14:39 1.2M

Well lookie there php-5.1.6!!!
Thanks!!! Indeed it works, I just tried some other CentOS build and I could not install it and then I red that RHEL4 has some specificially linked libraries and not everything is running straight from CentOS and you need to compile. So I even did not try..

Problem solved! Though I still would like to know whats going on inside build processes
 
Old 09-13-2007, 07:49 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
CentOS4.X is 100% binary compatible with RHEL4 updateX, perhaps you need to consier yum'ifing RHEL;

http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL

Red Hat now uses yum as the update method of choice for RHEL 5, consider yum on RHEL4 training for RHEL5.
 
Old 09-14-2007, 07:12 AM   #5
soapbox
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard View Post
CentOS4.X is 100% binary compatible with RHEL4 updateX, perhaps you need to consier yum'ifing RHEL;

http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL

Red Hat now uses yum as the update method of choice for RHEL 5, consider yum on RHEL4 training for RHEL5.
Yes, I will do it ASAP! Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble building a Cross Compiler to use to build a x86_64 kernel. nLEyETn Linux - Software 2 05-08-2007 07:35 PM
Postfix on RHEL4 , x86_64 nayyares Linux - General 1 01-03-2007 11:51 AM
Why Dell Server managment doesn't recognize my home-burned RHEL4 x86_64 CD1? hangsyin Red Hat 4 10-20-2006 01:14 PM
Configuring and building an i686/K7 kernel on an x86_64 system. Thetargos Linux - Kernel 2 07-21-2006 10:02 PM
Building pure x86_64 daly1 Linux From Scratch 1 06-25-2005 12:59 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration