From 7c520cd3ad42f5d94a9888bb9b3db7c79b6fd94f Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Tue, 2 Jun 2009 22:09:53 +0200
Subject: fix regressions for allconfig alix1c glibc target

---
 package/Depends.mk                                 |   6 +-
 package/bind/Makefile                              |  12 +-
 package/cbtt/patches/patch-base64_cpp              |  20 +
 package/ctorrent/patches/patch-bencode_cpp         |  16 +
 package/ctorrent/patches/patch-bencode_h           |  11 +
 package/cups/patches/patch-scheduler_auth_c        |  11 +
 package/cxxtools/patches/patch-src_hdstream_cpp    |  11 +
 package/dbus/Makefile                              |   6 +-
 package/digitemp/Makefile                          |   7 +-
 package/digitemp/patches/001-Makefile.patch        |  29 -
 package/digitemp/patches/patch-Makefile            |  14 +
 package/digitemp/patches/patch-Makefile.orig       |  14 +
 package/gcc/Makefile                               |   4 +
 package/glibc/Makefile                             |   2 +-
 package/httping/patches/patch-str_c                |  16 +
 package/httping/patches/patch-str_h                |  12 +
 package/knock/patches/patch-src_knockd_c           |  12 +-
 package/linux-atm/patches/patch-src_led_main_c     |  11 +
 package/mini_httpd/patches/patch-htpasswd_c        |  21 +
 package/mrd6/patches/patch-src_bgp_bgp_cpp         |  11 +
 package/mrd6/patches/patch-src_mrd_cpp             |  11 +
 package/netperf/patches/patch-src_netlib_c         |  17 +
 package/netperf/patches/patch-src_netlib_c.orig    |  11 +
 package/nut/Config.in                              |  41 +-
 package/nut/Makefile                               |  16 +-
 package/procmail/patches/patch-src_fields_c        |  23 +
 package/procmail/patches/patch-src_formail_c       |  12 +
 package/procmail/patches/patch-src_formisc_c       |  12 +
 package/procmail/patches/patch-src_formisc_h       |   9 +
 .../reaim/patches/501-cross_compile-install.patch  |   6 +-
 package/reaim/patches/patch-reaim_c                |  11 +
 package/tmsnc/patches/patch-Makefile               | 149 ++++
 package/tmsnc/patches/patch-config_log             | 756 +++++++++++++++++++++
 package/tmsnc/patches/patch-config_status          | 223 ++++++
 package/tmsnc/patches/patch-doc_Makefile           | 149 ++++
 package/tmsnc/patches/patch-src_Makefile           | 219 ++++++
 package/tmsnc/patches/patch-src_core_h             |  12 +
 package/tmsnc/patches/patch-src_core_misc_c        |  12 +
 package/tmsnc/patches/patch-src_core_net_c         |  48 ++
 package/tmsnc/patches/patch-src_misc_c             |  12 +
 package/valgrind/patches/patch-configure           |  49 ++
 package/valgrind/patches/patch-configure.orig      |  21 +
 42 files changed, 1970 insertions(+), 95 deletions(-)
 create mode 100644 package/cbtt/patches/patch-base64_cpp
 create mode 100644 package/ctorrent/patches/patch-bencode_cpp
 create mode 100644 package/ctorrent/patches/patch-bencode_h
 create mode 100644 package/cups/patches/patch-scheduler_auth_c
 create mode 100644 package/cxxtools/patches/patch-src_hdstream_cpp
 delete mode 100644 package/digitemp/patches/001-Makefile.patch
 create mode 100644 package/digitemp/patches/patch-Makefile
 create mode 100644 package/digitemp/patches/patch-Makefile.orig
 create mode 100644 package/httping/patches/patch-str_c
 create mode 100644 package/httping/patches/patch-str_h
 create mode 100644 package/linux-atm/patches/patch-src_led_main_c
 create mode 100644 package/mini_httpd/patches/patch-htpasswd_c
 create mode 100644 package/mrd6/patches/patch-src_bgp_bgp_cpp
 create mode 100644 package/mrd6/patches/patch-src_mrd_cpp
 create mode 100644 package/netperf/patches/patch-src_netlib_c
 create mode 100644 package/netperf/patches/patch-src_netlib_c.orig
 create mode 100644 package/procmail/patches/patch-src_fields_c
 create mode 100644 package/procmail/patches/patch-src_formail_c
 create mode 100644 package/procmail/patches/patch-src_formisc_c
 create mode 100644 package/procmail/patches/patch-src_formisc_h
 create mode 100644 package/reaim/patches/patch-reaim_c
 create mode 100644 package/tmsnc/patches/patch-Makefile
 create mode 100644 package/tmsnc/patches/patch-config_log
 create mode 100644 package/tmsnc/patches/patch-config_status
 create mode 100644 package/tmsnc/patches/patch-doc_Makefile
 create mode 100644 package/tmsnc/patches/patch-src_Makefile
 create mode 100644 package/tmsnc/patches/patch-src_core_h
 create mode 100644 package/tmsnc/patches/patch-src_core_misc_c
 create mode 100644 package/tmsnc/patches/patch-src_core_net_c
 create mode 100644 package/tmsnc/patches/patch-src_misc_c
 create mode 100644 package/valgrind/patches/patch-configure
 create mode 100644 package/valgrind/patches/patch-configure.orig

(limited to 'package')

diff --git a/package/Depends.mk b/package/Depends.mk
index bb5191b78..5b50f0c2a 100644
--- a/package/Depends.mk
+++ b/package/Depends.mk
@@ -37,7 +37,7 @@ davfs2-compile: libiconv-compile neon-compile
 dbus-compile: expat-compile
 deco-compile: ncurses-compile
 dhcpv6-compile: libnl-compile ncurses-compile
-digitemp-compile: libusb-compile
+digitemp-compile: libusb-compile libusb-compat-compile
 dsniff-compile: libnids-compile openssl-compile gdbm-compile
 elinks-compile: openssl-compile
 esound-compile: libaudiofile-compile
@@ -96,13 +96,14 @@ libnids-compile: libnet-compile libpcap-compile
 libp11-compile: openssl-compile libtool-compile
 libpng-compile: zlib-compile
 libshout-compile: libvorbis-compile
-libusb-compile: libusb-compat-compile
+libusb-compat-compile: libusb-compile
 libtorrent-compile: openssl-compile libsigc++-compile
 libvorbis-compile: libogg-compile
 libfontenc-compile: xproto-compile zlib-compile
 libICE-compile: xtrans-compile
 libSM-compile: libICE-compile
 libXt-compile: libSM-compile
+libXv-compile: libX11-compile videoproto-compile
 libXmu-compile: libXt-compile
 libXext-compile: libX11-compile
 libXaw-compile: libXext-compile libXmu-compile libXpm-compile
@@ -229,6 +230,7 @@ endif
 wx200d-compile: postgresql-compile
 xfsprogs-compile: e2fsprogs-compile
 libXxf86dga-compile: xf86dgaproto-compile libXext-compile libXaw-compile
+xkeyboard-config-compile: xkbcomp-compile
 xf86-video-geode-compile: xorg-server-compile
 xf86dga-compile: libXxf86dga-compile 
 xorg-server-compile: libX11-compile randrproto-compile renderproto-compile fixesproto-compile \
diff --git a/package/bind/Makefile b/package/bind/Makefile
index 748328cf4..b88119be4 100644
--- a/package/bind/Makefile
+++ b/package/bind/Makefile
@@ -80,11 +80,11 @@ post-install:
 	${INSTALL_BIN} ${WRKINST}/usr/bin/dig ${IDIR_BIND_DIG}/usr/bin/
 	# bind lib
 	${INSTALL_DIR} ${IDIR_LIBBIND}/usr/lib
