diff -ur ipsec-tools-0.5.2/src/racoon/getcertsbyname.c ipsec-tools-0.5.2.hacked/src/racoon/getcertsbyname.c
--- ipsec-tools-0.5.2/src/racoon/getcertsbyname.c	2005-04-21 10:57:16.000000000 +0200
+++ ipsec-tools-0.5.2.hacked/src/racoon/getcertsbyname.c	2005-05-16 19:13:45.000000000 +0200
@@ -257,26 +257,16 @@
 		goto end;
 	}
 	cp = (unsigned char *)(hp + 1);
-	len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf));
-	if (len < 0) {
-#ifdef DNSSEC_DEBUG
-		printf("dn_expand failed.\n");
-#endif
-		goto end;
-	}
+	printf("dn_expand() not supported due to uClibc - sorry.\n");
+	goto end;
 	cp += len;
 	GETSHORT(qtype, cp);		/* QTYPE */
 	GETSHORT(qclass, cp);		/* QCLASS */
 
 	/* answer section */
 	while (ancount-- && cp < eom) {
-		len = dn_expand(answer, eom, cp, hostbuf, sizeof(hostbuf));
-		if (len < 0) {
-#ifdef DNSSEC_DEBUG
-			printf("dn_expand failed.\n");
-#endif
-			goto end;
-		}
+		printf("dn_expand() not supported due to uClibc - sorry.\n");
+		goto end;
 		cp += len;
 		GETSHORT(qtype, cp);	/* TYPE */
 		GETSHORT(qclass, cp);	/* CLASS */
diff -ur ipsec-tools-0.5.2/src/racoon/main.c ipsec-tools-0.5.2.hacked/src/racoon/main.c
--- ipsec-tools-0.5.2/src/racoon/main.c	2004-09-21 16:35:24.000000000 +0200
+++ ipsec-tools-0.5.2.hacked/src/racoon/main.c	2005-05-16 19:11:29.000000000 +0200
@@ -211,10 +211,7 @@
 		const char *pid_file = _PATH_VARRUN "racoon.pid";
 		FILE *fp;
 
-		if (daemon(0, 0) < 0) {
-			errx(1, "failed to be daemon. (%s)",
-				strerror(errno));
-		}
+		errx(1, "can't become daemon in uClinux - please use -F switch.");
 #ifndef __linux__
 		/*
 		 * In case somebody has started inetd manually, we need to
diff -ur ipsec-tools-0.5.2/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c ipsec-tools-0.5.2.hacked/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c
--- ipsec-tools-0.5.2/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c	2004-01-12 23:31:45.000000000 +0100
+++ ipsec-tools-0.5.2.hacked/src/racoon/missing/crypto/rijndael/rijndael-api-fst.c	2005-05-16 19:07:55.000000000 +0200
@@ -29,6 +29,7 @@
 #include <crypto/rijndael/rijndael-api-fst.h>
 #include <crypto/rijndael/rijndael_local.h>
 
+#include <stdio.h>
 #include <err.h>
 #define bcopy(a, b, c) memcpy(b, a, c)
 #define bzero(a, b) memset(a, 0, b)

