DALnet / bahamut

The Bahamut IRC Daemon
http://www.dal.net/?page=Bahamut
Other
57 stars 42 forks source link

compiling on alma linux 9.2 #236

Open CaeSpock opened 10 months ago

CaeSpock commented 10 months ago

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 tores_mkquery' /usr/bin/ld: res.o: in function proc_answer': /home/ircd/bahamut-2.2.2/src/res.c:870: undefined reference todn_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 commented 10 months ago

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 commented 10 months ago

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

eaescob commented 9 months ago

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 commented 9 months ago

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

eaescob commented 9 months ago

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

CaeSpock commented 9 months ago

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

CaeSpock commented 9 months ago

working perfect so far. thanks