This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16988] New: error: conflicting types for âpthread_attr_tâ
- From: "2947868523 at qq dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 26 May 2014 07:17:39 +0000
- Subject: [Bug libc/16988] New: error: conflicting types for âpthread_attr_tâ
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16988
Bug ID: 16988
Summary: error: conflicting types for âpthread_attr_tâ
Product: glibc
Version: 2.18
Status: NEW
Severity: critical
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: 2947868523 at qq dot com
CC: drepper.fsp at gmail dot com
Flags: review+
glibc 2.18.0 + glibc-ports-2.15
configure ok
//-----------------------------------------------------------------------
unset LD_LIBRARY_PATH
unset CFLAGS
BUILD_CC=gcc CC=${TARGET}-gcc LD=${TARGET}-ld AR=${TARGET}-ar
RANLIB=${TARGET}-ranlib CFLAGS="-g -O2 -march=armv4t"
../../src/glibc-2.18/configure --build=i686-pc-linux-gnu --host=arm-linux
--target=$TARGET --prefix=$TARGET_PREFIX --disable-profile --enable-add-ons
--with-headers=$TARGET_PREFIX/include libc_cv_forced_unwind=yes
libc_cv_c_cleanup=yes libc_cv_arm_tls=yes --enable-kernel=2.6.38
--with-binutils=$PREFIX/bin
error when make
//-----------------------------------------------------------------------
In file included from ../signal/signal.h:80:0,
from ../include/signal.h:5,
from ../misc/sys/param.h:28,
from ../include/sys/param.h:1,
from
../ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h:23,
from ../nptl/descr.h:30,
from ../ports/sysdeps/arm/nptl/tls.h:55,
from ../ports/sysdeps/unix/sysv/linux/arm/sysdep.h:31,
from <stdin>:1:
../sysdeps/unix/sysv/linux/bits/siginfo.h:291:30: error: conflicting types for
âpthread_attr_tâ
typedef union pthread_attr_t pthread_attr_t;
^
In file included from ../posix/sys/types.h:270:0,
from ../include/sys/types.h:1,
from ../nptl/descr.h:26,
from ../ports/sysdeps/arm/nptl/tls.h:55,
from ../ports/sysdeps/unix/sysv/linux/arm/sysdep.h:31,
from <stdin>:1:
../ports/sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h:45:3: note:
previous declaration of âpthread_attr_tâ was here
} pthread_attr_t;
^
make[2]: *** [/home/lianhua/arm-linux/4.9.0/build/glibc/tcb-offsets.h] Error 1
make[2]: Leaving directory `/home/lianhua/arm-linux/4.9.0/src/glibc-2.18/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/lianhua/arm-linux/4.9.0/src/glibc-2.18'
make: *** [all] Error 2
--
You are receiving this mail because:
You are on the CC list for the bug.