BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001256 [buildroot] Architecture Specific block have not tried 03-03-07 21:05 03-19-07 02:50
Reporter douglas_goodall View Status public  
Assigned To uClibc
Priority normal Resolution fixed  
Status closed   Product Version 0.9.27
Summary 0001256: build fails for buildroot selected for i386/i386 pthread.c compile error
Description   CC libpthread/linuxthreads.old/pthread.oS
  STRIP -x -R .note -R .comment libpthread/linuxthreads.old/libpthread_so.a
  AR cr libpthread/linuxthreads.old/libpthread_so.a
  LD libpthread-0.9.29.so
libpthread/linuxthreads.old/libpthread_so.a(pthread.oS): In function `__pthread_initialize_minimal':
pthread.c:(.text+0x13f): undefined reference to `_errno'
pthread.c:(.text+0x148): undefined reference to `_h_errno'
make[1]: *** [lib/libpthread.so] Error 1
make[1]: Leaving directory `/home/doug/buildroot/toolchain_build_i386/uClibc'
make: *** [/home/doug/buildroot/toolchain_build_i386/uClibc/lib/libc.a] Error 2
doug@ubuntu-i386:~/buildroot$

Additional Information
Attached Files

- Relationships

- Notes
(0002215)
bernhardf
03-07-07 09:23

not a buildroot issue but a uclibc one. Assigning accordingly
 
(0002221)
ynglingatal
03-08-07 02:22

I had the same error yesterday with the snapshot of uClibc and gcc 4.1.1 as well
as 3.3.5 from buildroot. When changing to uClibc 0.9.28.1 the problem naturally
disappears. The problem seems to be that the uClibc-snapshot has two unconditional

"extern int _errno; extern int _h_errno;"

in libpthread/linuxthreads/pthread.c

whereas uClibc 0.9.28.1 uses these under conditional compilation. Since these
two variables were never declared properly, without 'extern', in another
source file, the error arose.
 

- Issue History
Date Modified Username Field Change
03-03-07 21:05 douglas_goodall New Issue
03-03-07 21:05 douglas_goodall Status new => assigned
03-03-07 21:05 douglas_goodall Assigned To  => buildroot
03-07-07 09:23 bernhardf Note Added: 0002215
03-07-07 09:23 bernhardf Assigned To buildroot => uClibc
03-08-07 02:22 ynglingatal Note Added: 0002221
03-19-07 02:50 vapier Status assigned => closed
03-19-07 02:50 vapier Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker