<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi all,<br></div>    I tried to build the eglibc. I downloaded the three files from here <a href="https://launchpad.net/ubuntu/raring/+source/eglibc.Then">https://launchpad.net/ubuntu/raring/+source/eglibc.Then</a>,<br>
$ dpkg-source -x eglibc_2.17-0ubuntu5.dsc<br>$ cd eglibc-2.17/<br>$ make -f debian/rules patch <br></div>$ cd ../<br></div>$ mkdir eglibc-build<br></div>$ cd eglibc-build<br>$ ../eglibc-2.17/configure --prefix=$(pwd)<br></div>
$ make -j8<br><br></div>Now the errors occured.<br><br>/home/zyh/Downloads/eglibc-build/libpthread/libc_pthread_init.os <br>forward.c: In function ‘pthread_attr_init’:<br>forward.c:44:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_attr_init’<br>
forward.c:44:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_attr_init’<br>forward.c: In function ‘pthread_cond_broadcast’:<br>forward.c:79:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_broadcast’<br>
forward.c:79:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_broadcast’<br>forward.c: In function ‘pthread_cond_destroy’:<br>forward.c:80:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_destroy’<br>
forward.c:80:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_destroy’<br>forward.c: In function ‘pthread_cond_init’:<br>forward.c:81:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_init’<br>
forward.c:81:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_init’<br>forward.c: In function ‘pthread_cond_signal’:<br>forward.c:84:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_signal’<br>
forward.c:84:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_signal’<br>forward.c: In function ‘pthread_cond_wait’:<br>forward.c:85:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_wait’<br>
forward.c:85:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_wait’<br>forward.c: In function ‘pthread_cond_timedwait’:<br>forward.c:87:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_timedwait’<br>
forward.c:87:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_cond_timedwait’<br>forward.c: In function ‘pthread_exit’:<br>forward.c:96:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_exit’<br>
forward.c:96:1: error: ‘struct pthread_functions’ has no member named ‘ptr_pthread_exit’<br>forward.c:96:1: warning: function declared ‘noreturn’ has a ‘return’ statement [enabled by default]<br>forward.c:96:1: warning: ‘return’ with a value, in function returning void [enabled by default]<br>
forward.c: In function ‘__pthread_get_cleanup_stack’:<br>forward.c:127:1: error: ‘struct pthread_functions’ has no member named ‘ptr___pthread_get_cleanup_stack’<br>forward.c:127:1: error: ‘struct pthread_functions’ has no member named ‘ptr___pthread_get_cleanup_stack’<br>
forward.c:127:1: warning: control reaches end of non-void function [-Wreturn-type]<br>forward.c: In function ‘pthread_exit’:<br>forward.c:96:1: warning: ‘noreturn’ function does return [enabled by default]<br>forward.c: In function ‘pthread_cond_timedwait’:<br>
forward.c:87:1: warning: control reaches end of non-void function [-Wreturn-type]<br>forward.c: In function ‘pthread_cond_wait’:<br>forward.c:85:1: warning: control reaches end of non-void function [-Wreturn-type]<br>forward.c: In function ‘pthread_cond_signal’:<br>
forward.c:84:1: warning: control reaches end of non-void function [-Wreturn-type]<br>forward.c: In function ‘pthread_cond_init’:<br>forward.c:81:1: warning: control reaches end of non-void function [-Wreturn-type]<br>forward.c: In function ‘pthread_cond_destroy’:<br>
forward.c:80:1: warning: control reaches end of non-void function [-Wreturn-type]<br>forward.c: In function ‘pthread_cond_broadcast’:<br>forward.c:79:1: warning: control reaches end of non-void function [-Wreturn-type]<br>
forward.c: In function ‘pthread_attr_init’:<br>forward.c:44:1: warning: control reaches end of non-void function [-Wreturn-type]<br>make[2]: *** [/home/zyh/Downloads/eglibc-build/libpthread/forward.os] Error 1<br>make[2]: *** Waiting for unfinished jobs....<br>
make[2]: Leaving directory `/home/zyh/Downloads/eglibc-2.17/libpthread'<br>make[1]: *** [libpthread/subdir_lib] Error 2<br>make[1]: Leaving directory `/home/zyh/Downloads/eglibc-2.17'<br>make: *** [all] Error 2<br>
<br></div>I looked at the /libpthread/forward.c and found that the line<br></div>"#include <pthread-functions.h>"<br></div>will include the file "/nptl/sysdeps/pthread/pthread-functions.h" instead of "/libpthread/pthread/pthread-functions.h".<br>
</div>I tried to let it include the right file but it won't work because of my poor knowledge of the patch and the whole eglibc.<br><br></div>Is it  a bug or my wrong operation?<br><br></div>