[Home]

Summary:ASTERISK-21795: failed compilation - dns.c references res_nsearch which is not available on uclibc
Reporter:Julius Schwartzenberg (z_god)Labels:
Date Opened:2013-05-20 15:13:12Date Closed:2023-03-16 10:20:22
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/Portability
Versions:SVN Frequency of
Occurrence
Related
Issues:
Environment:Alpine µClibc 0.9.33.2Attachments:
Description:Compiling Asterisk on Alpine which uses µClibc gives the following compilation error:
dns.o: In function `ast_search_dns':
/root/asterisk/asterisk-trunk/main/dns.c:272: undefined reference to `res_nsearch'
collect2: error: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2

It seems HAVE_RES_NINIT does not imply that res_nsearch is there as well.
Comments:By: Rusty Newton (rnewton) 2013-05-22 09:42:18.670-0500

Thanks for the report. Embedded Linux flavors fall under extended support and are therefore supporter by the greater community, so response times may reflect that.

Patches are always welcome https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines#AsteriskIssueGuidelines-PatchandCodesubmission

If you can't produce a patch you can always ask for help on the dev or users list. http://www.asterisk.org/community/discuss

By: Matt Jordan (mjordan) 2015-03-13 21:47:00.963-0500

I'm closing this out as "Suspended." Alpine is not an environment that the project as a whole supports.

If you're compiling Asterisk in a custom or non-standard environment, you're taking on a certain amount of responsibility. And if you have a problem compiling Asterisk in such an environment and run into a problem, providing a patch to fix the issues for that environment is the only way anyone will be able to fix these kinds of problems. The project is not able to support every environment ever created and reproduce or fix these kinds of bugs independently.

By: Fabrice Fontaine (ffontaine) 2023-03-08 12:48:35.270-0600

I sent the patch that we're using on buildroot: https://gerrit.asterisk.org/c/asterisk/+/19964

By: Friendly Automation (friendly-automation) 2023-03-16 10:20:23.690-0500

Change 19966 merged by Friendly Automation:
configure: fix detection of re-entrant resolver functions

[https://gerrit.asterisk.org/c/asterisk/+/19966|https://gerrit.asterisk.org/c/asterisk/+/19966]

By: Friendly Automation (friendly-automation) 2023-03-16 10:22:22.865-0500

Change 19965 merged by Friendly Automation:
configure: fix detection of re-entrant resolver functions

[https://gerrit.asterisk.org/c/asterisk/+/19965|https://gerrit.asterisk.org/c/asterisk/+/19965]

By: Friendly Automation (friendly-automation) 2023-03-16 10:23:32.159-0500

Change 19964 merged by Friendly Automation:
configure: fix detection of re-entrant resolver functions

[https://gerrit.asterisk.org/c/asterisk/+/19964|https://gerrit.asterisk.org/c/asterisk/+/19964]