Re: [Lnx-bbc-cvs] Error building an LNX-BBC image at Wed Oct 1507:21:22 CDT 2003, build began at Oct 15 at 02:00

"jared jennings" <[email protected]> Sat, 22 Jan 2005 02:43:06 -0500
Newsgroups gmane.linux.bbc.devel
Message-ID <[email protected]>
On Fri, 14 Jan 2005 08:42:13 +0100, "Edwin Boonenburg"
<[email protected]> said:
> 
> I have problem with compiling iproute2 for arm-elf cross-compiler.
> 
> .../src/linux/include/linux/inetdevice.h: In function `inet_mask_len':
> .../src/linux/include/linux/inetdevice.h:165: warning: implicit
> declaration
> of function `ffz'
> 
> I found at the "/usr/local/arm-elf/sys-include-uClibc-0.99" the file
> asm/bitops.h where the function is declared.

1. you need to be sure this file is getting included. 
2. if the function is defined inside a #if, you need to make sure that
the right branch of the #if is happening

if it is a normal function definition, not a #define macro, invoke gcc
-E on the relevant source file, with all the compiler flags shown on the
command that failed, and grep the output for a definition of ffz. (gcc
-E does all preprocessing, expands #defines, includes the files
specified by #includes; its output has no preprocessor directives at
all.)

> I do not see a problem. ( But I am not so an expert, i this kind of stuff
> When looking into the file I found a doubled declaration of the
> 'external'
> function... so I removed one. I looks now like a newer arm-libc version
> And still I got the same error.

doubtless it is defined in another include file somewhere in the morass.
what has worked for me to find problems in .h's is using gcc -E (as
above) and tracing #includes. there must be some tool for this stuff but
i haven't found it.