[buildroot 0001256]: build fails for buildroot selected for i386/i386 pthread.c compile error
bugs at busybox.net
bugs at busybox.net
Mon Mar 19 09:50:53 UTC 2007
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=1256
======================================================================
Reported By: douglas_goodall
Assigned To: uClibc
======================================================================
Project: buildroot
Issue ID: 1256
Category: Architecture Specific
Reproducibility: have not tried
Severity: block
Priority: normal
Status: closed
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 03-03-2007 21:05 PST
Last Modified: 03-19-2007 02:50 PDT
======================================================================
Summary: 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 at ubuntu-i386:~/buildroot$
======================================================================
----------------------------------------------------------------------
bernhardf - 03-07-07 09:23
----------------------------------------------------------------------
not a buildroot issue but a uclibc one. Assigning accordingly
----------------------------------------------------------------------
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_goodallNew Issue
03-03-07 21:05 douglas_goodallStatus new => assigned
03-03-07 21:05 douglas_goodallAssigned 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
======================================================================
More information about the uClibc-cvs
mailing list