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