[uClibc] first try of gcc 4.0.0 compiling for ppc

Joakim Tjernlund joakim.tjernlund at lumentis.se
Fri Jun 10 13:39:08 UTC 2005

> >IIRC this was clearified in the ISO C99 standard to which such a new GCC
> >should default to. Maybe that warning/error goes away with -std=c90 or
> >something like that. Though, instead of working around you may just fix
> >the issue to comply with current standards :)
> >
> >  
> >
> OK
> next problem with gcc 4.0.0 is :
> /opt/uclibc/ppc_4_0_0/build_powerpc_nofpu/staging_dir/bin/powerpc-linux-uclibc-gcc  
> -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing   
> -msoft-float  -fno-builtin -nostdinc -D_LIBC -I../../../../include -I.  
> -Os -funit-at-a-time   -isystem 
> /opt/uclibc/ppc_4_0_0/build_powerpc_nofpu/staging_dir/lib/gcc/powerpc-linux-uclibc/4.0.0/include 
> -DNDEBUG -fpic -c adjtimex.c -o adjtimex.o
> adjtimex.c:14: error: '__adjtimex' aliased to undefined symbol 'adjtimex'
> adjtimex.c:15: error: 'ntp_adjtime' aliased to undefined symbol 'adjtimex'

I think you need to move the alias to AFTER the function definition.
Send a patch it that works.


More information about the uClibc mailing list