delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/13/16:01:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <025401c2d3a3$0dc72480$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <cygwin AT cygwin DOT com>
References: <016401c2d379$4959ca40$78d96f83 AT pomello> <20030213204349 DOT 63545 DOT qmail AT web12306 DOT mail DOT yahoo DOT com> <20030213204853 DOT GI32279 AT redhat DOT com>
Subject: Re: wvWare and cygwin
Date: Thu, 13 Feb 2003 21:01:18 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Christopher Faylor wrote:
> On Thu, Feb 13, 2003 at 12:43:49PM -0800, neal somos wrote:
>> If I make the following change to wv2's configure, I can then make
>> the package
>>
>> 25826c25826
>> < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS
>> conftest.$ac_ext $LIBS >&5'
>> ---
>>> ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS
>>> conftest.$ac_ext $LDFLAGS $LIBS >&5'
>>
>> Basically ...
>>  gcc -o conftest.exe -O2 -liconv conftest.c
>> produces quite different results from
>>  gcc -o conftest.exe -O2 conftest.c -liconv
>> which are the compile lines from the test being run by configure.
>>
>> How the original test works elsewhere but fails on cygwin
>> is beyond me at this time.
>
> It's probably expecting that it can do something put
>
> extern int libiconv_close();
>
> in a source file and then just link it.  That doesn't necessarily work
> on Windows.  You may have to mark the declaration with
> declspec(dllimport);.
>
> The function should be auto-imported automatically but maybe there is
> a warning showing up or something which is confusing autoconf.

No, I looked at wv2's configure.in. They are wrongly putting -liconv into
$LDFLAGS, not $LIBS.
It's that gcc link order FAQ all over again.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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