[buildroot 0000685]: gcc 3.4.4 with uclibc is build with glibc extensions

bugs at busybox.net bugs at busybox.net
Tue Feb 7 04:58:06 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=685 
====================================================================== 
Reported By:                mach
Assigned To:                uClibc
====================================================================== 
Project:                    buildroot
Issue ID:                   685
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-04-2006 00:15 PST
Last Modified:              02-06-2006 20:58 PST
====================================================================== 
Summary:                    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.
====================================================================== 

---------------------------------------------------------------------- 
 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 

---------------------------------------------------------------------- 
 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 

---------------------------------------------------------------------- 
 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. 

---------------------------------------------------------------------- 
 vapier - 02-06-06 15:15  
---------------------------------------------------------------------- 
yes, that one looks much better :) 

---------------------------------------------------------------------- 
 vapier - 02-06-06 20:58  
---------------------------------------------------------------------- 
can you try this patch instead ?  apply it to the
3.4.4/100-uclibc-conf.patch file 

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                          
======================================================================




More information about the uClibc-cvs mailing list