-	${INSTALL_BIN} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib/
-	${INSTALL_BIN} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib/
-	${INSTALL_BIN} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib/
-	${INSTALL_BIN} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib/
-	${INSTALL_BIN} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib/
-	${INSTALL_BIN} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib/
+	${CP} ${WRKINST}/usr/lib/libbind9.so.* ${IDIR_LIBBIND}/usr/lib/
+	${CP} ${WRKINST}/usr/lib/libdns.so.* ${IDIR_LIBBIND}/usr/lib/
+	${CP} ${WRKINST}/usr/lib/libisccc.so.* ${IDIR_LIBBIND}/usr/lib/
+	${CP} ${WRKINST}/usr/lib/libisccfg.so.* ${IDIR_LIBBIND}/usr/lib/
+	${CP} ${WRKINST}/usr/lib/libisc.so.* ${IDIR_LIBBIND}/usr/lib/
+	${CP} ${WRKINST}/usr/lib/liblwres.so.* ${IDIR_LIBBIND}/usr/lib/
 
 include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/cbtt/patches/patch-base64_cpp b/package/cbtt/patches/patch-base64_cpp
new file mode 100644
index 000000000..d69e6f997
--- /dev/null
+++ b/package/cbtt/patches/patch-base64_cpp
@@ -0,0 +1,20 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cbtt80-20060211-src.orig/base64.cpp	2006-02-07 18:44:58.000000000 +0100
++++ cbtt80-20060211-src/base64.cpp	2009-06-01 19:00:07.000000000 +0200
+@@ -112,7 +112,7 @@ uchar   pBase64[]   =   {               
+ /* Returns:     bool    - True (!0) if the operation was successful.         */
+ /*                        False (0) if the operation was unsuccessful.       */
+ /*---------------------------------------------------------------------------*/
+-char *b64decode(const char *s)
++char *b64decode(char *s)
+ {
+     int     l = strlen(s);                  // Get length of Base64 string.
+     char   *b;                              // Decoding buffer pointers.
+@@ -121,7 +121,6 @@ char *b64decode(const char *s)
+     int     y = 0;
+ 
+     static                                  // Collating sequence...
+-    const                                   // ...independant "===".
+     char    pPad[]  =   {0x3d, 0x3d, 0x3d, 0x00};
+ 
+     if  (l % 4)                             // If it's not modulo 4, then it...
diff --git a/package/ctorrent/patches/patch-bencode_cpp b/package/ctorrent/patches/patch-bencode_cpp
new file mode 100644
index 000000000..9f2a4381e
--- /dev/null
+++ b/package/ctorrent/patches/patch-bencode_cpp
@@ -0,0 +1,16 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ctorrent-dnh2.orig/bencode.cpp	2006-01-02 03:38:01.000000000 +0100
++++ ctorrent-dnh2/bencode.cpp	2009-06-01 19:10:05.000000000 +0200
+@@ -213,10 +213,10 @@ size_t bencode_end_dict_list(FILE *fp)
+   return (EOF == fputc('e',fp)) ? 0 : 1;
+ }
+ 
+-size_t bencode_path2list(const char *pathname, FILE *fp)
++size_t bencode_path2list(char *pathname, FILE *fp)
+ {
+   char *pn;
+-  const char *p = pathname;
++  char *p = pathname;
+   
+   if( bencode_begin_list(fp) != 1 ) return 0;
+   
diff --git a/package/ctorrent/patches/patch-bencode_h b/package/ctorrent/patches/patch-bencode_h
new file mode 100644
index 000000000..594fa668a
--- /dev/null
+++ b/package/ctorrent/patches/patch-bencode_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ctorrent-dnh2.orig/bencode.h	2005-08-27 05:43:00.000000000 +0200
++++ ctorrent-dnh2/bencode.h	2009-06-01 19:11:29.000000000 +0200
+@@ -31,6 +31,6 @@ size_t bencode_int(const int integer, FI
+ size_t bencode_begin_dict(FILE *fp);
+ size_t bencode_begin_list(FILE *fp);
+ size_t bencode_end_dict_list(FILE *fp);
+-size_t bencode_path2list(const char *pathname, FILE *fp);
++size_t bencode_path2list(char *pathname, FILE *fp);
+ 
+ #endif
diff --git a/package/cups/patches/patch-scheduler_auth_c b/package/cups/patches/patch-scheduler_auth_c
new file mode 100644
index 000000000..c1f3a3e94
--- /dev/null
+++ b/package/cups/patches/patch-scheduler_auth_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cups-1.3.10.orig/scheduler/auth.c	2009-02-07 06:06:11.000000000 +0100
++++ cups-1.3.10/scheduler/auth.c	2009-06-01 19:17:20.000000000 +0200
+@@ -54,6 +54,7 @@
+  * Include necessary headers...
+  */
+ 
++#define _GNU_SOURCE
+ #include "cupsd.h"
+ #include <grp.h>
+ #ifdef HAVE_SHADOW_H
diff --git a/package/cxxtools/patches/patch-src_hdstream_cpp b/package/cxxtools/patches/patch-src_hdstream_cpp
new file mode 100644
index 000000000..796b9cdf1
--- /dev/null
+++ b/package/cxxtools/patches/patch-src_hdstream_cpp
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cxxtools-1.4.8.orig/src/hdstream.cpp	2008-05-04 17:55:37.000000000 +0200
++++ cxxtools-1.4.8/src/hdstream.cpp	2009-06-01 19:40:12.000000000 +0200
+@@ -20,6 +20,7 @@
+  */
+ 
+ #include "cxxtools/hdstream.h"
++#include <cstdio>
+ #include <iomanip>
+ #include <cctype>
+ 
diff --git a/package/dbus/Makefile b/package/dbus/Makefile
index b240bc043..456c283d6 100644
--- a/package/dbus/Makefile
+++ b/package/dbus/Makefile
@@ -6,9 +6,9 @@
 include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		dbus
-PKG_VERSION:=		1.0.3
+PKG_VERSION:=		1.2.14
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		ce328423db5743fe9006d39113b5324d
+PKG_MD5SUM:=		2c267ccd45d0b18db8c9edacad63ec98
 PKG_DESCR:=		DBUS library
 PKG_SECTION:=		net
 PKG_DEPENDS:=		libexpat
@@ -17,7 +17,7 @@ PKG_SITES:=		http://dbus.freedesktop.org/releases/dbus/
 
 include ${TOPDIR}/mk/package.mk
 
-$(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,DBUS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 CONFIGURE_STYLE:=	gnu
 CONFIGURE_ARGS+=	--disable-tests \
diff --git a/package/digitemp/Makefile b/package/digitemp/Makefile
index ea99684be..8df9304e8 100644
--- a/package/digitemp/Makefile
+++ b/package/digitemp/Makefile
@@ -6,11 +6,11 @@
 include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		digitemp
-PKG_VERSION:=		3.3.2
+PKG_VERSION:=		3.6.0
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		0b6cfb36d198767836de54d9fb11bbdb
+PKG_MD5SUM:=		9be2e48db37920f21925ae6e88f83b84
 PKG_DESCR:=		simple to use program for reading values from 1-wire devices
-PKG_SECTION:=		app
+PKG_SECTION:=		misc
 PKG_DEPENDS:=		libusb
 PKG_URL:=		http://www.digitemp.com/software/linux
 PKG_SITES:=		http://www.digitemp.com/software/linux/
@@ -19,6 +19,7 @@ include ${TOPDIR}/mk/package.mk
 
 $(eval $(call PKG_template,DIGITEMP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
+TCFLAGS+=		-I./src -I./userial
 ALL_TARGET=		ds2490
 BUILD_STYLE=		auto
 
diff --git a/package/digitemp/patches/001-Makefile.patch b/package/digitemp/patches/001-Makefile.patch
deleted file mode 100644
index a08164b86..000000000
--- a/package/digitemp/patches/001-Makefile.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- digitemp-3.3.2.orig/Makefile	2004-02-04 15:17:10.000000000 +0100
-+++ digitemp-3.3.2/Makefile	2006-08-16 20:17:27.000000000 +0200
-@@ -15,8 +15,6 @@
- 
- VERSION = 3.3.2
- 
--
--CC	= gcc
- CFLAGS	= -I./src -I./userial -O2 # -g -Wall
- LIBS	= -lm
- 
-@@ -57,7 +55,7 @@
-   CFLAGS += -DLINUX
- 
-   # Set LOCK to yes for serial port locking support
--  LOCK = yes
-+  #LOCK = yes
- 
- endif
- 
-@@ -123,7 +121,7 @@
- 		$(CC) $(OBJS) $(ONEWIREOBJS) $(DS9097UOBJS) -o digitemp_DS9097U $(LIBS)
- 
- ds2490:		$(OBJS) $(HDRS) $(ONEWIREOBJS) $(ONEWIREHDRS) $(DS2490OBJS)
--		$(CC) $(OBJS) $(ONEWIREOBJS) $(DS2490OBJS) -o digitemp_DS2490 $(LIBS)
-+		$(CC) $(LDFLAGS) $(OBJS) $(ONEWIREOBJS) $(DS2490OBJS) -o digitemp_DS2490 $(LIBS)
- 
- 
- # Clean up the object files and the sub-directory for distributions
diff --git a/package/digitemp/patches/patch-Makefile b/package/digitemp/patches/patch-Makefile
new file mode 100644
index 000000000..10ac0c97f
--- /dev/null
+++ b/package/digitemp/patches/patch-Makefile
@@ -0,0 +1,14 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- digitemp-3.6.0.orig/Makefile	2008-08-28 23:37:00.000000000 +0200
++++ digitemp-3.6.0/Makefile	2009-06-01 20:04:20.000000000 +0200
+@@ -11,8 +11,8 @@
+ 
+ VERSION = 3.6.0
+ 
+-CC	= gcc
+-CFLAGS	= -I./src -I./userial -O2 -Wall # -g
++CC	?= gcc
++CFLAGS	?= -I./src -I./userial 
+ 
+ OBJS		=	src/digitemp.o src/device_name.o src/ds2438.o
+ HDRS		= 	src/digitemp.h src/device_name.h
diff --git a/package/digitemp/patches/patch-Makefile.orig b/package/digitemp/patches/patch-Makefile.orig
new file mode 100644
index 000000000..b42427f23
--- /dev/null
+++ b/package/digitemp/patches/patch-Makefile.orig
@@ -0,0 +1,14 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- digitemp-3.6.0.orig/Makefile	2008-08-28 23:37:00.000000000 +0200
++++ digitemp-3.6.0/Makefile	2009-06-01 20:03:24.000000000 +0200
+@@ -11,8 +11,8 @@
+ 
+ VERSION = 3.6.0
+ 
+-CC	= gcc
+-CFLAGS	= -I./src -I./userial -O2 -Wall # -g
++CC	?= gcc
++CFLAGS	= -I./src -I./userial 
+ 
+ OBJS		=	src/digitemp.o src/device_name.o src/ds2438.o
+ HDRS		= 	src/digitemp.h src/device_name.h
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 3c9bc296c..14328595e 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -43,7 +43,11 @@ post-install:
 	${INSTALL_BIN} ${WRKINST}/usr/bin/gcc ${IDIR_GCC}/usr/bin/
 	${INSTALL_BIN} ${WRKINST}/usr/bin/cpp ${IDIR_GCC}/usr/bin/
 	${CP} ${WRKINST}/usr/lib/gcc/* ${IDIR_GCC}/usr/lib/gcc/
+ifeq ($(ADK_TARGET_LIB_GLIBC),y)
+	${CP} ${STAGING_DIR}/usr/lib/crt* ${IDIR_GCC}/usr/lib
+else
 	${CP} ${STAGING_DIR}/lib/crt* ${IDIR_GCC}/usr/lib
+endif
 	rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/include-fixed
 	rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/install-tools
 
diff --git a/package/glibc/Makefile b/package/glibc/Makefile
index 569bf7d4a..1cb8c5a50 100644
--- a/package/glibc/Makefile
+++ b/package/glibc/Makefile
@@ -26,7 +26,7 @@ ifeq ($(ADK_SSP),y)
 endif
 	$(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_GLIBC)/lib/
 	$(CP) $(STAGING_DIR)/lib/ld-*.so* $(IDIR_GLIBC)/lib/
-	-for file in libc libcrypt libdl libm libnsl libresolv librt libutil libnss_compat libnss_dns libnss_files; do \
+	-for file in libc libcrypt libdl libm libresolv librt libutil libnss_compat libnss_dns libnss_files; do \
 		$(CP) $(STAGING_DIR)/lib/$$file.so.* $(IDIR_GLIBC)/lib/; \
 		$(CP) $(STAGING_DIR)/lib/$$file-$(PKG_VERSION).so $(IDIR_GLIBC)/lib/; \
 	done
diff --git a/package/httping/patches/patch-str_c b/package/httping/patches/patch-str_c
new file mode 100644
index 000000000..8778ef40b
--- /dev/null
+++ b/package/httping/patches/patch-str_c
@@ -0,0 +1,16 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- httping-1.3.0.orig/str.c	2009-02-18 16:32:43.000000000 +0100
++++ httping-1.3.0/str.c	2009-06-01 21:31:19.000000000 +0200
+@@ -18,6 +18,7 @@
+ #include "mem.h"
+ #include "utils.h"
+ 
++/*
+ #ifndef strndup
+ char *strndup(char *in, int size)
+ {
+@@ -29,3 +30,4 @@ char *strndup(char *in, int size)
+ 	return out;
+ }
+ #endif
++*/
diff --git a/package/httping/patches/patch-str_h b/package/httping/patches/patch-str_h
new file mode 100644
index 000000000..c7b81ed65
--- /dev/null
+++ b/package/httping/patches/patch-str_h
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- httping-1.3.0.orig/str.h	2009-02-18 16:32:43.000000000 +0100
++++ httping-1.3.0/str.h	2009-06-01 21:30:39.000000000 +0200
+@@ -15,6 +15,8 @@
+ 
+ #include <string.h>
+ 
++/*
+ #ifndef strndup
+ char *strndup(char *in, int size);
+ #endif
++*/
diff --git a/package/knock/patches/patch-src_knockd_c b/package/knock/patches/patch-src_knockd_c
index d9f399bd6..7d8512c96 100644
--- a/package/knock/patches/patch-src_knockd_c
+++ b/package/knock/patches/patch-src_knockd_c
@@ -1,7 +1,15 @@
 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
 --- knock-0.5.orig/src/knockd.c	2005-06-27 07:11:34.000000000 +0200
-+++ knock-0.5/src/knockd.c	2009-05-29 17:03:55.776378324 +0200
-@@ -1064,7 +1064,7 @@ char* get_ip(const char* iface, char *bu
++++ knock-0.5/src/knockd.c	2009-06-01 21:43:53.000000000 +0200
+@@ -46,6 +46,7 @@
+ #include <syslog.h>
+ #include <pcap.h>
+ #include <errno.h>
++#include <linux/limits.h>
+ #include "list.h"
+ 
+ static char version[] = "0.5";
+@@ -1064,7 +1065,7 @@ char* get_ip(const char* iface, char *bu
  		return(NULL);
  	}
  
diff --git a/package/linux-atm/patches/patch-src_led_main_c b/package/linux-atm/patches/patch-src_led_main_c
new file mode 100644
index 000000000..63c5b5e9b
--- /dev/null
+++ b/package/linux-atm/patches/patch-src_led_main_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- linux-atm-2.5.0.orig/src/led/main.c	2005-10-06 19:27:50.000000000 +0200
++++ linux-atm-2.5.0/src/led/main.c	2009-06-01 22:38:27.000000000 +0200
+@@ -31,6 +31,7 @@
+ #endif
+ 
+ /* Global includes */
++#include <limits.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/time.h>
diff --git a/package/mini_httpd/patches/patch-htpasswd_c b/package/mini_httpd/patches/patch-htpasswd_c
new file mode 100644
index 000000000..bfea3fc7c
--- /dev/null
+++ b/package/mini_httpd/patches/patch-htpasswd_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- mini_httpd-1.19.orig/htpasswd.c	2001-12-19 01:08:10.000000000 +0100
++++ mini_httpd-1.19/htpasswd.c	2009-06-01 22:50:44.000000000 +0200
+@@ -49,7 +49,7 @@ static void getword(char *word, char *li
+     while((line[y++] = line[x++]));
+ }
+ 
+-static int getline(char *s, int n, FILE *f) {
++static int getline2(char *s, int n, FILE *f) {
+     register int i=0;
+ 
+     while(1) {
+@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
+     strcpy(user,argv[2]);
+ 
+     found = 0;
+-    while(!(getline(line,MAX_STRING_LEN,f))) {
++    while(!(getline2(line,MAX_STRING_LEN,f))) {
+         if(found || (line[0] == '#') || (!line[0])) {
+             putline(tfp,line);
+             continue;
diff --git a/package/mrd6/patches/patch-src_bgp_bgp_cpp b/package/mrd6/patches/patch-src_bgp_bgp_cpp
new file mode 100644
index 000000000..ac83dc5a4
--- /dev/null
+++ b/package/mrd6/patches/patch-src_bgp_bgp_cpp
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- mrd6-0.9.6.orig/src/bgp/bgp.cpp	2008-01-25 11:44:46.000000000 +0100
++++ mrd6-0.9.6/src/bgp/bgp.cpp	2009-06-01 22:57:15.000000000 +0200
+@@ -29,6 +29,7 @@
+ 
+ #include <mrdpriv/bgp/def.h>
+ 
++#include <limits.h>
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
+ #include <sys/times.h> /* times */
diff --git a/package/mrd6/patches/patch-src_mrd_cpp b/package/mrd6/patches/patch-src_mrd_cpp
new file mode 100644
index 000000000..cb2e1dceb
--- /dev/null
+++ b/package/mrd6/patches/patch-src_mrd_cpp
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- mrd6-0.9.6.orig/src/mrd.cpp	2008-01-24 11:59:47.000000000 +0100
++++ mrd6-0.9.6/src/mrd.cpp	2009-06-01 22:55:38.000000000 +0200
+@@ -45,6 +45,7 @@
+ #include <cstdlib>
+ #include <errno.h>
+ 
++#include <limits.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ 
diff --git a/package/netperf/patches/patch-src_netlib_c b/package/netperf/patches/patch-src_netlib_c
new file mode 100644
index 000000000..688054fde
--- /dev/null
+++ b/package/netperf/patches/patch-src_netlib_c
@@ -0,0 +1,17 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- netperf-2.4.3.orig/src/netlib.c	2007-02-15 01:12:35.000000000 +0100
++++ netperf-2.4.3/src/netlib.c	2009-06-01 23:36:22.000000000 +0200
+@@ -1900,8 +1900,13 @@ bind_to_specific_processor(int processor
+ 
+ #if defined(__CPU_SETSIZE)
+ #define NETPERF_CPU_SETSIZE __CPU_SETSIZE
++#if defined(__CPU_SET_S)
++#define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp)
++#define NETPERF_CPU_ZERO(cpusetp)      __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 
++#else
+ #define NETPERF_CPU_SET(cpu, cpusetp)  __CPU_SET(cpu, cpusetp)
+ #define NETPERF_CPU_ZERO(cpusetp)      __CPU_ZERO (cpusetp)
++#endif
+   typedef cpu_set_t netperf_cpu_set_t;
+ #else
+ #define NETPERF_CPU_SETSIZE sizeof(unsigned long)
diff --git a/package/netperf/patches/patch-src_netlib_c.orig b/package/netperf/patches/patch-src_netlib_c.orig
new file mode 100644
index 000000000..f3e023cc0
--- /dev/null
+++ b/package/netperf/patches/patch-src_netlib_c.orig
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- netperf-2.4.3.orig/src/netlib.c	2007-02-15 01:12:35.000000000 +0100
++++ netperf-2.4.3/src/netlib.c	2009-06-01 23:30:34.000000000 +0200
+@@ -59,6 +59,7 @@ char    netlib_id[]="\
+  /* This is based on a spot-check of a couple systems at my disposal. */
+  /* If you have trouble compiling you may want to add "sys/" raj 10/95 */
+ #include <limits.h>
++#include <sched.h>
+ #include <signal.h>
+ #ifdef MPE
+ #  define NSIG _NSIG
diff --git a/package/nut/Config.in b/package/nut/Config.in
index 2da404567..9539f8a03 100644
--- a/package/nut/Config.in
+++ b/package/nut/Config.in
@@ -78,26 +78,11 @@ config ADK_PACKAGE_NUT_DRIVER_BESTUFERRUPS
 	boolean
 	default n
 	
-config ADK_PACKAGE_NUT_DRIVER_BLAZER
-	prompt "blazer............................ Driver for Blazer UPS models"
-	boolean
-	default n
-	
-config ADK_PACKAGE_NUT_DRIVER_CPSUPS
-	prompt "cpsups............................ Driver for CyberPower text protocol UPS"
-	boolean
-	default n
-	
 config ADK_PACKAGE_NUT_DRIVER_CYBERPOWER
 	prompt "cyberpower........................ Driver for Cyber Power Systems"
 	boolean
 	default n
 	
-config ADK_PACKAGE_NUT_DRIVER_ESUPSSMART
-	prompt "esupssmart........................ Driver for ES UPS"
-	boolean
-	default n
-	
 config ADK_PACKAGE_NUT_DRIVER_ETAPRO
 	prompt "etapro............................ Driver for ETA UPS"
 	boolean
@@ -108,11 +93,6 @@ config ADK_PACKAGE_NUT_DRIVER_EVERUPS
 	boolean
 	default n
 	
-config ADK_PACKAGE_NUT_DRIVER_FENTONUPS
-	prompt "fentonups......................... Driver for Fenton Technologies units"
-	boolean
-	default n
-	
 config ADK_PACKAGE_NUT_DRIVER_GAMATRONIC
 	prompt "gamatronic........................ Driver for Gamatronic UPS"
 	boolean
@@ -123,11 +103,6 @@ config ADK_PACKAGE_NUT_DRIVER_GENERICUPS
 	boolean
 	default n
 	
-config ADK_PACKAGE_NUT_DRIVER_IPPON
-	prompt "ippon............................. Driver for Ippon UPS devices"
-	boolean
-	default n
-	
 config ADK_PACKAGE_NUT_DRIVER_ISBMEX
 	prompt "isbmex............................ Driver for SOLA/BASIC Mexico models"
 	boolean
@@ -158,11 +133,6 @@ config ADK_PACKAGE_NUT_DRIVER_MGE_UTALK
 	boolean
 	default n
 	
-config ADK_PACKAGE_NUT_DRIVER_MUSTEK
-	prompt "mustek............................ Driver for Mustek UPS models"
-	boolean
-	default n
-	
 config ADK_PACKAGE_NUT_DRIVER_ONEAC
 	prompt "oneac............................. Driver for UPS using the Oneac Advanced Interface"
 	boolean
@@ -185,6 +155,12 @@ config ADK_PACKAGE_NUT_DRIVER_POWERMUST
 	prompt "powermust......................... Driver for Powermust"
 	boolean
 	default n
+
+config ADK_PACKAGE_NUT_DRIVER_POWERPANEL
+	prompt "powerpanel........................ Driver for Powerpanel units"
+	boolean
+	default n
+	help
 	
 config ADK_PACKAGE_NUT_DRIVER_RHINO
 	prompt "rhino............................. Driver for Microsol Rhino UPS"
@@ -206,11 +182,6 @@ config ADK_PACKAGE_NUT_DRIVER_SAFENET
 	  * - Sweex 500/1000
 	  * - others using SafeNet software and serial interface
 
-config ADK_PACKAGE_NUT_DRIVER_SMS
-	prompt "sms............................... Driver for SMS UPS hardware"
-	boolean
-	default n
-	
 config ADK_PACKAGE_NUT_DRIVER_SOLIS
 	prompt "solis............................. Driver for Microsol Solis UPS"
 	boolean
diff --git a/package/nut/Makefile b/package/nut/Makefile
index 2bf1c12f8..97418808b 100644
--- a/package/nut/Makefile
+++ b/package/nut/Makefile
@@ -38,12 +38,12 @@ endef
 
 DRIVERS_y:=
 $(eval $(call DRIVER_template,BESTUPS,bestups))
-$(eval $(call DRIVER_template,FENTONUPS,fentonups))
 $(eval $(call DRIVER_template,APCSMART,apcsmart))
 $(eval $(call DRIVER_template,EVERUPS,everups))
 $(eval $(call DRIVER_template,BELKIN,belkin))
 $(eval $(call DRIVER_template,MASTERGUARD,masterguard))
 $(eval $(call DRIVER_template,POWERCOM,powercom))
+$(eval $(call DRIVER_template,POWERPANEL,powerpanel))
 $(eval $(call DRIVER_template,CYBERPOWER,cyberpower))
 $(eval $(call DRIVER_template,TRIPPLITE,tripplite))
 $(eval $(call DRIVER_template,VICTRONUPS,victronups))
@@ -53,16 +53,10 @@ $(eval $(call DRIVER_template,BESTUFERRUPS,bestuferrups))
 $(eval $(call DRIVER_template,ISBMEX,isbmex))
 $(eval $(call DRIVER_template,ETAPRO,etapro))
 $(eval $(call DRIVER_template,LIEBERT,liebert))
-$(eval $(call DRIVER_template,SMS,sms))
-$(eval $(call DRIVER_template,ESUPSSMART,esupssmart))
 $(eval $(call DRIVER_template,TRIPPLITESU,tripplitesu))
-$(eval $(call DRIVER_template,BLAZER,blazer))
 $(eval $(call DRIVER_template,SAFENET,safenet))
 $(eval $(call DRIVER_template,BELKINUNV,belkinunv))
 $(eval $(call DRIVER_template,ONEAC,oneac))
-$(eval $(call DRIVER_template,IPPON,ippon))
-$(eval $(call DRIVER_template,CPSUPS,cpsups))
-$(eval $(call DRIVER_template,MUSTEK,mustek))
 $(eval $(call DRIVER_template,METASYS,metasys))
 $(eval $(call DRIVER_template,BESTFCOM,bestfcom))
 $(eval $(call DRIVER_template,UPSCODE2,upscode2))
@@ -75,7 +69,7 @@ CONFIG_DRIVERS=$(shell echo ${DRIVERS_y} | tr ' ' ',')
 
 INSTALL_DRIVERS_tmp=${DRIVERS_y}
 ifneq (${ADK_PACKAGE_NUT_USB},)
-INSTALL_DRIVERS_tmp+=	hidups energizerups newhidups tripplite_usb
+INSTALL_DRIVERS_tmp+=	usbhid-ups tripplite_usb
 endif
 ifneq (${ADK_PACKAGE_NUT_SNMP},)
 INSTALL_DRIVERS_tmp+=	snmp-ups
@@ -86,8 +80,8 @@ CONFIGURE_STYLE:=	gnu
 CONFIGURE_ARGS+=	--with-linux-hiddev=${LINUX_DIR}/include/linux/hiddev.h \
 			--without-cgi \
 			--with-drivers=${INSTALL_DRIVERS} \
-			--with-group=root \
-			--with-user=root
+			--with-group=0 \
+			--with-user=0
 
 ifneq (${ADK_PACKAGE_NUT_SSL},)
 CONFIGURE_ARGS+=	--with-ssl
@@ -108,7 +102,7 @@ INSTALL_TARGET+=	install-snmp
 endif
 
 post-install:
-	${INSTALL_DIR} ${IDIR_NUT}/usr/{s,}bin
+	${INSTALL_DIR} ${IDIR_NUT}/usr/{s,}bin ${IDIR_NUT}/etc
 	${INSTALL_BIN} ${WRKINST}/usr/sbin/ups{d,mon,sched} \
 		${IDIR_NUT}/usr/sbin/
 	${INSTALL_BIN} ${WRKINST}/usr/bin/{${INSTALL_DRIVERS}} \
diff --git a/package/procmail/patches/patch-src_fields_c b/package/procmail/patches/patch-src_fields_c
new file mode 100644
index 000000000..73586c79b
--- /dev/null
+++ b/package/procmail/patches/patch-src_fields_c
@@ -0,0 +1,23 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/fields.c	2001-09-11 06:57:08.000000000 +0200
++++ procmail-3.22/src/fields.c	2009-06-02 00:23:11.000000000 +0200
+@@ -110,16 +110,16 @@ void dispfield(p)register const struct f
+ 		    /* try and append one valid field to rdheader from stdin */
+ int readhead P((void))
+ { int idlen;
+-  getline();
++  getline2();
+   if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
+      return 0;
+   if(idlen==STRLEN(FROM)&&eqFrom_(buf))			/* it's a From_ line */
+    { if(rdheader)
+ 	return 0;			       /* the From_ line was a fake! */
+-     for(;buflast=='>';getline());	    /* gather continued >From_ lines */
++     for(;buflast=='>';getline2());	    /* gather continued >From_ lines */
+    }
+   else
+-     for(;;getline())		      /* get the rest of the continued field */
++     for(;;getline2())		      /* get the rest of the continued field */
+       { switch(buflast)			     /* will this line be continued? */
+ 	 { case ' ':case '\t':				  /* yep, it sure is */
+ 	      continue;
diff --git a/package/procmail/patches/patch-src_formail_c b/package/procmail/patches/patch-src_formail_c
new file mode 100644
index 000000000..6fe45ab53
--- /dev/null
+++ b/package/procmail/patches/patch-src_formail_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/formail.c	2001-09-11 06:57:32.000000000 +0200
++++ procmail-3.22/src/formail.c	2009-06-02 00:22:47.000000000 +0200
+@@ -819,7 +819,7 @@ splitit:       { if(!lnl)   /* did the p
+       { if(split)		       /* gobble up the next start separator */
+ 	 { buffilled=0;
+ #ifdef sMAILBOX_SEPARATOR
+-	   getline();buffilled=0;		 /* but only if it's defined */
++	   getline2();buffilled=0;		 /* but only if it's defined */
+ #endif
+ 	   if(buflast!=EOF)					   /* if any */
+ 	      goto splitit;
diff --git a/package/procmail/patches/patch-src_formisc_c b/package/procmail/patches/patch-src_formisc_c
new file mode 100644
index 000000000..c77cf94c2
--- /dev/null
+++ b/package/procmail/patches/patch-src_formisc_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/formisc.c	2001-06-29 04:20:45.000000000 +0200
++++ procmail-3.22/src/formisc.c	2009-06-02 00:23:57.000000000 +0200
+@@ -115,7 +115,7 @@ void loadchar(c)const int c;		      /* a
+   buf[buffilled++]=c;
+ }
+ 
+-int getline P((void))			   /* read a newline-terminated line */
++int getline2 P((void))			   /* read a newline-terminated line */
+ { if(buflast==EOF)			 /* at the end of our Latin already? */
+    { loadchar('\n');					  /* fake empty line */
+      return EOF;					  /* spread the word */
diff --git a/package/procmail/patches/patch-src_formisc_h b/package/procmail/patches/patch-src_formisc_h
new file mode 100644
index 000000000..9ee95d928
--- /dev/null
+++ b/package/procmail/patches/patch-src_formisc_h
@@ -0,0 +1,9 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/formisc.h	1999-04-19 08:42:15.000000000 +0200
++++ procmail-3.22/src/formisc.h	2009-06-02 00:22:16.000000000 +0200
+@@ -17,4 +17,4 @@ void
+ char*
+  skipwords P((char*start));
+ int
+- getline P((void));
++ getline2 P((void));
diff --git a/package/reaim/patches/501-cross_compile-install.patch b/package/reaim/patches/501-cross_compile-install.patch
index 9e88f617e..db33bf6c3 100644
--- a/package/reaim/patches/501-cross_compile-install.patch
+++ b/package/reaim/patches/501-cross_compile-install.patch
@@ -1,7 +1,7 @@
 diff -urN reaim-0.8/Makefile reaim-0.8/Makefile
---- reaim-0.8/Makefile	2002-11-28 06:10:38.000000000 +0100
-+++ reaim-0.8/Makefile	2005-10-07 12:07:43.000000000 +0200
-@@ -11,7 +11,10 @@
+--- reaim-0.8.orig/Makefile	2002-11-28 06:10:38.000000000 +0100
++++ reaim-0.8/Makefile	2009-06-02 00:30:32.000000000 +0200
+@@ -11,7 +11,10 @@ FW_FLAGS="-DUSE_IPF"
  endif
  
  reaim: reaim.c
diff --git a/package/reaim/patches/patch-reaim_c b/package/reaim/patches/patch-reaim_c
new file mode 100644
index 000000000..7f208061e
--- /dev/null
+++ b/package/reaim/patches/patch-reaim_c
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- reaim-0.8.orig/reaim.c	2003-03-25 13:35:31.000000000 +0100
++++ reaim-0.8/reaim.c	2009-06-02 00:30:51.000000000 +0200
+@@ -190,6 +190,7 @@
+ #include <netdb.h>
+ #include <time.h>
+ #include <ctype.h>
++#include <limits.h>
+ 
+ #include <getopt.h>
+ #include <sys/ioctl.h>
diff --git a/package/tmsnc/patches/patch-Makefile b/package/tmsnc/patches/patch-Makefile
new file mode 100644
index 000000000..c0be7120d
--- /dev/null
+++ b/package/tmsnc/patches/patch-Makefile
@@ -0,0 +1,149 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- tmsnc-0.3.2.orig/Makefile	2006-10-17 13:14:22.000000000 +0200
++++ tmsnc-0.3.2/Makefile	2009-06-02 01:13:53.000000000 +0200
+@@ -33,8 +33,8 @@ POST_INSTALL = :
+ NORMAL_UNINSTALL = :
+ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+-build_triplet = i686-pc-linux-gnu
+-host_triplet = i686-pc-linux-gnu
++build_triplet = x86_64-pc-linux-gnu
++host_triplet = i586-pc-linux-gnu
+ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ 	$(srcdir)/Makefile.in \
+ 	$(top_srcdir)/autopackage/default.apspec.in \
+@@ -76,21 +76,21 @@ DIST_ARCHIVES = $(distdir).tar.gz
+ GZIP_ENV = --best
+ distuninstallcheck_listfiles = find . -type f -print
+ distcleancheck_listfiles = find . -type f -print
+-ACLOCAL = ${SHELL} /home/jonas/tmsnc/missing --run aclocal-1.9
+-AMDEP_FALSE = #
+-AMDEP_TRUE = 
+-AMTAR = ${SHELL} /home/jonas/tmsnc/missing --run tar
+-AUTOCONF = ${SHELL} /home/jonas/tmsnc/missing --run autoconf
+-AUTOHEADER = ${SHELL} /home/jonas/tmsnc/missing --run autoheader
+-AUTOMAKE = ${SHELL} /home/jonas/tmsnc/missing --run automake-1.9
+-AWK = mawk
+-CC = gcc
+-CCDEPMODE = depmode=gcc3
+-CFLAGS = -g -O2
+-CPP = gcc -E
+-CPPFLAGS = 
+-CURSES_INCLUDEDIR = 
+-CURSES_LIBS = -lncurses -lpanel -lform
++ACLOCAL = ${SHELL} /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/missing --run aclocal-1.9
++AMDEP_FALSE = 
++AMDEP_TRUE = #
++AMTAR = ${SHELL} /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/missing --run tar
++AUTOCONF = ${SHELL} /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/missing --run autoconf
++AUTOHEADER = ${SHELL} /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/missing --run autoheader
++AUTOMAKE = ${SHELL} /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/missing --run automake-1.9
++AWK = gawk
++CC = /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc
++CCDEPMODE = depmode=none
++CFLAGS = -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all
++CPP = /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -E
++CPPFLAGS = -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG
++CURSES_INCLUDEDIR = -I/home/wbx/alix1c/openadk/cross_i586/target/include -DRENAMED_NCURSES
++CURSES_LIBS =  -L/home/wbx/alix1c/openadk/cross_i586/target/lib -lncurses -lpanel -lform
+ CYGPATH_W = echo
+ DEFS = -DHAVE_CONFIG_H
+ DEPDIR = .deps
+@@ -104,13 +104,13 @@ INSTALL_DATA = ${INSTALL} -m 644
+ INSTALL_PROGRAM = ${INSTALL}
+ INSTALL_SCRIPT = ${INSTALL}
+ INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
+-LDFLAGS = 
+-LIBICONV = 
++LDFLAGS = -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib
++LIBICONV = /home/wbx/alix1c/openadk/cross_i586/target/usr/lib/libiconv.so -Wl,-rpath -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib
+ LIBOBJS = 
+ LIBS = 
+-LTLIBICONV = 
++LTLIBICONV = -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -liconv -R/home/wbx/alix1c/openadk/cross_i586/target/usr/lib
+ LTLIBOBJS = 
+-MAKEINFO = ${SHELL} /home/jonas/tmsnc/missing --run makeinfo
++MAKEINFO = ${SHELL} /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/missing --run makeinfo
+ OBJEXT = o
+ OPENSSL_FALSE = #
+ OPENSSL_TRUE = 
+@@ -122,57 +122,57 @@ PACKAGE_TARNAME = 
+ PACKAGE_VERSION = 
+ PATH_SEPARATOR = :
+ SET_MAKE = 
+-SHELL = /bin/sh
+-SSLINC = 
+-SSLLIB = -lssl -lcrypto
+-STRIP = 
++SHELL = /bin/bash
++SSLINC = -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include
++SSLLIB = -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -lssl -lcrypto
++STRIP = i586-linux-strip
+ TALKFILTERS_FALSE = 
+ TALKFILTERS_TRUE = #
+ TFLIB = 
+ VERSION = 0.3.2
+-ac_ct_CC = gcc
+-am__fastdepCC_FALSE = #
+-am__fastdepCC_TRUE = 
++ac_ct_CC = 
++am__fastdepCC_FALSE = 
++am__fastdepCC_TRUE = #
+ am__include = include
+ am__leading_dot = .
+ am__quote = 
+ am__tar = ${AMTAR} chof - "$$tardir"
+ am__untar = ${AMTAR} xf -
+ bindir = ${exec_prefix}/bin
+-build = i686-pc-linux-gnu
+-build_alias = 
+-build_cpu = i686
++build = x86_64-pc-linux-gnu
++build_alias = x86_64-linux-gnu
++build_cpu = x86_64
+ build_os = linux-gnu
+ build_vendor = pc
+-datadir = ${datarootdir}
++datadir = /usr/share
+ datarootdir = ${prefix}/share
+ docdir = ${datarootdir}/doc/${PACKAGE}
+ dvidir = ${docdir}
+ exec_prefix = ${prefix}
+-host = i686-pc-linux-gnu
+-host_alias = 
+-host_cpu = i686
++host = i586-pc-linux-gnu
++host_alias = i586-linux
++host_cpu = i586
+ host_os = linux-gnu
+ host_vendor = pc
+ htmldir = ${docdir}
+ includedir = ${prefix}/include
+ infodir = ${datarootdir}/info
+-install_sh = /home/jonas/tmsnc/install-sh
++install_sh = /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/install-sh
+ libdir = ${exec_prefix}/lib
+-libexecdir = ${exec_prefix}/libexec
++libexecdir = /usr/sbin
+ localedir = ${datarootdir}/locale
+-localstatedir = ${prefix}/var
+-mandir = ${datarootdir}/man
++localstatedir = /var
++mandir = /usr/share/man
+ mkdir_p = mkdir -p --
+ oldincludedir = /usr/include
+ pdfdir = ${docdir}
+-prefix = /usr/local
+-program_transform_name = s,x,x,
++prefix = /usr
++program_transform_name = s&$$&&;s&^&&
+ psdir = ${docdir}
+ sbindir = ${exec_prefix}/sbin
+ sharedstatedir = ${prefix}/com
+-sysconfdir = ${prefix}/etc
+-target_alias = 
++sysconfdir = /etc
++target_alias = i586-linux
+ tmsnc_VERSION = 0.3.2
+ AUTOMAKE_OPTIONS = no-dependencies
+ SUBDIRS = src doc
diff --git a/package/tmsnc/patches/patch-config_log b/package/tmsnc/patches/patch-config_log
new file mode 100644
index 000000000..519c7681e
--- /dev/null
+++ b/package/tmsnc/patches/patch-config_log
@@ -0,0 +1,756 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- tmsnc-0.3.2.orig/config.log	2006-10-17 13:14:23.000000000 +0200
++++ tmsnc-0.3.2/config.log	2009-06-02 01:13:54.000000000 +0200
+@@ -4,22 +4,22 @@ running configure, to aid debugging if c
+ It was created by configure, which was
+ generated by GNU Autoconf 2.60a.  Invocation command line was
+ 
+-  $ ./configure 
++  $ /home/wbx/alix1c/openadk/build_i586/w-tmsnc-0.3.2-1/tmsnc-0.3.2/configure --build=x86_64-linux-gnu --host=i586-linux --target=i586-linux --program-prefix= --program-suffix= --prefix=/usr --datadir=/usr/share --mandir=/usr/share/man --libexecdir=/usr/sbin --localstatedir=/var --sysconfdir=/etc --disable-nls --enable-shared --enable-static --disable-dependency-tracking --disable-libtool-lock --disable-debug --enable-ipv6 --with-libiconv-prefix=/home/wbx/alix1c/openadk/cross_i586/target/usr --with-openssl=/home/wbx/alix1c/openadk/cross_i586/target/usr --with-ncurses=/home/wbx/alix1c/openadk/cross_i586/target
+ 
+ ## --------- ##
+ ## Platform. ##
+ ## --------- ##
+ 
+-hostname = prophet
+-uname -m = i686
+-uname -r = 2.6.18-mactel
++hostname = natrium
++uname -m = x86_64
++uname -r = 2.6.26-2-amd64
+ uname -s = Linux
+-uname -v = #1 SMP Tue Oct 10 12:17:51 CEST 2006
++uname -v = #1 SMP Fri Mar 27 04:02:59 UTC 2009
+ 
+ /usr/bin/uname -p = unknown
+ /bin/uname -X     = unknown
+ 
+-/bin/arch              = i686
++/bin/arch              = unknown
+ /usr/bin/arch -k       = unknown
+ /usr/convex/getsysinfo = unknown
+ /usr/bin/hostinfo      = unknown
+@@ -27,10 +27,12 @@ uname -v = #1 SMP Tue Oct 10 12:17:51 CE
+ /usr/bin/oslevel       = unknown
+ /bin/universe          = unknown
+ 
++PATH: /home/wbx/alix1c/openadk/scripts
++PATH: /home/wbx/alix1c/openadk/cross_i586/host/bin
++PATH: /home/wbx/alix1c/openadk/cross_i586/target/scripts
+ PATH: /usr/local/bin
+ PATH: /usr/bin
+ PATH: /bin
+-PATH: /usr/bin/X11
+ PATH: /usr/games
+ 
+ 
+@@ -43,87 +45,85 @@ configure:1845: result: /usr/bin/install
+ configure:1856: checking whether build environment is sane
+ configure:1899: result: yes
+ configure:1964: checking for gawk
+-configure:1994: result: no
+-configure:1964: checking for mawk
+-configure:1980: found /usr/bin/mawk
+-configure:1991: result: mawk
+-configure:2002: checking whether make sets $(MAKE)
++configure:1980: found /usr/bin/gawk
++configure:1991: result: gawk
++configure:2002: checking whether /usr/bin/make sets $(MAKE)
+ configure:2023: result: yes
+-configure:2258: checking for gcc
+-configure:2274: found /usr/bin/gcc
+-configure:2285: result: gcc
++configure:2099: checking for i586-linux-strip
++configure:2115: found /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-strip
++configure:2126: result: i586-linux-strip
++configure:2218: checking for i586-linux-gcc
++configure:2245: result: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc
+ configure:2523: checking for C compiler version
+-configure:2530: gcc --version >&5
+-gcc (GCC) 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
+-Copyright (C) 2006 Free Software Foundation, Inc.
++configure:2530: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc --version >&5
++i586-linux-gnu-gcc (GCC) 4.4.0
++Copyright (C) 2009 Free Software Foundation, Inc.
+ This is free software; see the source for copying conditions.  There is NO
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ 
+ configure:2533: $? = 0
+-configure:2540: gcc -v >&5
++configure:2540: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -v >&5
+ Using built-in specs.
+-Target: i486-linux-gnu
+-Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
++Target: i586-linux-gnu
++Configured with: /home/wbx/alix1c/openadk/toolchain_build_i586/gcc-4.4.0/configure --prefix=/home/wbx/alix1c/openadk/cross_i586/host --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=i586-linux-gnu --with-gmp=/home/wbx/alix1c/openadk/cross_i586/host --with-mpfr=/home/wbx/alix1c/openadk/cross_i586/host --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --without-headers --disable-libmudflap --disable-libgomp --disable-biarch --disable-multilib --disable-nls --enable-libssp --enable-languages=c,c++ --with-sysroot=/home/wbx/alix1c/openadk/cross_i586/target --with-slibdir=/home/wbx/alix1c/openadk/cross_i586/target/lib --enable-shared
+ Thread model: posix
+-gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
++gcc version 4.4.0 (GCC) 
+ configure:2543: $? = 0
+-configure:2550: gcc -V >&5
+-gcc: '-V' option must have argument
++configure:2550: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -V >&5
++i586-linux-gnu-gcc: '-V' option must have argument
+ configure:2553: $? = 1
+ configure:2576: checking for C compiler default output file name
+-configure:2603: gcc    conftest.c  >&5
++configure:2603: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  >&5
+ configure:2606: $? = 0
+ configure:2644: result: a.out
+ configure:2661: checking whether the C compiler works
+-configure:2671: ./a.out
+-configure:2674: $? = 0
+ configure:2691: result: yes
+ configure:2698: checking whether we are cross compiling
+-configure:2700: result: no
++configure:2700: result: yes
+ configure:2703: checking for suffix of executables
+-configure:2710: gcc -o conftest    conftest.c  >&5
++configure:2710: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  >&5
+ configure:2713: $? = 0
+ configure:2737: result: 
+ configure:2743: checking for suffix of object files
+-configure:2769: gcc -c   conftest.c >&5
++configure:2769: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:2772: $? = 0
+ configure:2795: result: o
+ configure:2799: checking whether we are using the GNU C compiler
+-configure:2828: gcc -c   conftest.c >&5
++configure:2828: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:2834: $? = 0
+ configure:2841: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:2844: $? = 0
+ configure:2851: test -s conftest.o
+ configure:2854: $? = 0
+ configure:2868: result: yes
+-configure:2873: checking whether gcc accepts -g
+-configure:2903: gcc -c -g  conftest.c >&5
++configure:2873: checking whether /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc accepts -g
++configure:2903: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -g -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:2909: $? = 0
+ configure:2916: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:2919: $? = 0
+ configure:2926: test -s conftest.o
+ configure:2929: $? = 0
+ configure:3059: result: yes
+-configure:3076: checking for gcc option to accept ISO C89
+-configure:3150: gcc  -c -g -O2  conftest.c >&5
++configure:3076: checking for /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc option to accept ISO C89
++configure:3150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc  -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:3156: $? = 0
+ configure:3163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:3166: $? = 0
+ configure:3173: test -s conftest.o
+ configure:3176: $? = 0
+ configure:3196: result: none needed
+-configure:3225: checking for style of include used by make
++configure:3225: checking for style of include used by /usr/bin/make
+ configure:3253: result: GNU
+-configure:3281: checking dependency style of gcc
+-configure:3371: result: gcc3
++configure:3281: checking dependency style of /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc
++configure:3371: result: none
+ configure:3401: checking for a BSD-compatible install
+ configure:3457: result: /usr/bin/install -c
+-configure:3468: checking whether make sets $(MAKE)
++configure:3468: checking whether /usr/bin/make sets $(MAKE)
+ configure:3489: result: yes
+ configure:3506: checking how to run the C preprocessor
+-configure:3546: gcc -E  conftest.c
++configure:3546: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -E -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c
+ configure:3552: $? = 0
+-configure:3590: gcc -E  conftest.c
++configure:3590: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -E -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c
+ conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
+ configure:3596: $? = 1
+ configure: failed program was:
+@@ -137,10 +137,10 @@ configure: failed program was:
+ | #define VERSION "0.3.2"
+ | /* end confdefs.h.  */
+ | #include <ac_nonexistent.h>
+-configure:3636: result: gcc -E
+-configure:3665: gcc -E  conftest.c
++configure:3636: result: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -E
++configure:3665: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -E -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c
+ configure:3671: $? = 0
+-configure:3709: gcc -E  conftest.c
++configure:3709: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -E -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c
+ conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
+ configure:3715: $? = 1
+ configure: failed program was:
+@@ -159,19 +159,15 @@ configure:3834: result: /bin/grep
+ configure:3839: checking for egrep
+ configure:3917: result: /bin/grep -E
+ configure:3922: checking for ANSI C header files
+-configure:3952: gcc -c -g -O2  conftest.c >&5
++configure:3952: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:3958: $? = 0
+ configure:3965: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:3968: $? = 0
+ configure:3975: test -s conftest.o
+ configure:3978: $? = 0
+-configure:4074: gcc -o conftest -g -O2   conftest.c  >&5
+-configure:4077: $? = 0
+-configure:4083: ./conftest
+-configure:4086: $? = 0
+ configure:4103: result: yes
+ configure:4129: checking for sys/types.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -179,7 +175,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for sys/stat.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -187,7 +183,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for stdlib.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -195,7 +191,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for string.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -203,7 +199,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for memory.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -211,7 +207,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for strings.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -219,7 +215,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for inttypes.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -227,7 +223,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for stdint.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -235,7 +231,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4129: checking for unistd.h
+-configure:4150: gcc -c -g -O2  conftest.c >&5
++configure:4150: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4156: $? = 0
+ configure:4163: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4166: $? = 0
+@@ -243,7 +239,7 @@ configure:4173: test -s conftest.o
+ configure:4176: $? = 0
+ configure:4189: result: yes
+ configure:4201: checking for pid_t
+-configure:4231: gcc -c -g -O2  conftest.c >&5
++configure:4231: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4237: $? = 0
+ configure:4244: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4247: $? = 0
+@@ -251,7 +247,7 @@ configure:4254: test -s conftest.o
+ configure:4257: $? = 0
+ configure:4269: result: yes
+ configure:4281: checking for size_t
+-configure:4311: gcc -c -g -O2  conftest.c >&5
++configure:4311: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4317: $? = 0
+ configure:4324: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4327: $? = 0
+@@ -259,7 +255,7 @@ configure:4334: test -s conftest.o
+ configure:4337: $? = 0
+ configure:4349: result: yes
+ configure:4361: checking whether time.h and sys/time.h may both be included
+-configure:4391: gcc -c -g -O2  conftest.c >&5
++configure:4391: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4397: $? = 0
+ configure:4404: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4407: $? = 0
+@@ -267,7 +263,7 @@ configure:4414: test -s conftest.o
+ configure:4417: $? = 0
+ configure:4429: result: yes
+ configure:4439: checking whether struct tm is in sys/time.h or time.h
+-configure:4467: gcc -c -g -O2  conftest.c >&5
++configure:4467: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -c -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG conftest.c >&5
+ configure:4473: $? = 0
+ configure:4480: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4483: $? = 0
+@@ -275,7 +271,7 @@ configure:4490: test -s conftest.o
+ configure:4493: $? = 0
+ configure:4505: result: time.h
+ configure:4516: checking for library containing gethostbyname
+-configure:4557: gcc -o conftest -g -O2   conftest.c  >&5
++configure:4557: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  >&5
+ configure:4563: $? = 0
+ configure:4570: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4573: $? = 0
+@@ -283,17 +279,15 @@ configure:4580: test -s conftest
+ configure:4583: $? = 0
+ configure:4607: result: none required
+ configure:4615: checking for socket
+-configure:4671: gcc -o conftest -g -O2   conftest.c  >&5
++configure:4671: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  >&5
+ configure:4677: $? = 0
+ configure:4684: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:4687: $? = 0
+ configure:4694: test -s conftest
+ configure:4697: $? = 0
+ configure:4710: result: yes
+-configure:5084: checking location of ncurses.h file...
+-configure:5092: result: Found ncurses on /usr/include/ncurses.h
+ configure:5367: checking for use_default_colors
+-configure:5423: gcc -o conftest -g -O2   conftest.c -lncurses >&5
++configure:5423: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  -L/home/wbx/alix1c/openadk/cross_i586/target/lib -lncurses >&5
+ configure:5429: $? = 0
+ configure:5436: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:5439: $? = 0
+@@ -301,7 +295,7 @@ configure:5446: test -s conftest
+ configure:5449: $? = 0
+ configure:5463: result: yes
+ configure:5367: checking for resizeterm
+-configure:5423: gcc -o conftest -g -O2   conftest.c -lncurses >&5
++configure:5423: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  -L/home/wbx/alix1c/openadk/cross_i586/target/lib -lncurses >&5
+ configure:5429: $? = 0
+ configure:5436: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:5439: $? = 0
+@@ -309,7 +303,7 @@ configure:5446: test -s conftest
+ configure:5449: $? = 0
+ configure:5463: result: yes
+ configure:5367: checking for resize_term
+-configure:5423: gcc -o conftest -g -O2   conftest.c -lncurses >&5
++configure:5423: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  -L/home/wbx/alix1c/openadk/cross_i586/target/lib -lncurses >&5
+ configure:5429: $? = 0
+ configure:5436: test -z "$ac_c_werror_flag" || test ! -s conftest.err
+ configure:5439: $? = 0
+@@ -317,9 +311,9 @@ configure:5446: test -s conftest
+ configure:5449: $? = 0
+ configure:5463: result: yes
+ configure:5367: checking for wadd_wch
+-configure:5423: gcc -o conftest -g -O2   conftest.c -lncurses >&5
+-/tmp/cciXPB1b.o: In function `main':
+-/home/jonas/tmsnc/conftest.c:60: undefined reference to `wadd_wch'
++configure:5423: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-gcc -o conftest -fwrapv -fno-ident -Os -pipe -march=geode -fomit-frame-pointer -fstack-protector-all -I/home/wbx/alix1c/openadk/cross_i586/target/usr/include -DNDEBUG -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/wbx/alix1c/openadk/cross_i586/target/usr/lib -L/home/wbx/alix1c/openadk/cross_i586/target/lib -L/home/wbx/alix1c/openadk/cross_i586/target/usr/lib conftest.c  -L/home/wbx/alix1c/openadk/cross_i586/target/lib -lncurses >&5
++/tmp/ccezoIMb.o: In function `main':
++conftest.c:(.text+0x1d): undefined reference to `wadd_wch'
+ collect2: ld returned 1 exit status
+ configure:5429: $? = 1
+ configure: failed program was:
+@@ -342,8 +336,8 @@ configure: failed program was:
+ | #define HAVE_STDINT_H 1
+ | #define HAVE_UNISTD_H 1
+ | #define TIME_WITH_SYS_TIME 1
+-| #define HAS_CURSES 1
+ | #define USE_NCURSES 1
++| #define HAS_CURSES 1
+ | #define HAVE_USE_DEFAULT_COLORS 1
+ | #define HAVE_RESIZETERM 1
+ | #define HAVE_RESIZE_TERM 1
+@@ -388,25 +382,71 @@ configure: failed program was:
+ | }
+ configure:5463: result: no
+ configure:5515: checking build system type
+-configure:5533: result: i686-pc-linux-gnu
++configure:5533: result: x86_64-pc-linux-gnu
+ configure:5555: checking host system type
+-configure:5570: result: i686-pc-linux-gnu
++configure:5570: result: i586-pc-linux-gnu
+ configure:5616: checking for ld used by GCC
+-configure:5680: result: /usr/bin/ld
+-configure:5689: checking if the linker (/usr/bin/ld) is GNU ld
++configure:5680: result: /home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-ld
++configure:5689: checking if the linker (/home/wbx/alix1c/openadk/cross_i586/host/bin/i586-linux-gnu-ld) is GNU ld
+ configure:5702: result: yes
+ configure:5709: checking for shared library run path origin
+ configure:5722: result: done
+ configure:6152: checking for iconv
+-configure:6184: gcc -o conftest -g -O2   conftest.c  >&5
+-configure:6190: $? = 0
+-configure:6197: test -z "$ac_c_werro