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:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=SYtT+q7INGfC4rRU AgnXLMRHgPgIBx6dUYXtep4L8aqK7/0UKYEJmtgSHfwlQmahVCiLpfirsnE5HSN4 BQdCG6pN/Gs+iWi9qTKX6ZE7qbn+ZM2Sy7zQIiWPfjrEvo4Q8hH3lAAPj7Plj0pC SWPW4Nkg1PlQA4uNkPijpCF+npQ= 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:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=6vbd7Nr6lhMy2CbxI09x94 OpSbM=; b=a+Wc322uanYK73O6lbr8Vbza7QCy9MFZ4Ilkq8dAjMY1nZgxHF/+XO /wF3R+Hc8uOk08EzvIB/MGpNl61H4erRMaU+gKsVkLTP4zklg+C0Hd+3m4Fz71R5 dyXgyjLm3i35lQ6xUeSlYteqVYNiZUjR4NtzMf0r8RoRGoEh6x8cY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: =?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 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) Subject: Re: Problem with differences with DLOPEN / DLSYM compared to ubuntu (16.04) / debian (stretch). To: cygwin AT cygwin DOT com References: From: cyg Simple Reply-To: cygwin AT cygwin DOT com Message-ID: <94ac1558-0d01-2325-5a91-92e8b867a5bd@gmail.com> Date: Fri, 15 Sep 2017 12:07:06 -0400 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 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