delorie.com/archives/browse.cgi | search |
DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 4A4AetsB1357284 |
Authentication-Results: | delorie.com; |
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ILT8Iaat | |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 480743858C35 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1730716853; | |
bh=/EF+gFqWZ0FJRwvH967g4gvk7m/E9w9TN4MhaG15dps=; | |
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: | |
From; | |
b=ILT8IaatvqWe7+s2wPj49+7NVUHSuG5u0O7xQLQPqOZOWbWGYPkIh6JbOWyFZkpP/ | |
ECXtWE/Y5RpInfu8lDOySgIy8HI6B9qZLmm/NfNO/55I1riZ/TH8KSu0GaHuwWQ7ZX | |
A8v58ecT7IB3Oe9j6DQfKMIwDcoFE5sryrIiD0uU= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org DC9E93858C35 |
Date: | Mon, 4 Nov 2024 11:39:52 +0100 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: libresolv does not provide __ns_initparse, resulting in LD |
undefined reference | |
Message-ID: | <ZyikeMntQpHkzVJC@calimero.vinschen.de> |
Mail-Followup-To: | cygwin AT cygwin DOT com, |
"Named T. Relay" <namedrelay AT protonmail DOT com> | |
References: | <PlX_cAbYe5fuMaoCku_iTm_pLmHRJIi8sUVUCeT7rzYRqgv4iyXKIadH2OP5fYIa2nw2i9jmYRPqedte2q2yP4Z7cW90pI2tttEQLS4bOj8=@protonmail.com> |
<Zyig6SWk6cSdGGLv AT calimero DOT vinschen DOT de> | |
MIME-Version: | 1.0 |
In-Reply-To: | <Zyig6SWk6cSdGGLv@calimero.vinschen.de> |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.30 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
Cc: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com>, |
"Named T. Relay" <namedrelay AT protonmail DOT com> | |
Errors-To: | cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
On Nov 4 11:24, Corinna Vinschen via Cygwin wrote: > On Oct 29 22:35, Named T. Relay via Cygwin wrote: > > Hello, > > > > Today i installed cygwin to compile a windows .exe out of a Linux source program. > > While G++ on Linux compiles it correctly into a binary, on cygwin i got an issue during linking: > > > > $ g++ -O2 -Wall -Isrc -o bin/sealtool <SNIP> src/sign-verify.cpp -lcrypto -lssl -lcurl -lresolv > > /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccA3GExv.o:sign-verify.cp:(.text+0x437): undefined reference to `__ns_initparse' > > /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccA3GExv.o:sign-verify.cp:(.text+0x49a): undefined reference to `__ns_parserr' > > collect2: error: ld returned 1 exit status > > > > >From looking at the nm results, the provided libresolv library does not include these symbols. > > (But my linux distro's version of libresolv DOES have them!) > > > > Does anyone know why these symbols are missing? > > They have never been implemented in Cygwin itself. Cygwin only has a > piece of source called minires, a simple resolver lib depending on > the underlying Windows resolver, providing the res_FOO symbols from > resolv.h. The nameserver symbols from nameser.h are not part of the > Cywin core lib. Maybe you have more luck with the (unmaintained) > bind libs? But then again, if you use the bind libs, you have to maintain your own /etc/resolv.conf, since the bind libs don't call the Cygwin resolver and thus have no access to the OS resolver. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |