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
0000685 [buildroot] Architecture Specific major always 02-04-06 00:15 02-12-07 05:48
Reporter mach View Status public  
Assigned To buildroot
Priority normal Resolution fixed  
Status closed   Product Version 0.9.27
Summary 0000685: gcc 3.4.4 with uclibc is build with glibc extensions
Description The last revision of gcc-3.4.4 patch file 100-uclibc-conf.patch builds file unwind-dw2-fde-glibc.c into libgcc (at least on mipsel-linux-uclibc and arm-linux-uclibc, but it should be the same on most architectures). This creates a dependency on dl_iterate_phdr in every C program built (wich can be painfully resolved by linking every program against libdl.a).
This also breaks C++ support (because libstdc++ configure try to build a program without linking in libdl.so).

I would expect this problem to also affect gcc-3.4.5 which has the same patch.
Additional Information In attachment is a patch for ARM and MIPS (tested on mipsel-linux-uclibc only).

Attached Files  101-uclibc-conf.patch [^] (2,118 bytes) 02-04-06 00:15
 101-uclibc-conf.patch.2 [^] (950 bytes) 02-06-06 15:10
 101-uclibc-conf.patch.3 [^] (1,056 bytes) 02-06-06 20:57
 101-uclibc-conf.patch.4 [^] (1,056 bytes) 02-08-06 10:39

- Relationships

- Notes
(0001041)
psm
02-04-06 02:22

we need to move dl_iterate_phdr to libc.so as it is and libc.a in a somewhat
modiffied version, see the dl_iterate_phdr in glibc
 
(0001042)
vapier
02-04-06 11:34

the entire point of the gcc config change was to get rid of arch-specific crap, adding them back in is not an option
 
(0001052)
mach
02-06-06 15:09

It would be a good idea to move dl_iterate_phdr to libc.so but I still don't see why a file that has explicit dependencies on GLIBC in it (there are defines about the glibc version being used and so on) should be included in a GCC built with uclibc.

Does this new patch fit better with the new gcc config change ? I only tested it on mips and it may require few adjustments to work on other architectures.
 
(0001053)
vapier
02-06-06 15:15

yes, that one looks much better :)
 
(0001055)
vapier
02-06-06 20:58

can you try this patch instead ? apply it to the 3.4.4/100-uclibc-conf.patch file
 
(0001067)
mach
02-08-06 10:41

Patch is ok except for a typo:
line 8 is:
+@@ -0,0 +1,4 @@
it should be
+@@ -0,0 +1,5 @@

otherwise the last line of t-linux-uclibc is removed.

I fixed it in your patch and renamed it 101-uclibc-conf.patch.4
 
(0001077)
vapier
02-09-06 21:23

thanks for testing, i've fixed the 3.4.4/3.4.5/4.0.2 patches with your .4 ver
 

- Issue History
Date Modified Username Field Change
02-04-06 00:15 mach New Issue
02-04-06 00:15 mach Status new => assigned
02-04-06 00:15 mach Assigned To  => uClibc
02-04-06 00:15 mach File Added: 101-uclibc-conf.patch
02-04-06 02:22 psm Note Added: 0001041
02-04-06 11:34 vapier Note Added: 0001042
02-06-06 15:09 mach Note Added: 0001052
02-06-06 15:10 mach File Added: 101-uclibc-conf.patch.2
02-06-06 15:15 vapier Note Added: 0001053
02-06-06 20:57 vapier File Added: 101-uclibc-conf.patch.3
02-06-06 20:58 vapier Note Added: 0001055
02-08-06 10:39 mach File Added: 101-uclibc-conf.patch.4
02-08-06 10:41 mach Note Added: 0001067
02-09-06 21:23 vapier Note Added: 0001077
02-09-06 21:23 vapier Status assigned => closed
02-09-06 21:23 vapier Resolution open => fixed
02-12-07 05:48 vapier Status closed => assigned
02-12-07 05:48 vapier Assigned To uClibc => buildroot


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker