Enable LDSO_STANDALONE_SUPPORT and LDSO_PRELINK_SUPPORT, and the build
process will fail:

  CC ldso/ldso/ldso.oS
In file included from ldso/ldso/ldso.c:37:0:
ldso/ldso/dl-debug.c: In function '_dl_debug_lookup':
ldso/ldso/dl-debug.c:115:17: warning: variable 'symbol_addr' set but
not used [-Wunused-but-set-variable]
ldso/ldso/ldso.c: In function '_dl_get_ready_to_run':
ldso/ldso/ldso.c:725:16: warning: unused variable 'tmp' [-Wunused-variable]
ldso/ldso/ldso.c:891:31: error: 'st' undeclared (first use in this function)
ldso/ldso/ldso.c:891:31: note: each undeclared identifier is reported
only once for each function it appears in
make[2]: *** [ldso/ldso/ldso.oS] Error 1

Attached patch fixes this issue.
--- evil/ldso/ldso/ldso.c
+++ good/ldso/ldso/ldso.c
@@ -887,7 +887,8 @@
 		char *preload;
 		int fd;
 		char c, *cp, *cp2;
-
+		struct stat st;
+		
 		if (_dl_stat(LDSO_PRELOAD, &st) || st.st_size == 0) {
 			break;
 		}
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to