libresolv does not provide __ns_initparse, resulting in LD undefined reference

Brian Inglis Brian.Inglis@Shaw.ca
Sun Nov 3 22:34:41 GMT 2024


Hi there,

Those are DNS lookup, with interfaces defined in <arpa/nameser{,_compat}.h>, and 
not part of the resolver library, with interfaces defined in <resolv.h>, all 
packaged in cygwin-devel, as parts of cygwin have to be able to find AD servers 
and do other lookups, as well as support getent.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


On 2024-11-03 10:35, Named T. Relay via Cygwin wrote:
> 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.


> On Tuesday, October 29th, 2024 at 11:35 PM, Named T. Relay wrote:
>> 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?
>> (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!



More information about the Cygwin mailing list