delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/26/08:11:27

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=DeMPk1aiXMbb3+w9
8txMxG6j0Mqx/xqkGsTUAro/TEt0RzhY/l68t8TnieIafhgAcxD59ahafho69RR+
POh0r8utblI5JYnSXy00iZ4hDHtvcTHafStnZwQvqjggFbJ4jrToP/pvo0eb7ReL
J7GdcCOLgQbNn36uYg4b4Adl2ao=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Nt0Zm19/tZy7ypCHdMx1GA
lXqoo=; b=pbmFQGA6R/wGG6S6TpLt+dtrWwLYxgJCykbxvG9MpU60Q6JqMNGb3o
oNleV/aM5JlanRr7T8zEqLg+O43zT+AJydYsCNo9Eaelvl85+7QyOBfutligd5tw
guJpLePaYmky7+Zw9bX0bOz1lCMaYja8qIVDetKNgd2HhYJiNiOVQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=jony, JonY, cyg, H*f:sk:571F400
X-HELO: mail-wm0-f44.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=SPB/GcN55M6TvuBDksExHKbFydRk33P1h3Tz9tniU3I=; b=C3pb39LwhO6uQzJ++WUcfvBshgLfnI1VH57zeKvgnBXlBq/TknbSpTDbk8OxRT6QWf ckyUAg7MTOMt2bN2BRIgB2/6k6WfhFKuj5GkWhMalyoRpd2M00Euzy3xw5phm5apCBXw ZkoVQb1t4zNZ/yCzFoqrJhobIQe+9bmnxua/80eJgYIeGZRPmp+1ZIEIqW7WB1bct537 hOfXTKO7L0GlSWXja1Ly4iHSU9kxrFbGhrkPd/wyzlXgWgNr5XsTnv5K5bVXqg3D6Vo2 6HRmdsyY8MZgzWwRWXFr4xGXVKe1XT4v/QtKOhhK4atp4AWXbbLGxWtHFo2QO2y64csM xs1A==
X-Gm-Message-State: AOPr4FWIHfbAvQgG/mkKogn4mLi/pNW2HNDrym2QeWCCWnqNeGMc0rxgT2a845c1+Dbjew==
X-Received: by 10.194.166.228 with SMTP id zj4mr2863270wjb.83.1461672667342; Tue, 26 Apr 2016 05:11:07 -0700 (PDT)
Subject: Re: gcc x86 - problem on library search order
To: cygwin AT cygwin DOT com
References: <da8b5c9e-0cfb-9078-7e6c-eddd7934b029 AT gmail DOT com> <571F400F DOT 3000306 AT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <0b805922-5ba8-41e5-0736-90456b9902e2@gmail.com>
Date: Tue, 26 Apr 2016 14:10:57 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <571F400F.3000306@gmail.com>
X-IsSubscribed: yes


On 26/04/2016 12:16, JonY wrote:
> On 4/26/2016 01:46, Marco Atzeri wrote:
>> Visible on 32bit and not present on 64bit
>>
>> $ cat uuid.c
>> #include <uuid/uuid.h>
>>
>> int main ()
>> {
>>     uuid_t out;
>>     uuid_generate_random(out);
>>     return 0;
>> }
>>
>>
>> $ gcc uuid.c -luuid
>> /tmp/ccLlmFMf.o:uuid.c:(.text+0x16): undefined reference to
>> `uuid_generate_random'
>> collect2: error: ld returned 1 exit status
>>
>
> Pretty sure I removed the patch that does that, not sure where it gets
> in from. It isn't in the specs file either.
>
> -Wl,-v does say it is from gcc.

may be from "COLLECT_GCC_OPTION" as "LIBRARY_PATH" has the right order

LIBRARY_PATH=/usr/lib/gcc/i686-pc-cygwin/5.3.0/:/usr/lib/gcc/i686-pc-cygwin/5.3.0/../../../../i686-pc-cygwin/lib/:/usr/lib/:/lib/:/usr/lib/w32api/

COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=i686'
  /usr/lib/gcc/i686-pc-cygwin/5.3.0/collect2.exe -plugin 
/usr/lib/gcc/i686-pc-cygwin/5.3.0/cyglto_plugin.dll 
-plugin-opt=/usr/lib/gcc/i686-pc-cygwin/5.3.0/lto-wrapper.exe 
-plugin-opt=-fresolution=/tmp/ccqHx4mQ.res 
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc 
-plugin-opt=-pass-through=-lcygwin -plugin-opt=-pass-through=-ladvapi32 
-plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 
-plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lgcc_s 
-plugin-opt=-pass-through=-lgcc --build-id --wrap _Znwj --wrap _Znaj 
--wrap _ZdlPv --wrap _ZdaPv --wrap _ZnwjRKSt9nothrow_t --wrap 
_ZnajRKSt9nothrow_t --wrap _ZdlPvRKSt9nothrow_t --wrap 
_ZdaPvRKSt9nothrow_t -Bdynamic --dll-search-prefix=cyg 
--large-address-aware --tsaware /usr/lib/crt0.o 
/usr/lib/gcc/i686-pc-cygwin/5.3.0/crtbegin.o 
-L/usr/lib/gcc/i686-pc-cygwin/5.3.0 
-L/usr/lib/gcc/i686-pc-cygwin/5.3.0/../../../../i686-pc-cygwin/lib 
-L/usr/lib/w32api /tmp/ccHGOCXX.o -luuid -lgcc_s -lgcc -lcygwin 
-ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc 
/usr/lib/default-manifest.o /usr/lib/gcc/i686-pc-cygwin/5.3.0/crtend.o
/tmp/ccHGOCXX.o:uuid.c:(.text+0x16): undefined reference to 
`uuid_generate_random'
collect2: error: ld returned 1 exit status

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

- Raw text -


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