Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling on alma linux 9.2 #236

Open
CaeSpock opened this issue Oct 25, 2023 · 7 comments
Open

compiling on alma linux 9.2 #236

CaeSpock opened this issue Oct 25, 2023 · 7 comments

Comments

@CaeSpock
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

eaescob commented Nov 25, 2023

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
Copy link
Contributor

eaescob commented Dec 1, 2023

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

@eaescob
Copy link
Contributor

eaescob commented Dec 1, 2023

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

@CaeSpock
Copy link
Author

CaeSpock commented Dec 4, 2023

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

@CaeSpock
Copy link
Author

CaeSpock commented Dec 4, 2023

working perfect so far. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants