[CentOS-devel] Trouble building php4 source rpm on CentOS4

Wed Apr 7 21:38:22 UTC 2010
Herman Strom <herman.strom at informs.org>

I am trying to build php4 from source rpm on CentOS4. Tests fail. Did anyone
hear any problems like this?

Herman Strom · Systems Administrator · INFORMS®

[herman at mail ~]$ wget -c
"https://content-web.rhn.redhat.com/rhn/public/NULL/php/4.3.9-3.29/SRPMS/php
-4.3.9-3.29.src.rpm?__gda__=1270563240_f860090ae3ca8c76da62180ae7edfc40"
--10:05:27--  
https://content-web.rhn.redhat.com/rhn/public/NULL/php/4.3.9-3.29/SRPMS/php-
4.3.9-3.29.src.rpm?__gda__=1270563240_f860090ae3ca8c76da62180ae7edfc40
 => 
`php-4.3.9-3.29.src.rpm?__gda__=1270563240_f860090ae3ca8c76da62180ae7edfc40'
Resolving content-web.rhn.redhat.com... 69.192.10.169
Connecting to content-web.rhn.redhat.com|69.192.10.169|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,325,976 (5.1M) [application/octet-stream]

100%[==============================>] 5,325,976    224.74K/s    ETA 00:00

10:05:50 (241.69 KB/s) -
`php-4.3.9-3.29.src.rpm?__gda__=1270563240_f860090ae3ca8c76da62180ae7edfc40'
saved [5325976/5325976]

[herman at mail ~]$ ls -la
php-4.3.9-3.29.src.rpm\?__gda__\=1270563240_f860090ae3ca8c76da62180ae7edfc40
-rw-rw-r--  1 herman herman 5325976 Jan 13 12:43
php-4.3.9-3.29.src.rpm?__gda__=1270563240_f860090ae3ca8c76da62180ae7edfc40
[herman at mail ~]$ mv -v
php-4.3.9-3.29.src.rpm{\?__gda__\=1270563240_f860090ae3ca8c76da62180ae7edfc4
0,}
`php-4.3.9-3.29.src.rpm?__gda__=1270563240_f860090ae3ca8c76da62180ae7edfc40'
-> `php-4.3.9-3.29.src.rpm'
[herman at mail ~]$ rpm -vhU php-4.3.9-3.29.src.rpm
 1:php                    ########################################### [100%]
[herman at mail ~]$ cp -av src/SPECS/php{,-4.3.9-3.29}.spec
`src/SPECS/php.spec' -> `src/SPECS/php-4.3.9-3.29.spec'
[herman at mail ~]$ cat .rpmmacros
%_topdir %(echo $HOME)/src
%_tmppath %_topdir/tmp
%dist el4_8
[herman at mail ~]$ vi src/SPECS/php-4.3.9-3.29.spec
[herman at mail ~]$ rpmbuild -bb src/SPECS/php-4.3.9-3.29.spec
Executing(%prep): /bin/sh -e /home/herman/src/tmp/rpm-tmp.992
+ umask 022
+ cd /home/herman/src/BUILD
+ cd /home/herman/src/BUILD
+ rm -rf php-4.3.9
+ /usr/bin/gzip -dc /home/herman/src/SOURCES/php-4.3.9.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd php-4.3.9
++ /usr/bin/id -u
+ '[' 502 = 0 ']'
++ /usr/bin/id -u
+ '[' 502 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #2 (php-4.3.4-config.patch):'
Patch #2 (php-4.3.4-config.patch):
...
SKIP PEAR_Dependency::checkPackage() test
[pear/tests/pear_dependency_checkPackage.phpt]
SKIP PEAR_Dependency::checkPackageUninstall() test
[pear/tests/pear_dependency_checkPackageUninstall.phpt]
SKIP PEAR_Downloader::download() invalid values test
[pear/tests/pear_downloader_invalid.phpt]
SKIP PEAR_Downloader::download() test [pear/tests/pear_downloader_new.phpt]
SKIP PEAR_Installer test: PEAR_Installer::download() (deprecated)
[pear/tests/pear_downloader_old.phpt]
SKIP PEAR_Error: basic test [pear/tests/pear_error.phpt]
SKIP PEAR_Error: die mode [pear/tests/pear_error2.phpt]
SKIP PEAR_Error: default error handling [pear/tests/pear_error3.phpt]
SKIP PEAR_Error: expected errors [pear/tests/pear_error4.phpt]
SKIP PEAR_Installer test #1 [pear/tests/pear_installer1.phpt]
SKIP PEAR_Installer test #2 [pear/tests/pear_installer2.phpt]
SKIP PEAR_Installer test #3 File Transactions
[pear/tests/pear_installer3.phpt]
SKIP PEAR_Installer test #4: PEAR_Installer::install()
[pear/tests/pear_installer4.phpt]
SKIP PEAR_Installer test #5: test directory tracking/deletion of
installation [pear/tests/pear_installer5.phpt]
SKIP PEAR_Packager test [pear/tests/pear_packager.phpt]
SKIP PEAR_Registry [pear/tests/pear_registry.phpt]
SKIP System commands tests [pear/tests/pear_system.phpt]

=====================================================================
TIME END 2010-04-06 10:28:13
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   55
Exts tested     :   32
---------------------------------------------------------------------
Number of tests :  606
Tests skipped   :  218 (36.0%)
Tests warned    :    0 (0.0%)
Tests failed    :    2 (0.3%)
Tests passed    :  386 (63.7%)
---------------------------------------------------------------------
Time taken      :   89 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
shmop extension test [ext/shmop/tests/001.phpt]
General semaphore and shared memory test [ext/sysvsem/tests/sysv.phpt]
=====================================================================
make: *** [test] Error 1
+ set +x
>> TEST FAILURE: ../ext/shmop/tests/001.diff --
001- shm open for create: ok
001+ shm open for create:
002- shm size is: 1024
002+ Warning: shmop_open(): unable to attach or create shared memory segment
in /home/herman/src/BUILD/php-4.3.9/ext/shmop/tests/001.php on line 7
003- shm write test #1: ok
003+ failed
004- data in memory is: test #1 of the shmop() extension
005- shm open for read only: ok
006- data in memory is: test #1 of the shmop() extension
007- trying to write to a read only segment
008- shm open for read only: ok
009- shm write test #1: ok
010- data in memory is: test #1 of the shmop() extensiontest #2 append data
to shared memory segment
011- deletion of shm segment: ok
<< ../ext/shmop/tests/001.diff result ends.
>> TEST FAILURE: ../ext/sysvsem/tests/sysv.diff --
002- Got semaphore Resource id #%i.
002+ Got semaphore Resource id #4.
003- Success aquire semaphore Resource id #%i.
003+ Success aquire semaphore Resource id #4.
004- Success to attach shared memory : %i.
004+ 
005- Write var1 to shared memory.
005+ Warning: shmget() failed for key 0x2: Invalid argument in
/home/herman/src/BUILD/php-4.3.9/ext/sysvsem/tests/sysv.php on line 23
006- Write var2 to shared memory.
006+ Fail to attach shared memory.
007- Read var1=Variable 1.
008- Read var2=Variable 2.
009- Semaphore Resource id #%i released.
010- Shared memory successfully removed from SysV.
011- semaphore removed successfully from SysV.
012- End.
<< ../ext/sysvsem/tests/sysv.diff result ends.
error: Bad exit status from /home/herman/src/tmp/rpm-tmp.57805 (%check)


RPM build errors:
 Bad exit status from /home/herman/src/tmp/rpm-tmp.57805 (%check)