delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/06/17/12:56:59

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Mon, 17 Jun 2002 18:54:53 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <155898348276.20020617185453@familiehaase.de>
To: "Peter Ring" <pri AT ddf DOT dk>
CC: cygwin-apps AT cygwin DOT com
Subject: Re: please update libXML
In-Reply-To: <LLEGJLFMJCCMMIIJBIKDEEMOCMAA.pri@ddf.dk>
References: <LLEGJLFMJCCMMIIJBIKDEEMOCMAA DOT pri AT ddf DOT dk>
MIME-Version: 1.0

Peter schrieb:

Should we move this thread over to cygwin at cygwin.com?  Chris?

> I have an up-to-date cygwin installation (with some extras, e.g. iconv), and
> I can build libxml2/libxslt static libraries from cvs.

> But I seem to have a problem building libxml2 shared libraries, and I can't
> say that I understand much of what goes on during the process.


> I downloaded libxml2-2.4.22 (and libxslt-1.0.18), applied the patches, ran
> the relibtoolize script, and get an undefined reference to `WinMain AT 16'.

> If I do not configure --without-iconv (see below), the make stops when
> building the symbol list for iconv:

> ./configure --with-history
> SED=sed make
> extracting exported symbol list from `cygiconv-2.dll'
> test -f .libs/impgen.c || \
>       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends
> here \*\// { s/^# //;s/^# *$//; p; }" -e d < ./libtool > .libs/impgen.c
>       test -f .libs/impgen.exe || (cd .libs && \
>       if test "x" != "x" ; then  -o impgen impgen.c ; \
>       else gcc -o impgen impgen.c ; fi)
>       .libs/impgen /usr/local/lib/../bin/cygiconv-2.dll >
> .libs/cygiconv-2.dll-def
> /usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined reference to
> `WinMain AT 16'
> ...

> The problem is that libtool creates an empty .libs/impgen.c. What version of
> libtool needed? My version:

I cannot remember that I saw impgen at all.
Anyway, I'll look at my logs this evening.

> $ libtool --version
> ltmain.sh (GNU libtool) 1.4e (1.1103 2002/05/02 14:22:51)

Maybe there is a more recent version available?

> Also note that I have to set SED=sed, i.e., configure doesn't set SED by
> itself.

I never used this, shouldn't be needed.

[...]

> gcc -Wl,--base-file,.libs/cygxml2-2.dll-base -Wl,-e,__cygwin_dll_entry AT 12 -o
> .libs/cygxml2-2.dll .libs/libxml2.la-31.o  -lz
> /usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined reference to
> `WinMain AT 16'
> ...


> Kind regards,
> Peter Ring

Hmmm, as you see in the quoted message below it works with my patches
and the relibtoolizing for Stan and me.  What can I say, I have no
idea...


> -----Original Message-----
> From: cygwin-apps-owner AT cygwin DOT com
> [mailto:cygwin-apps-owner AT cygwin DOT com]On Behalf Of Stanislav Sinyagin
> Sent: 17. juni 2002 09:57
> To: cygwin-apps AT cygwin DOT com
> Subject: Re: please update libXML



> --- "Gerrit P. Haase" <gp AT familiehaase DOT de> wrote:
>> Hallo Gerrit,
>>
>> >> Can you please give a clue how to compile the shared libraries?
>>
>> > I use this script to relibtoolize (attached).
>> > Just run it once *after* applying the little patch (works for both,
>> > libxml2 and libxslt).
>>
>> I'm sorry, the patch for libxslt was not tested and therefore not
>> complete, here is a newer version.

> OK, patched version works fine!
> The only side issue is that after successful "make", "make install"
> relinks all executables.

> Thanks a lot,
> Stan

-- 
=^..^=

- Raw text -


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