ECR 23184: Native PPC Toolchain build failing (atoi missing)

State: Pending Review Status: Duplicate Severity: Medium Fixed:


###### adefaria: 24 Jan 2005 10:50:45 (-00:05)

I am unable to build the toolchain natively on t-mcpn765-1 (PPC). Note 
I am trying to use XFree86 however the problem seems to be with atoi:

gcc  tkAppInit.o -L/mnt/toolchain/3.2.2/010405/build-powerpc/tk/unix 
-ltk8.0 -L/mnt/toolchain/3.2.2/010405/build-powerpc/tcl/unix -ltcl8
.0  -L/usr/X11R6/lib -lX11   -lc \
       -o wish
/usr/X11R6/lib/libX11.a(ConnDis.o): In function 
`_X11TransConnectDisplay':
ConnDis.o(.text+0x2ac): undefined reference to `atoi'
ConnDis.o(.text+0x344): undefined reference to `atoi'
/usr/X11R6/lib/libX11.a(lcGeneric.o): In function 
`read_charset_define':
lcGeneric.o(.text+0x8cc): undefined reference to `atoi'
lcGeneric.o(.text+0x928): undefined reference to `atoi'
/usr/X11R6/lib/libX11.a(lcGeneric.o): In function 
`read_segmentconversion':
lcGeneric.o(.text+0xd7c): undefined reference to `atoi'
/usr/X11R6/lib/libX11.a(lcGeneric.o)(.text+0x1324): more undefined 
references to `atoi' follow
collect2: ld returned 1 exit status
make[3]: *** [wish] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-tk] Error 2
make: *** [stamp-all-powerpc] Error 2

I spoke with Adam about this and he said the problem is in libc.a, 
which lacks an atoi:

# nm /lib/libc.a | grep atoi
catoi.as.o:
00000038 T catoi
00000124 t regatoi

Adam also said that Steve might know if there was a recent change.
-- 
Andrew DeFaria <adefaria@lnxw.com>
Build & Release
QA
LynuxWorks



###### oleg (quintus): 14 Feb 2005 05:45:20

This ECR is a duplicate of ECR 22979.