DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4A3Ha3Ts1058907 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=viGWv2GZ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB8823858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1730655361; bh=EA+YyiAyImgR2h6B3fSbfEQ/xnCS6jhdXi+3MW5prks=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=viGWv2GZIVUlfJFib5++/VluGcDKlgbQHkwSaa3rd3JS7BCp6U/XvGKeo/UHdo21A AQWQeoLnZNYaRy/BoPt0EKFRjk4JvoAGlOXqVRO8co8A4BvIUeI7v9N/gHEDPI0h9U ldgxGMKfHBIWEf6jFZenSY182c3dEowikAIIFWwE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3AC483858D29 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3AC483858D29 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730655309; cv=none; b=LyFVMptokJ4O34HPy6GA4ngha6N9uD/70juLZaQUoRBaIKCZqmxAbD1qigpyfu9jAZRcLAvUuN05pdkslFthlOYVEOXXcVrtlqm0x270MRZJcVnEz0xFW4ILEk58LImOH2aS7OdVnrHRtfbQKqaOLCuCRK/K0QLZyWt57MfhfzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730655309; c=relaxed/simple; bh=EWgOlomMNW6y1gQCJ5v+8N+JoLFLSgE9tnF//nhlf6E=; h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version; b=WJusyAXGVqqpTiXHFB2b5wz5Zq8rpHBM9OpDQ2W/iovTtnl6ONDJnZ4K1S2f4v1kF1sJtX4OD0ytGtmXFae8izkXsNgPer/o7Mx0kxRbEbkosbU0uxVf6xj37eI+Bpnv3LJrdjpTWOs9X7j6Q+P6z4Nmfc1mtHUU/D0/sa5nyMk= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Sun, 03 Nov 2024 17:35:02 +0000 To: "cygwin AT cygwin DOT com" Subject: Re: libresolv does not provide __ns_initparse, resulting in LD undefined reference Message-ID: In-Reply-To: References: Feedback-ID: 19840174:user:proton X-Pm-Message-ID: e8095b1f44133a080617a19a6a139adb08e16916 MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "Named T. Relay via Cygwin" Reply-To: "Named T. Relay" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Hello again, I've yet to receive any response to my question. Did i use the wrong mailing list, or is this mailing list perhaps no longer in use? This issue is still blocking my project, so i would prefer *any* answer over none at this point. Thanks in advance, Named Relay On Tuesday, October 29th, 2024 at 11:35 PM, Named T. Relay 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 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? > (and more importantly, how do i get them?) > The internet didn't yield me any answers. > > libresolv.a is included with cygwin-devel-3.5.4-1, so i can't really check or change it's version. (md5sum is 5fa4735707cec921f81feb2c86c5b87a) > The source file i try to compile can be found at https://github.com/hackerfactor/SEAL-C/blob/main/src/sign-verify.cpp , project has other issues which i already had resolv. ;) > > At the very least, thanks for reading! > > Have a nice day, > Named Relay -- 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