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
0000778 [uClibc] Architecture Specific minor always 03-08-06 06:24 10-06-06 23:02
Reporter blurgk View Status public  
Assigned To uClibc
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000778: Error during compilation of readelf in uClibc using buildroot on cygwin host
Description Hello, I am using buildroot under cygwin and I get an error during the compilation of readelf in uclibc about conflicting elf defines:

gcc ../utils/readelf.c -o ../utils/readelf.host -Wl,-s -O2 -Wall -include ../include/elf.h
In file included from /usr/include/elf.h:18,
                 from ../utils/readelf.c:41:
/usr/include/sys/elf32.h:38: error: conflicting types for 'Elf32_Addr'
./../include/elf.h:48: error: previous declaration of 'Elf32_Addr' was here
/usr/include/sys/elf32.h:40: error: conflicting types for 'Elf32_Off'
./../include/elf.h:52: error: previous declaration of 'Elf32_Off' was here
/usr/include/sys/elf32.h:42: error: conflicting types for 'Elf32_Word'
   ...
../utils/readelf.c:373: warning: implicit declaration of function `list_needed_libraries'
make[1]: *** [../utils/readelf.host] Error 1
make: *** [/usr/src/buildroot/build_arm_nofpu/staging_dir/lib/libc.a] Error 2

In addition, running make after this error doesn't retry to build readelf.
Attached is my buildroot configuration.
Additional Information
Attached Files  .config [^] (8,514 bytes) 03-08-06 06:24

- Relationships

- Notes
(0001305)
blurgk
04-18-06 02:32

The solution to this pronlem is in this bug report, which has been closed:
http://bugs.busybox.net/view.php?id=816 [^]
 
(0001306)
blurgk
04-18-06 02:55

Ignore my previous message, the error is still present.
 
(0001686)
vapier
10-06-06 23:02

although the real solution is to stop using a craptastic environment like cygwin, we dont actually need to include elf.h in these files as the makefile will handle the proper elf.h for us
 

- Issue History
Date Modified Username Field Change
03-08-06 06:24 blurgk New Issue
03-08-06 06:24 blurgk Status new => assigned
03-08-06 06:24 blurgk Assigned To  => uClibc
03-08-06 06:24 blurgk File Added: .config
04-18-06 02:32 blurgk Note Added: 0001305
04-18-06 02:55 blurgk Note Added: 0001306
04-22-06 12:27 vapier Summary Error during compilation of readelf in uClibc using buildroot => Error during compilation of readelf in uClibc using buildroot on cygwin host
04-22-06 12:27 vapier Description Updated
10-06-06 23:02 vapier Note Added: 0001686
10-06-06 23:02 vapier Status assigned => closed
10-06-06 23:02 vapier Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker