Hi, i had problems building the ltq-dsl-app when switching from uclibc to eglibc. This patch is adding a needed include, adds a configure test to figure out where clock_gettime() is located and runs autoreconfigurer afterwards.
Please review/apply. Signed-Off-By: Frank Meerkötter <fr...@meerkoetter.org> Patch follows: --- commit 25d6dca9286dd848c11e5fc7598f8cb1ab36cf39 Author: Frank Meerkötter <fr...@meerkoetter.org> Date: Thu Nov 22 10:12:14 2012 +0100 Make ltq-dsl-app compile with an eglibc-based toolchain diff --git a/trunk/package/network/config/ltq-dsl-app/Makefile b/trunk/package/network/config/ltq-dsl-app/Makefile index 664bc5d..37a72ee 100644 --- a/trunk/package/network/config/ltq-dsl-app/Makefile +++ b/trunk/package/network/config/ltq-dsl-app/Makefile @@ -17,6 +17,8 @@ PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/ PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161 PKG_MAINTAINER:=John Crispin <blo...@openwrt.org> +PKG_FIXUP:=autoreconf + PKG_CONFIG_DEPENDS:=\ CONFIG_LTQ_DSL_ENABLE_SOAP \ CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING diff --git a/trunk/package/network/config/ltq-dsl-app/patches/010-eglibc_compile_fix.patch b/trunk/package/network/config/ltq-dsl-app/patches/010-eglibc_comp new file mode 100644 index 0000000..268f868 --- /dev/null +++ b/trunk/package/network/config/ltq-dsl-app/patches/010-eglibc_compile_fix.patch @@ -0,0 +1,23 @@ +--- a/configure.in ++++ b/configure.in +@@ -29,6 +29,8 @@ AC_C_VOLATILE + #AC_FUNC_STRTOD + #AC_CHECK_FUNCS([ftime gethostbyname gettimeofday localtime_r memset select socket strchr strerror strstr strtoull]) + ++AC_SEARCH_LIBS([clock_gettime],[rt]) ++ + # + # save the configure arguments + # +--- a/src/dsl_cpe_linux.h ++++ b/src/dsl_cpe_linux.h +@@ -45,7 +45,8 @@ + #include <arpa/inet.h> + #include <sys/socket.h> /* socket */ + #include <sys/sem.h> /* semget */ +-#include <semaphore.h> /* sem_t */ ++#include <semaphore.h> /* sem_t */ ++#include <limits.h> + + #ifdef DSL_DEBUG_TOOL_INTERFACE + #include <sys/socket.h> _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel