[uClibc] Linker error

Rudolf Ladyzhenskii Rudolf.ladyzhenskii at opennw.com
Mon Aug 9 06:29:30 UTC 2004

Hi, all

I am trying to compile an application that contains atoi() call. I am getting a linker error:

: undefined reference to `__strtol_internal'

It seems that /usr/include/stdlib.h was used instead of uClibc header. This expans atoi() to eventually call __strtol_internal(), while uClibc does not. 

I though that gcc compiler built by using 'buildroot' should look for uClibc includes by default, not system includes. So, what do I do? Do I simply append gcc flags with path to uClibc includes or there is another way? Where does buildroot places uClibc headers by default? Is default include path built into the compiler?

I have built latest 'buildroot' and I am tring to append another package to it. I am cross-compiling the code.
CC variable is not set and right compiler gets called. 
I have looked through FAQ, but did not find info on headers there.

Thanks a lot,
Rudolf Ladyzhenskii
Senior Design Engineer
Open Networks Pty. Ltd.
Level 26, 35 Collins Street,
Melbourne VIC 3000
e-mail: rudolfl.ladyzhenskii at opennw.com
phone: +61 3 9656 5107
fax:     +61 3 9656 5122
web: www.opennw.com

More information about the uClibc mailing list