You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ken Scoggins <ke...@scogginsbros.com> on 2002/01/16 20:19:52 UTC

general/9498: dllwrap command missing libpq.a when enabling PHP with PostgreSQL support

>Number:         9498
>Category:       general
>Synopsis:       dllwrap command missing libpq.a when enabling PHP with PostgreSQL support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Jan 16 11:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ken@scogginsbros.com
>Release:        1.3.22
>Organization:
apache
>Environment:
Windows 2000; Cygwin 1.3.6-6; PHP 4.1.1 w/ PostgreSQL support (not by choice! no mySQL port for Cygwin, from what I can find!  Long story of why I have to use Cygwin.)
>Description:
I was trying to install PHP4 w/ PostgreSQL support statically in httpd on Cygwin.  Build would fail on "dllwrap" command because of "undefined reference" errors for "PQ*" in the PHP library.  I was able to work around the problem by adding "-lpq -lpostgres" to EXTRA_LIBS and modifying Makefile LD_SHLIB command to include $EXTRA_LIBS.

Exact command sequence:

<extracted apache and php source files>
cd apache_1.3.22
./configure --prefix=/usr/local/apache --enable-module=so

cd ../php-4.1.1
./configure --with-pgsql=/usr --with-apache=../apache_1.3.22  --enable-track-vars --disable-xml
make
make install

cd ../apache_1.3.22
./configure --prefix=/usr/local/apache --enable-module=so  --activate-module=src/modules/php4/libphp4.a
make

<all would compile>
<dllwrap command would fail>
>How-To-Repeat:
See command list in description.
>Fix:
Add $(EXTRA_LIBS) to the $(LD_SHLIB) command in Makefile.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]