delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/07/12:52:21

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
Message-ID: <418E6036.7090304@cwilson.fastmail.fm>
Date: Sun, 07 Nov 2004 12:49:42 -0500
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gcc auto-import info (Was: cygwin build failure)
References: <418DDA49 DOT 2080603 AT x-ray DOT at>
In-Reply-To: <418DDA49.2080603@x-ray.at>

Reini Urban wrote:

> Does someone remember how to get rid of the new ld auto-import
>   Info: resolving _optarg by linking to __imp__optarg (auto-import)
>   Info: resolving _optind by linking to __imp__optind (auto-import)
> messages?
> 
> I guess it's no -W, just a diagnostic message, for which not so many 
> options to supress exist.
> Or can you easily declare them on the cmdline to be imported somehow?
> Otherwise we'll have to decorate the src'es with DLLIMPORT

To suppress the info message from ld, explicitly enable auto-import 
(instead of relying on the default-enable of auto-import) by saying 
-Wl,--enable-auto-import

But that's not the error here.  The error is that _pg_tolower is defined 
in both libpgport.a and libpq.a.  This is not an auto-import problem.

> ../../../src/port/libpgport.a(pgstrcasecmp.o)(.text+0x1b0): In function 
> `pg_tolower':
> /home/adunstan/pgbf/root/HEAD/pgsql.3200/src/port/pgstrcasecmp.c:119: 
> multiple definition of `_pg_tolower'
> ../../../src/interfaces/libpq/libpq.a(dshcs00145.o)(.text+0x0): first 
> defined here

--
Chuck


--
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