delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/26/09:54:54

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=R++Omh
aHNNGDmHBtE/NHtudS+gGNicBweby/hEaIcLKI42ToxEVBIiNtJv8q+lZTylTPVv
LPIUM6NdHzc5ZVevIDV1tl/C5pI9Rg4lVgQoHtfrbb70gjgxhpmSI6CPlX9xg36w
/nBKrweVuyKc+BytblOC6o2ObwNNBzUaMTmn8=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=LsXfJdYl5Rf6
ZUu+/KWHbAmhet0=; b=scs8yp3iuE87ZBcbnD/3AI5quY/6+lPrdJPLTQuG+n3s
jGFaaef7mZCqC/EMnoKDeyyHpBohP6o5Kq8MmvjgHQysf8jG8TZI0Ugg713kJRgb
frUuo17/hLvt3LxBfhV1dh8ZAxPtLUH9GzevAiY/RZNnY1kLRJQwvy8iyNG1AaE=
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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:0b80592, lacking, H*f:sk:0b80592, H*i:sk:0b80592
X-HELO: mail-pa0-f68.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=zzG0Y2GtF1vZKdKlbEisANTf03ZiSwHG/VwuJucTb3A=; b=A7IKy+KKMlJM4FA5fz1JEmtQ+XL3lKibr/avdPhG5DkZ+6pIS81CKV6JshlzrPokEq RyAR/wq6mI36oD+sYnKQF2WY1D7gB6llb2FHJj8Am/jGbk4zl9deeQ611Si9OAVV3IvY MPNXRZp9B0X3VefvuyKM8MJ7u8QQudDDR+IgmgxMYPTL0ISYE9OG+l581zREBYjwgPON d3S1HM5UEkEXlJiDYFbZQu0Ctzi1aPFT5X6eAtd9yRQUyOvG8nOow2zKPKAn05pn9We1 udpjnkW3OGZtXBINps/I55cgx6G1Dz2OQPL3R8VKLBgwmidYfxva/0xtmiIYv8+Hn1f6 UBMw==
X-Gm-Message-State: AOPr4FUb+VARIn1bUKmxa+OUxF+ZS+uIJfWMvK2NAurcwRktN+KM3qt6mROD9T6eY90KuQ==
X-Received: by 10.66.164.165 with SMTP id yr5mr3718131pab.133.1461678877199; Tue, 26 Apr 2016 06:54:37 -0700 (PDT)
Message-ID: <571F7313.2000401@gmail.com>
Date: Tue, 26 Apr 2016 21:54:27 +0800
From: JonY <10walls AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:25.4) Gecko/20150524 FossaMail/25.1.5
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gcc x86 - problem on library search order
References: <da8b5c9e-0cfb-9078-7e6c-eddd7934b029 AT gmail DOT com> <571F400F DOT 3000306 AT gmail DOT com> <0b805922-5ba8-41e5-0736-90456b9902e2 AT gmail DOT com>
In-Reply-To: <0b805922-5ba8-41e5-0736-90456b9902e2@gmail.com>
X-IsSubscribed: yes

--n6NbAdVpXGRDHDdBXBQVgDwKHhgSLSA2p
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 4/26/2016 20:10, Marco Atzeri wrote:
>=20
>=20
> 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.
>=20
> may be from "COLLECT_GCC_OPTION" as "LIBRARY_PATH" has the right order
>=20
> LIBRARY_PATH=3D/usr/lib/gcc/i686-pc-cygwin/5.3.0/:/usr/lib/gcc/i686-pc-cy=
gwin/5.3.0/../../../../i686-pc-cygwin/lib/:/usr/lib/:/lib/:/usr/lib/w32api/
>=20

In -Wl,-v, looks like 64bit gcc too has -L/usr/lib/w32api, however, it
is "-L/usr/lib/../lib -L/lib/../lib
-L/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/lib
-L/usr/lib/w32api", so it comes out correct eventually. The 32bit
version is lacking that.



--n6NbAdVpXGRDHDdBXBQVgDwKHhgSLSA2p
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBAgAGBQJXH3MZAAoJEHE7X+KcFF1FkVUP+wTfZEO/PJIYnyRGy6LwOdEs
IwxO5N66d1Kh6PY/rPifSU9PR2NEoIUXnKQpvoVvJREVRS8DTHyZbLEeFymg9qve
/oSMDeG4rbl/w3cc4iJwVMjunNdIUC2mgRrB44lbievsTd2Bzy3Oqlcb5vhAlj9f
kiIG0FvlTTCMC0Q565UgbNU4aBexu81NjHFiJ6p1DItscx3SXVL3cmQ9G1+rMWyj
bz5l+6W8D7P5VzhK+71zx83XFDGlhUYd8aLQQNeZmgheMuPvrFuPoflKDCjK4Vnl
7uZ+X1/XMKVvpPd/KTWW5bjyHpvHWp0h2tuI45YVGKF3Owm/+lZ7vdD3BxvWMLQ5
nR9WH48ikG5fiZMHIT2ISGEBuDm2WaNGzr3Jgek5sq5IQz1zBuNA/obwNd7ESal8
6RxIagn7o3TIiYREgZJ691EAaXTX+XluarwSjehgwggPEB5Sx6Y6bfrJ14CWMI2J
v+q+Dj8WDMmpjU5UqT0HmqLpvwExKhnIy0/lah+me3X5Ax7+1agY58lL80c65Vfy
CijN+RwWQ7aK/yrbODieg2h75tURZfHlEHAiLwrKiLsjX86RsuYuRIIBFLJY3PcI
4JTbEJRt1K/JnWVGz/ET8CKJs/TR1RVTIyWNuy8EeuWl/OVMCpeWEL9JMUm//aEq
3aYYwk4nxNKsJW8vvBUz
=VSKX
-----END PGP SIGNATURE-----

--n6NbAdVpXGRDHDdBXBQVgDwKHhgSLSA2p--

- Raw text -


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