bahamut icon indicating copy to clipboard operation
bahamut copied to clipboard

compiling on alma linux 9.2

Open CaeSpock opened this issue 2 years ago • 7 comments

Got this errors in while runing make: /usr/bin/ld: res.o: in function query_name': /home/ircd/bahamut-2.2.2/src/res.c:622: undefined reference to __res_mkquery' /usr/bin/ld: res.o: in function proc_answer': /home/ircd/bahamut-2.2.2/src/res.c:870: undefined reference to __dn_expand' /usr/bin/ld: /home/ircd/bahamut-2.2.2/src/res.c:968: undefined reference to __dn_expand' /usr/bin/ld: /home/ircd/bahamut-2.2.2/src/res.c:1138: undefined reference to __dn_expand' /usr/bin/ld: /home/ircd/bahamut-2.2.2/src/res.c:1270: undefined reference to `__dn_expand' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:52: ircd] Error 1

CaeSpock avatar Oct 25 '23 19:10 CaeSpock

As oper https://forums.centos.org/viewtopic.php?t=79952 this might be related to the version of glibc, in reference to https://lwn.net/Articles/864920/ Various symbols previously defined in libresolv have been moved to libc in order to prepare for libresolv moving entirely into libc (see earlier entry for merging libraries into libc). The symbols __dn_comp, __dn_expand, __dn_skipname, __res_dnok, __res_hnok, __res_mailok, __res_mkquery, __res_nmkquery, __res_nquery, __res_nquerydomain, __res_nsearch, __res_nsend, __res_ownok, __res_query, __res_querydomain, __res_search, __res_send formerly in libresolv have been renamed and no longer have a __ prefix. They are now available in libc.

Still looking for a solution while testing alternatives posted here https://forums.fedoraforum.org/showthread.php?328828-Installing-libresolv-so&p=1860899

CaeSpock avatar Oct 25 '23 20:10 CaeSpock

In Centos 7 9 compiles without problems., no warnings, all perfect rocky linux 9, same as alma linux 9, just as a reference, of course they are from the same branch, same error and no ircd binary generated

CaeSpock avatar Oct 31 '23 18:10 CaeSpock

Sorry for the delay. I'll be looking into this. I'll privmsg you to get access to a VM where compilation fails to test.

eaescob avatar Nov 25 '23 04:11 eaescob

Can you try compiling from main? We believe #219 addressed this

eaescob avatar Dec 01 '23 22:12 eaescob

Confirmed #219 fixes the problem. Releasing 2.2.3 soon but compiling main works

eaescob avatar Dec 01 '23 22:12 eaescob

compiles fine now, gives some warnings, but it compiled the ircd, going to test now

CaeSpock avatar Dec 04 '23 12:12 CaeSpock

working perfect so far. thanks

CaeSpock avatar Dec 04 '23 13:12 CaeSpock