DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49TMZbG22908448 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=LbD2BJp2 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0D013858290 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1730241335; bh=hlNATV5eUl7txqL74uT6PoiS8ld0fneSkFjnWUrQouA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=LbD2BJp2XI6QdNeoNqvQNOP7BUe1EFZ0e2Xsl6xzyvg+OGUH/Du6MHY3U6O4tHw1w UNHur6yIn/Fd54iOdDVTlgbKcQEN7up8LRQp5XMlBwdcYDxp8kLHvljLmnws9vUIAU n/oVn8Trkmmk0X/DuviBypqyafN80uBCU6fdeOUY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F70C3858C53 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F70C3858C53 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730241309; cv=none; b=STjWsA+BlqYFkfpuF2D34XHEtkQYStIs8A4wjLsne9tDFaFkvpHsljiaXqWPFJS9wk3tlxhdcpTBShALV4Ph/ka9g3mrQB/xms/yoW9/A+NPgFHQ7aUUl886v4Q+/GxtRHyI6ql6uqNsVw4G4N4IakOqfSLlxjnEzzmBJtZY9y8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730241309; c=relaxed/simple; bh=vQgrc/4WreYwEw79fJy/uUwLLGS4g3ggkTAeTfcDh2E=; h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version; b=hJfGPXR4yyBbEB6bdVcpO7Du53fDzhu9EFACsxnuHVdurm9H225jOzydUbT5vgsYpBSCNvAg56Iha0aknNWhYG0e2c3AlS8XIU5jd6PBfB2VpprfESFLM6gy7NJyA3KUe9or5vbtJKX4QFHqzkBztihiqMvqp/LtgCER92K/+J0= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Tue, 29 Oct 2024 22:35:00 +0000 To: "cygwin AT cygwin DOT com" Subject: libresolv does not provide __ns_initparse, resulting in LD undefined reference Message-ID: Feedback-ID: 19840174:user:proton X-Pm-Message-ID: 49f264fd7ae2b1b9f5ac51b3d0ccaa3e2e1f19e9 MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports 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 Sender: "Cygwin" 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