From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72967 invoked by alias); 15 Sep 2017 16:07:10 -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 72954 invoked by uid 89); 15 Sep 2017 16:07:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=kaz, Kaz, it.=c2, DLLs.=c2?= X-HELO: mail-io0-f174.google.com Received: from mail-io0-f174.google.com (HELO mail-io0-f174.google.com) (209.85.223.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Sep 2017 16:07:08 +0000 Received: by mail-io0-f174.google.com with SMTP id i197so9543569ioe.9 for ; Fri, 15 Sep 2017 09:07:08 -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:reply-to:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YczEg0h5DNwJn53DLNe/Hd1FKnxXFIMGy8dPC8qtiUY=; b=tkbTuP3+tYP6tdGjLVU2tdBdvP/pR+AY8M6gj6sdNeSDQWFVWPt+TLhheAO4lTJ/AW rttWVzGGMlE+iy7WT6BYTihy4UYO5wDu3wLUOPz9K5dv62CUAG7G83YcWv5jcdeJGXG+ tSwgD0WYlZ070ifWDPI94mDpGJ1xpj5P+KoUJo+3s3g+w7tzT7JyVz8i9eUpZAASSn10 r8UhRWrcr4y9mybWuMq7bEu0UGyOsE+NkfgfOcHcemMj7Lz7WD4KXBTjsFurkOk2Orqu PVzolfgmCK/e3sLKI39q5Tuuc6i9TrXEn5O9GXQGFZkOkx4WCXNl0BSNu/GJnrw9XM5H JA2A== X-Gm-Message-State: AHPjjUhGD9LuiiQdpI9zq+fh8cQEObnFTVL3cWZT8uJGytFcdzk9lWgM kG43/RWTs//9aCOl X-Google-Smtp-Source: AOwi7QBt2qAyHna93Iw7NrRmkjSXV4MXcvWiihkcM7VBgrIKmQ2VVlGI7A99pJQqpIlH9O0NX3m5hw== X-Received: by 10.107.58.138 with SMTP id h132mr8926413ioa.112.1505491626815; Fri, 15 Sep 2017 09:07:06 -0700 (PDT) Received: from [192.168.0.6] (d4-50-42-50.try.wideopenwest.com. [50.4.50.42]) by smtp.gmail.com with ESMTPSA id v65sm813914itf.38.2017.09.15.09.07.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 09:07:06 -0700 (PDT) Subject: Re: Problem with differences with DLOPEN / DLSYM compared to ubuntu (16.04) / debian (stretch). To: cygwin@cygwin.com References: From: cyg Simple Reply-To: cygwin@cygwin.com Message-ID: <94ac1558-0d01-2325-5a91-92e8b867a5bd@gmail.com> Date: Fri, 15 Sep 2017 16:07:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00156.txt.bz2 Please consider using an interleaving method of posting on this list. Top posting is considered rude. On 9/15/2017 9:51 AM, Gary Schneir wrote: > Thanks for the response but I am a little confused by it.  If Cygwin is > supposed to provide POSIX API functionality and DLOPEN / DLSYM are > supported in CYGWIN, then I shouldn't care about the underlying > complexity or restrictions of running within the Windows environment and > using DLLs.  The behavior should be the same as in other POSIX environments. > You presented your case well and I was waiting on someone familiar with the code to respond. I'm not sure that would be Kaz, he was just trying to be helpful from his experiences. I agree with your surmise that Cygwin should perform similar results as Linux in this case. > > If you are saying that I did not include some sort of > __declspec(dllexport) directive in my code so that it can find my > symbols, that is something else but you indicate that you think cygwin > hides that complexity in shared libraries. > Actually it would be binutils, regardless of Cygwin or MinGW, that is trying to hide the complexity of needing to supply the __declspec([export|import]) declarations. The logic for that is a bit confusing but if none is given then all symbols are exported. -- cyg Simple -- 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