Summary: | [PATCH] net-voip/yate-1.2.0 fails to compile on uclibc/uclibc++ due to missing -lm linker flag and dn_skipname | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Natanael Copa <natanael.copa> |
Component: | New packages | Assignee: | Embedded Gentoo Team <embedded> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | voip+disabled |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
yate-1.2.0-libm.patch
yate-1.2.0-dn_skipname.patch yate-1.2.0.ebuild.patch |
Description
Natanael Copa
2007-11-15 10:04:58 UTC
adding -lm to LDFLAGS should solve the "undefined reference to `sin'". missing dn_skipname can be solved in 2 different ways, disabling the enumroute module or implement a dn_skipname in enumerate.cpp. Skipping enumroute should be done int eh configure.in test: --- configure.in.orig 2007-11-15 10:13:11 +0000 +++ configure.in 2007-11-15 10:18:00 +0000 @@ -190,7 +188,7 @@ AC_LANG_C AC_TRY_LINK([#include <netinet/in.h> #include <arpa/nameser.h> -#include <resolv.h>],[res_init();],[HAVE_RESOLV=yes],[HAVE_RESOLV=no]) +#include <resolv.h>],[dn_skipname();],[HAVE_RESOLV=yes],[HAVE_RESOLV=no]) AC_LANG_RESTORE AC_MSG_RESULT([$HAVE_RESOLV]) AC_SUBST(HAVE_RESOLV) keeping enumroute is easy too, just add a dn_skipname in modules/enumroute.cpp: #ifdef __UCLIBC__ static int dn_skipname(...) ... #endif I dunno what you prefer. Created attachment 136035 [details, diff]
yate-1.2.0-libm.patch
fixes libm issue.
Created attachment 136036 [details, diff]
yate-1.2.0-dn_skipname.patch
adds dn_skipname so we dont need to diable the enumroute module on uclibc.
Created attachment 136038 [details, diff]
yate-1.2.0.ebuild.patch
patch to ebuild
Almost fixed, thanks Can you check if this is working with yate-2.0.0 and provide a patch if needed ? Thanks. ucibc++ isnt supported anymore |