From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96350 invoked by alias); 8 Sep 2017 19:25:15 -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 96341 invoked by uid 89); 8 Sep 2017 19:25:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-wm0-f48.google.com Received: from mail-wm0-f48.google.com (HELO mail-wm0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Sep 2017 19:25:12 +0000 Received: by mail-wm0-f48.google.com with SMTP id f145so8183900wme.0 for ; Fri, 08 Sep 2017 12:25:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NEo8T3WsemwDDhT/A7H3+2+2jt9ygWNGaIYii0CszqE=; b=PgcYitVtRrsObhQqUOBVHmEfv/q/ou0cf9eliHJ2eLpNkx9cHMi/YSUt6s2Tg+EgEj 495sSGJQRUFZkxvckDzJiUfBx3V1KB0sEsqHHYGYx4DtTvyD0/6Qem6Pbr3oQZ80JORE uYZzjH9qWSqKp5Tm18o0QK3VhjS+teAt6uvxD2quYfgCMU5yc12kf5n7JuHW2yS1RFhT 3LgpTVaAwGuKuWmJOeMlNUEvRHG44KwCsfj3nD3Gbh1puMztiL/N34J0BONK/zxQkJcy /lQzJ98T1h2glFw1mWhJavGNxK9CQob63Abgmk7TZ7teigV41v46yNLBdZD9fT0iTxOP NgrA== X-Gm-Message-State: AHPjjUgcxJJoq5BtKHjrwP4Eip6S9osbXR9FuarCcPJyXAyOP43KuvZF JuI2OpjzMpoDzftWY8wGmvqzAw== X-Google-Smtp-Source: AOwi7QBh0Cijq+ric/6d9k000ocdfcu0MI1qrjZAUoSeMFbUGnzAI8IQZShTfcMtt3sCYrNBKw5GZA== X-Received: by 10.28.142.81 with SMTP id q78mr2337960wmd.136.1504898710485; Fri, 08 Sep 2017 12:25:10 -0700 (PDT) Received: from ?IPv6:2003:cc:9bd4:1601:ac89:19cf:c310:be34? (p200300CC9BD41601AC8919CFC310BE34.dip0.t-ipconnect.de. [2003:cc:9bd4:1601:ac89:19cf:c310:be34]) by smtp.googlemail.com with ESMTPSA id j4sm1721961wrg.96.2017.09.08.12.25.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Sep 2017 12:25:09 -0700 (PDT) Subject: Re: i686-w64-mingw32-gcc -fstack-protector-strong To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <80ff03da-8e78-f52a-00ad-cf601bbf4e49@gmail.com> Date: Fri, 08 Sep 2017 19:25:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00097.txt.bz2 On 08/09/2017 20:53, Lee wrote: > On 9/8/17, Marco Atzeri wrote: >> On 08/09/2017 16:14, Lee wrote: >>> I'm hoping that I'm just missing a library, but which one? Even >>> better, how to tell which one? >>> >>> $ i686-w64-mingw32-gcc -o div.exe div.c >>> $ ./div >>> works >>> >>> $ i686-w64-mingw32-gcc -fstack-protector-strong -o div.exe div.c >>> $ ./div >>> C:/cygwin/home/Lee/t/div.exe: error while loading shared libraries: ?: >>> cannot open shared object file: No such file or directory >>> >>> $ ldd div.exe >>> ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll >>> (0x7ffef5c50000) >>> ??? => ??? (0x778f0000) >>> wow64.dll => /cygdrive/c/WINDOWS/System32/wow64.dll (0x50e50000) >>> wow64win.dll => /cygdrive/c/WINDOWS/System32/wow64win.dll >>> (0x50dd0000) >>> >> >> try >> cygcheck ./div.exe > > nothing useful for a non-cygwin program? > $ cygcheck ./div.exe > C:\cygwin\home\Lee\t\div.exe cygcheck works also for not cygwin program ( cygcheck --help for details) cd /cygdrive/c/windows/system32 $ cygcheck ./net.exe C:\windows\system32\net.exe C:\windows\system32\ADVAPI32.dll C:\windows\system32\msvcrt.dll C:\windows\system32\KERNELBASE.dll C:\windows\system32\ntdll.dll [long cut] C:\windows\system32\samcli.dll C:\windows\system32\srvcli.dll C:\windows\system32\wkscli.dll C:\windows\system32\MPR.dll C:\windows\system32\IPHLPAPI.DLL C:\windows\system32\NSI.dll C:\windows\system32\WINNSI.DLL You can also use $ objdump -x ./net.exe |grep -i "dll name" DLL Name: ADVAPI32.dll DLL Name: KERNEL32.dll DLL Name: msvcrt.dll DLL Name: ntdll.dll DLL Name: netutils.dll DLL Name: browcli.dll DLL Name: samcli.dll DLL Name: srvcli.dll DLL Name: wkscli.dll DLL Name: MPR.dll DLL Name: IPHLPAPI.DLL -- 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