svn commit: branches/uClibc-nptl/test/dlopen

carmelo at uclibc.org carmelo at uclibc.org
Tue Jul 29 15:38:20 UTC 2008


Author: carmelo
Date: 2008-07-29 08:38:19 -0700 (Tue, 29 Jul 2008)
New Revision: 22986

Log:
Fix build failure:

sh4-linux-uclibc-gcc \
		 -Wall -Wstrict-prototypes  -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -fstrict-aliasing -mprefergot -Os -D_GNU_SOURCE -I../../test    -ml -m4 -nostdinc -I../../install_dir/usr/include -I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/lib/gcc/sh4-linux-uclibc/4.2.1//include-fixed -I/opt/STM/STLinux-2.3/devkit/sh4_uclibc/lib/gcc/sh4-linux-uclibc/4.2.1/include   \
		-fPIC -shared libtest.c -o libtest.so -Wl,-soname,libtest.so \
		 -s -B../../lib -Wl,-rpath,../../lib -Wl,-rpath-link,../../lib -Wl,-rpath,./ -Wl,--dynamic-linker,"/lib"/ld-uClibc.so.0 -Wl,--hash-style=gnu  
libtest.c: In function 'dltest':
libtest.c:8: error: '__pthread_once' undeclared (first use in this function)
libtest.c:8: error: (Each undeclared identifier is reported only once
libtest.c:8: error: for each function it appears in.)

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>


Modified:
   branches/uClibc-nptl/test/dlopen/libtest.c


Changeset:
Modified: branches/uClibc-nptl/test/dlopen/libtest.c
===================================================================
--- branches/uClibc-nptl/test/dlopen/libtest.c	2008-07-29 15:06:15 UTC (rev 22985)
+++ branches/uClibc-nptl/test/dlopen/libtest.c	2008-07-29 15:38:19 UTC (rev 22986)
@@ -2,6 +2,8 @@
 #include <pthread.h>
 #include <stdint.h>
 
+extern int __pthread_once(void);
+
 void dltest(uint32_t **value1, uint32_t **value2);
 void dltest(uint32_t **value1, uint32_t **value2)
 {




More information about the uClibc-cvs mailing list