This is the mail archive of the cygwin 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]

Re: Build/Compile problems with ApachPHP on Cygwin MS-XP


Chris Oxenreider wrote:

Thank you for your reply.  Sorry for the delay in getting back to you.
I was trying to resolve some of these myself.  The good news is that I
can compile apache.  The bad news is that I continue to have issues with
PHP 5.

On Tue, 28 Jun 2005, Gerrit P. Haase wrote:

The configure command I used is (apache):

LDFLAGS_SHLIB="--enable-auto-import" ./configure --enable-shared=max \
  --enable-module=most --with-layout=Cygwin


For apache my problem was that I did not use the 'shared core' rule.

../configure --enable-shared=max \
    --enable-module=most \
    --disable-module=auth_dbm \
    --with-layout=Cygwin \
    --enable-rule=SHARED_CORE


-e 's%@LIBS_SHLIB@%%g' && chmod a+x apxs
gcc -c -I../os/cygwin -I../include -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE `../
apaci` checkgid.c



I see no errors, and I see no warnings.


Apologies.  I neglected to include the lines that gave warnings about
undefined symbols not allowed in shared libs.


Have you applied the Cygwin specific patch as it was used to build
apache 1.3.33 for the Cygwin releaseof Apache: http://cygwin.com/packages/apache/ ?


Rebuilding from source with the Cygwin Apache source package should
work.


The link you have listed does not not appear to let me download the
latest package.  It only displays an HTML page showing a list of files
when I click on the 'package' file but nothing is downloaded.  It might
be that I am understanding something wrong though.

This is just an overview about the packages which are available for installation via Cygwin Setup. You can fetch all these packages from the usual mirrors.

Using the above ./configure line I was able to compile apache 1.3.33
from stock sources.


My other problem with compiling PHP still persists though. After modifying the Make file to have libtool go in to debug mode

LIBTOOL = $(SHELL) $(top_builddir)/libtool --debug --preserve-dup-deps

and modifying the libtool script so that it did not allow undefined
symbols by changing all the 'allow_undefined=' lines to 'no'.


This is the wrong approach, use the linking flag -no-undefined instead.

When doing this I receive copious amounts of errors and the last error
is:

/usr/lib/libcygwin.a(libcmain.o):: undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

This is an old libtool, use the latest libtool package available for Cygwin (the name is libtool-devel).


PHP was configured:

../configure --without-mysql \
    --enable-track-vars \
    --with-config-file-path=/usr/local/lib \
    --with-apxs=/usr/sbin/apxs \
    --enable-shared \
    --with-xml \
    --without-sapi


Your assistance is greatly appreciated.


You're welcome,
Gerrit
--
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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