Bug 223989 - php-oci8 from source rpm compile issue
php-oci8 from source rpm compile issue
Status: CLOSED DUPLICATE of bug 162241
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: php (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-01-23 09:41 EST by Alexandre CUILLERIER
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-02-02 08:16:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
compilation log file (900.79 KB, text/plain)
2007-01-23 09:47 EST, Alexandre CUILLERIER
no flags Details

  None (edit)
Description Alexandre CUILLERIER 2007-01-23 09:41:17 EST
Description of problem:
unable to compile php with oci8 from source rpm

Version-Release number of selected component (if applicable):

How reproducible:
always, it seems

Steps to Reproduce:
1. download php source rpm package, 
2. make oracle-instant-client rpms from binary backages (as seen there:
http://remi.collet.free.fr/index.php?2006/06/24/166-oracle-instant-client -
sorry it's in french)
3. compile with rpmbuild -bb whateveroci8/oracle/define...parameter
(--define "_with_oci8 1" gives better results)
Actual results:
see log attached
doesn't compile with oci8 module option activated.

Expected results:
oci8 module for php and complete build of rpms

Additional info:
Comment 1 Alexandre CUILLERIER 2007-01-23 09:47:54 EST
Created attachment 146300 [details]
compilation log file

re-adding log file, couldn't see it
Comment 2 Alexandre CUILLERIER 2007-01-23 12:29:13 EST
Solution found !!!

the source rpm includes an oci8 patch which is not applied by the .spec file.
This little patch (please be gentle, it's my first one : "diff -urN oldfile
newfile" ) seems to make the compilation with oci8 option work!

content of the patch (I named it: php-4.3.9-spec-RHEL4.oci8.patch):
--- php.spec    2006-11-02 22:26:49.000000000 +0100
+++ php.spec.patched       2007-01-23 17:28:21.000000000 +0100
@@ -37,6 +37,7 @@
 Patch23: php-4.3.9-curlpost.patch
 Patch24: php-4.3.8-gdnspace.patch
 Patch25: php-4.3.2-curlsafemode.patch
+Patch26: php-4.3.9-oci8.patch

 # Functional changes
 Patch30: php-4.3.1-dlopen.patch
@@ -330,6 +331,7 @@
 %patch23 -p1 -b .curlpost
 %patch24 -p1 -b .gdnspace
 %patch25 -p1 -b .curlsafemode
+%patch26 -p1 -b .oci8

 %patch30 -p1 -b .dlopen
 %patch31 -p1 -b .easter
which I applied with command:
# patch -p0 <php-4.3.9-spec-RHEL4.oci8.patch

Then compile php this way:
# rpmbuild -bb --define "_with_oci8 1" php.spec
Comment 3 Joe Orton 2007-02-02 08:16:58 EST

*** This bug has been marked as a duplicate of 162241 ***

Note You need to log in before you can comment on or make changes to this bug.