From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64360 invoked by alias); 25 Apr 2016 17:46:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 64352 invoked by uid 89); 25 Apr 2016 17:46:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Package X-HELO: mail-wm0-f47.google.com Received: from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 25 Apr 2016 17:46:38 +0000 Received: by mail-wm0-f47.google.com with SMTP id n3so139995281wmn.0 for ; Mon, 25 Apr 2016 10:46:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=hpodOzO5Ehx74caGI+vcPbK2tXb0kiIHnaHNo1AGAUU=; b=ASxiK3RIRx2ScCcu3Bshsr8DvMfHbDXxs+QW/je2jVUpyM00QgQaB2wTlAhMKORLjB 8NpULho0dqe0C9gfaClF5dS4tGEIQ48gqd3tZ1Xmk68FPcQXehlPeCR194EcnH+kL/74 6nFIl4L5KMQmZbtQJ9IrSAmwAelNIHQ03SfSPbvdgkhDAThBZi3avqyoVDrcrA1LfEzk dWcNAehfsu8CZxDWId+oHCQk37qUvPIYUN4KC5rBJGCmjAyiL6UHymJhUdjZTmIgVfTK 87hqxJWC1j1NgD/IMhO1LLWwSE8gaeWlftm88z2nMw+h2aM0eWIc2tjtuMVG1yTNviej LBFQ== X-Gm-Message-State: AOPr4FVpToN5Mqiw1aU/xRwTVRVgXkdz0c+TmYxW4hlczoPVHGSNxxh8rb0KeloqCINTBg== X-Received: by 10.28.147.8 with SMTP id v8mr12941025wmd.92.1461606395719; Mon, 25 Apr 2016 10:46:35 -0700 (PDT) Received: from [192.168.2.109] (p5B1745A9.dip0.t-ipconnect.de. [91.23.69.169]) by smtp.googlemail.com with ESMTPSA id r123sm19848379wmg.20.2016.04.25.10.46.34 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2016 10:46:34 -0700 (PDT) From: Marco Atzeri Subject: gcc x86 - problem on library search order To: "cygwin@cygwin.com" Message-ID: Date: Mon, 25 Apr 2016 19:34:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00595.txt.bz2 Visible on 32bit and not present on 64bit $ cat uuid.c #include 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 $ gcc uuid.c -luuid -L /usr/lib The problem seems "/usr/lib/w32api" searched before "/usr/lib" $ cygcheck -l w32api-runtime |grep libuuid. /usr/lib/w32api/libuuid.a $ cygcheck -l libuuid-devel |grep libuuid.dll /usr/lib/libuuid.dll.a $ cygcheck -c gcc-core Cygwin Package Information Package Version Status gcc-core 5.3.0-4 OK Marco -- 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