delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/23/10:25:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 23 Sep 2004 16:24:39 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Reply-To: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
Message-ID: <1649495088.20040923162439@familiehaase.de>
To: Brian Dessent <cygwin AT cygwin DOT com>
Subject: Re: New packge: lighttpd-1.3.0
In-Reply-To: <4152D1C9.46BB656A@dessent.net>
References: <E1CA4ul-0006CO-00 AT mailhub-04 DOT inode DOT at> <41519C77 DOT 4080201 AT x-ray DOT at> <1656566026 DOT 20040922215552 AT familiehaase DOT de> <41520175 DOT AA068400 AT dessent DOT net> <618153225 DOT 20040923011821 AT familiehaase DOT de> <41521CB9 DOT CCEFB0B AT dessent DOT net> <675000566 DOT 20040923034336 AT familiehaase DOT de> <415230DB DOT 83A3B87E AT dessent DOT net> <906379301 DOT 20040923144500 AT familiehaase DOT de> <4152D1C9 DOT 46BB656A AT dessent DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes

Hallo Brian,

Am Donnerstag, 23. September 2004 um 15:38 schriebst du:

> "Gerrit P. Haase" wrote:
>> 
>> Hello Brian,
>> 
>> >> I have a flag here:
>> >> --enable-embed=TYPE   EXPERIMENTAL: Enable building of embedded SAPI library
>> >>                           TYPE is either 'shared' or 'static'. TYPE=shared
>> >>
>> >> is this new in php-5?  Lets see what happens when I define it.
>> 
>> > No, it's the same in php4, and I haven't had to touch it.
>> 
>> > Are you using one of --with-apxs or --with-apache?  The former requires
>> > Apache to be installed and the apxs binary in the path or specified
>> > location, and the latter requires an Apache source tree that's been
>> > configured.  If neither is found or gives an error then it won't try to
>> > build as an apache module, which looks like what's happening in your
>> > case -- getting the CLI only.
>> 
>> No I don't use Apache here at home, I running lighttpd now;) I use the
>> options --enable-fastcgi and two others to get the CGI SAPI.
>> 
>> Now I see "$(LIBTOOL) --mode=compile $(CC) ...." in the Makefile,
>> which was previously just "$(CC) ...", however I'm not sure what
>> option makes the difference, I already see now what the problem is, if
>> you have a source tree with the static archives ready compiled you can
>> try the following, remove all *.la files, add to the Makefile:
>> LDFLAGS = -no-undefined
>> and run make again and see if the modules are compiled shared then.
>> 
>> There should be lines like this in the Makefile:
>> ext/bcmath/bcmath.la: $(shared_objects_bcmath) $(BCMATH_SHARED_DEPENDENCIES)
>>         $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS)
>> $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic
>> -avoid-version -prefer-pic -module -rpath $(phplibdir)
>> $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD)
>> 
>> Originally LDFLAGS is empty.  BUT, BCMATH_SHARED_LIBADD is empty too,
>> so it needs to hold a reference to libphp5 else there will be most
>> probably failures during linking because of unresolved references.
>> 
>> This will need some more changes in their build system, that is
>> we need to update all config.m4 files to include the reference to
>> libphp.la for all modules which are available.

> I'll attach the patches that I finally arrived at.  Basically, I skip
> the step of creating libtoolized *.a and *.la and then using that awful
> mkdll.sh to compile that into a dll.

I dislike this, as long as they use libtool we should try to use it.

Are the fixes in the config.m4 file really needed?  Which of our
libraries are not available as static archive so they are not found?

I have a fix (cygwin-special) for the DBA / BDB4 issue.
I will try to figure out how to get all the shared modules with the
built-in methods (no automake & libtool).


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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019