[uClibc-cvs] [uClibc 0000370]: Build fails due to symbol aliasing on undefined symbol - 'adjtimex'

bugs at busybox.net bugs at busybox.net
Fri Aug 26 07:06:39 UTC 2005


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=370 
====================================================================== 
Reported By:                jswensen
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   370
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             08-08-2005 10:57 PDT
Last Modified:              08-26-2005 00:06 PDT
====================================================================== 
Summary:                    Build fails due to symbol aliasing on undefined
symbol - 'adjtimex'
Description: 
I saw this mentioned in another bug report, but they posted it as a note
after the bug was closed, so I thought I would try wake it up by posting
it as its own bug.  

We are trying to build a toolchain for PowerPC under cygwin and get this
adjtimex error.  We are using the GCC 4.0.1 compiler generated by
buildroot


====================================================================== 

---------------------------------------------------------------------- 
 jswensen - 08-08-05 15:48  
---------------------------------------------------------------------- 
FYI, I just tried building the toolchain with the same buildroot config
under Linux and the same error occurs. 

---------------------------------------------------------------------- 
 asierllano - 08-22-05 00:18  
---------------------------------------------------------------------- 
This problem is gcc-4 specific because I have the same problem with
gcc-4.0.0 & gcc-4.0.1, while I successfully build with gcc-3.3 & gcc-3.4.

The problem must be related to weak references, because if you comment the
lines of the previous error, the same error seems to happen in every weak
reference of the code.

The same problem still remains in version 0.9.28.

(Maybe the summary should be updated to show that the problem is related
to:
gcc-4 + weak references).
(Maybe the version should updated to 0.9.28) 

---------------------------------------------------------------------- 
 asierllano - 08-26-05 00:06  
---------------------------------------------------------------------- 
I've managed to build the latest version of uclibc with gcc-4.0.1.
I've developed serveral patches that I explain here:

uclibc-ppc-syscall.patch:
-------------------------
This patch modifies the syscall code for the powerpc, and leaves it like
it was previosly (older version of the uclibc repository). It uses the
syscall code from the kernel.
This way it compiles properly with gcc-4. The problem was that the
previous code defined the functions in assembly code, so that the compiler
didn't think the functions had a definition so that the next weak aliases
to those functions didn't work because they were not defined.
(Previous version of gcc compilers work when definin weak aliases to
undefined functions).
Maybe the syscall code could be reworked again, but meanwhile I left with
the kernel default syscall code, that was the original aproach of uclibc.

uclibc-ppc-ioctl-errno.patch
----------------------------
This patch solves easily an error in the ioctl code for the PPC because it
uses the "errno" variable without including "errno.h".

uclibc-ppc-uint128.patch
------------------------
The gcc compiler has deprecated the type __uint128 for 32-bits platforms.
Due to the fact that this type was introduced in gcc-3.1 it is better to
drop its use. (glibc has the same problem and uses this same solution). 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-08-05 10:57  jswensen       New Issue                                    
08-08-05 10:57  jswensen       Status                   new => assigned     
08-08-05 10:57  jswensen       Assigned To               => uClibc          
08-08-05 15:48  jswensen       Note Added: 0000396                          
08-19-05 04:59  asierllano     Issue Monitored: asierllano                    
08-22-05 00:18  asierllano     Note Added: 0000428                          
08-26-05 00:06  asierllano     Note Added: 0000436                          
======================================================================




More information about the uClibc-cvs mailing list