* [Buildroot] [Bug 83] New: liblockfile fails to compile due to eaccess redefinition
@ 2009-02-02 20:00 bugzilla at busybox.net
2009-02-02 21:36 ` [Buildroot] [Bug 83] " bugzilla at busybox.net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2009-02-02 20:00 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=83
Host: pc-linux
Target: arm-linux-gnueabi (gcc 4.2.2)
Build: 2009.02-rc3
Summary: liblockfile fails to compile due to eaccess redefinition
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: hunter.cobbs at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
When compiling buildroot liblockfile fails compiling dotlockfile.c due to
redefinition of eaccess in 4.2 gcc compilers.
------------------- compiler snip -----------------
/opt/eldk/usr/bin/arm-linux-gcc -Os
-I/home/hcobbs/dev/src/buildroot-2009.02-rc3/ucm_build_arm/staging_dir/include
-I/home/hcobbs/dev/src/buildroot-2009.02-rc3/ucm_build_arm/staging_dir/usr/include
-I/opt/eldk/usr/arm-linux/include --sysroot
/home/hcobbs/dev/src/buildroot-2009.02-rc3/ucm_build_arm/staging_dir/ -g -O2
-Wall -D_GNU_SOURCE -fPIC -D_REENTRANT -I. -c -o dotlockfile.o dotlockfile.c
dotlockfile.c:45: error: conflicting types for 'eaccess'
/opt/eldk/usr/../arm/usr/include/unistd.h:268: error: previous declaration of
'eaccess' was here
make[1]: *** [dotlockfile.o] Error 1
make[1]: Leaving directory
`/home/hcobbs/dev/src/buildroot-2009.02-rc3/ucm_build_arm/liblockfile-1.06.1'
make: ***
[/home/hcobbs/dev/src/buildroot-2009.02-rc3/ucm_build_arm/staging_dir/lib/liblockfile.so.1.0]
Error 2
----------------- end compiler snip -----------------
==================== compiler version ==================
Reading specs from /opt/eldk/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/specs
Target: arm-linux-gnueabi
Configured with:
/opt/eldk/build/arm-2008-11-24/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/gcc-4.2.2/configure
--target=arm-linux-gnueabi --host=i686-host_pc-linux-gnu
--prefix=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi
--disable-hosted-libstdcxx
--with-headers=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi/include
--with-local-prefix=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit
--enable-languages=c,c++,java --enable-shared --enable-c99 --enable-long-long
--without-x
Thread model: posix
gcc version 4.2.2
================== end compiler version =================
Altering the liblockfile configure script the following way eliminates the
problem after a make clean:
-- orig --
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
fi
-- patched --
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Wall"
fi
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 83] liblockfile fails to compile due to eaccess redefinition
2009-02-02 20:00 [Buildroot] [Bug 83] New: liblockfile fails to compile due to eaccess redefinition bugzilla at busybox.net
@ 2009-02-02 21:36 ` bugzilla at busybox.net
2009-02-02 22:21 ` bugzilla at busybox.net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2009-02-02 21:36 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=83
Peter Korsgaard <jacmet@uclibc.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jacmet at uclibc.org
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org> 2009-02-02 21:36:22 UTC ---
That seems to be a bug in your toolchain then, it builds with the standard
toolchain in BR (4.3.2) for me.
What's the reason for using a crosstool toolchain instead?
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 83] liblockfile fails to compile due to eaccess redefinition
2009-02-02 20:00 [Buildroot] [Bug 83] New: liblockfile fails to compile due to eaccess redefinition bugzilla at busybox.net
2009-02-02 21:36 ` [Buildroot] [Bug 83] " bugzilla at busybox.net
@ 2009-02-02 22:21 ` bugzilla at busybox.net
2009-07-06 23:26 ` bugzilla at busybox.net
2009-07-07 21:26 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2009-02-02 22:21 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=83
--- Comment #2 from Hunter Cobbs <hunter.cobbs@gmail.com> 2009-02-02 22:21:46 UTC ---
I use the current toolchain when compiling my kernel. I was simply trying to
maintain the same toolchain across all builds, but it looks like that may not
be the best track to take.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 83] liblockfile fails to compile due to eaccess redefinition
2009-02-02 20:00 [Buildroot] [Bug 83] New: liblockfile fails to compile due to eaccess redefinition bugzilla at busybox.net
2009-02-02 21:36 ` [Buildroot] [Bug 83] " bugzilla at busybox.net
2009-02-02 22:21 ` bugzilla at busybox.net
@ 2009-07-06 23:26 ` bugzilla at busybox.net
2009-07-07 21:26 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2009-07-06 23:26 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=83
Lionel Landwerlin <lionel.landwerlin@openwide.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #3 from Lionel Landwerlin <lionel.landwerlin@openwide.fr> 2009-07-06 23:26:29 UTC ---
(In reply to comment #2)
> I use the current toolchain when compiling my kernel. I was simply trying to
> maintain the same toolchain across all builds, but it looks like that may not
> be the best track to take.
>
It's a problem with new glibc which added the eaccess function in unistd.h
under the _GNU_SOURCE flag.
It's been fixed in later verions of liblockfile :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392779.
I just compiled a buildroot with liblockfile version 1.08. Please update the
version in buildroot.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [Bug 83] liblockfile fails to compile due to eaccess redefinition
2009-02-02 20:00 [Buildroot] [Bug 83] New: liblockfile fails to compile due to eaccess redefinition bugzilla at busybox.net
` (2 preceding siblings ...)
2009-07-06 23:26 ` bugzilla at busybox.net
@ 2009-07-07 21:26 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2009-07-07 21:26 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=83
Peter Korsgaard <jacmet@uclibc.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Peter Korsgaard <jacmet@uclibc.org> 2009-07-07 21:26:28 UTC ---
updated to v1.08 in git
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-07-07 21:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 20:00 [Buildroot] [Bug 83] New: liblockfile fails to compile due to eaccess redefinition bugzilla at busybox.net
2009-02-02 21:36 ` [Buildroot] [Bug 83] " bugzilla at busybox.net
2009-02-02 22:21 ` bugzilla at busybox.net
2009-07-06 23:26 ` bugzilla at busybox.net
2009-07-07 21:26 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox