This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

AW: PHP Apache module with PostgreSQL support

> > > > Step [5] breaks with:
> > > > ...
> > > > checking for PostgreSQL support... yes
> > > > configure: error: Cannot find Please specify correct
> > > PostgreSQL installation path
> > >
> > > My WAG (without checking the source) is that you will need to patch
> > > to deal with the Cygwin platform.
> >
> > Thank you!
> You are welcome, but I only stated the obvious above.
> > Is this something different? (I did the similar with pgsql before I
> > installed pgsql from source.) The output of the above line is:
> > ...
> > patching file 'php-4.2.0-1/ext/pgsql/config.m4
> > ...
> >
> > is mentioned in the config.m4.
> >
> > Could you explain what should be patched in the script,
> > please?
> Then you may need to patch config.m4 instead (again, I have not checked
> the source).  The bottom line is that under Cygwin the check for the
> existence of the pq library must look for either libpq.a (i.e., import
> library) or pq.dll (i.e., shared library).  Choose the one that
> minimizes the patch.

Thanks a lot Jason! That's it!
I thought the applied patch will modify the configure script to make it
cygwin compatible...

In case that someone is interested in how to deal with this:
  apply the patch:
    patch -p0 < php-X-Y/CYGWIN-PATCHES/php-4.2.0-1.patch	[2]
  search for in the configure script and simply rename it to

The php-4.2.0-1.patch contains lines that check for libpq.a but they have no
effect on the configure script.

The next hurdle is the command. I don't know how to add the
dependent pq.dll (/usr/bin) to the following command:
  ../../../CYGIN-PATCHES/ \
    -L ../../../.libs -lphp4 \
    /usr/bin/cyghttpd.dll				[8]

It doesn't work that way:
  ../../../CYGIN-PATCHES/ \
    -L ../../../.libs -lphp4 \
    /usr/bin/cyghttpd.dll /usr/bin/pq.dll		[8]

Any suggestions?


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]