Bug 4767

Summary: splitting mod_php3 packages caused configure problems
Product: [Retired] Red Hat Raw Hide Reporter: Jay Freeman <saurik>
Component: mod_php3Assignee: Preston Brown <pbrown>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-24 00:17:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jay Freeman 1999-08-28 21:59:01 UTC
If you do a   configure --with-pgsql   you normally see
this:

checking for PostgresSQL support... yes
checking for PQcmdTuples... yes

:which detects cmdTuples, and defines HAVE_PGCMDTUPLES,
however since mod_php3 is no longer being compiled with
built in pgsql support, that is no longer being passed to
configure, and the resulting module doesn't contain this
support.  You should be able to simply -D this into the gcc
statement that compiles the pgsql support, but a better
option might be to redo the configure statement before
compiling each module, and include the required --with (or
just do this once after compiling the main php3 module with
the --with for ALL the later compiled modules).  That way
any new configuration options that are needed by the
modules will be compiled in as the PHP people add them.

Comment 1 Preston Brown 1999-08-29 16:05:59 UTC
this has been fixed for the next release (6.1) in php-3.0.12-3 and
later.

Comment 2 Jay Freeman 1999-09-04 20:20:59 UTC
php-3.0.12-4 still does not include pg_cmdtuples() support

Comment 3 Jay Freeman 1999-09-04 21:04:59 UTC
Sorry, this is probably my fault.  I stated that the correct define
was HAVE_PGCMDTUPLES, when it is really HAVE_PQCMDTUPLES, with a Q
instead of the G.  This affects the following line in the spec file:

gcc -shared -fPIC -DCOMPILE_DL=1 -DHAVE_PGCMDTUPLES -I. -
I/usr/include/apache \
        -I/usr/include/pgsql -o pgsql.so \
        ./functions/pgsql.c -lpq -lc

Comment 4 Preston Brown 1999-09-24 00:17:59 UTC
fixed in the 3.0.12-5 build.