trouble compiling PHP with PostgreSQL under cygwin

From: "Clemens Bertram" <clemens(dot)bertram(at)semagix(dot)com>
To: <pgsql-cygwin(at)postgresql(dot)org>
Subject: trouble compiling PHP with PostgreSQL under cygwin
Date: 2003-07-08 03:38:18
Message-ID: 43EE4E14DBF65B48B9350310270B315D3EEA84@smtp.protegegroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

I'm trying to get Apache, PHP, and PostgreSQL compiled under cygwin (on Windows XP Home), but I haven't been very lucky so far.
Postgresql configure and make/make install worked just fine.

But PHP does not like me.
I have to
$ export PGSQL_INCLUDE=/usr/local/pgsql/include/
$ export PGSQL_LIBDIR=/usr/local/pgsql/lib/
to get the configure going:

./configure --with-apxs=/usr/sbin/apxs --with-pgsql=shared --enable-track-vars --with-xml

(otherwise it complains about not finding libpg.so)

make always stops at the following line, though, and I have not been able to get past it:

/bin/sh /usr/src/php-4.2.0-2/libtool --silent --mode=compile gcc -I. -I/usr/src/php-4.2.0-2/ext/pgsql -I/usr/src/php-4.2.0-2/main -I/usr/src/php-4.2.0-2 -I/usr/
include/apache -I/usr/src/php-4.2.0-2/Zend -I/usr/src/php-4.2.0-2/ext/mysql/libmysql -I/usr/local/pgsql/include -I/usr/src/php-4.2.0-2/ext/xml/expat /usr/local/
pgsql/include/ -DCYGWIN -DCYGWIN_WINSOCK -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT -DSHARED_CORE -I/usr/src/php-4.2.0-2/TSRM -g -O2 -prefer-pic -c pgsql.c
&& touch pgsql.slo
gcc: cannot specify -o with -c or -S and multiple compilations
make[3]: *** [pgsql.slo] Error 1
make[3]: Leaving directory `/usr/src/php-4.2.0-2/ext/pgsql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.0-2/ext/pgsql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.0-2/ext'
make: *** [all-recursive] Error 1

What am I doing wrong?
I tried configure --with-apache before, but it stops here as well.

All help is greatly appreciated! [I don't want to resort to MySQL!]

Clemens

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2003-07-08 11:55:02 Re: installation question
Previous Message Xinyu Hua 2003-07-08 01:51:49 installation question