depmod: Unresolved symbols in .../hostap.o: memcmp

Peter S. Mazinger ps.m at gmx.net
Wed Jan 11 20:11:41 UTC 2006


On Wed, 11 Jan 2006, Doyle, Patrick wrote:

> Once again, I am looking for pointers for where to look for the source of a
> problem.
> 
> I am compiling a buildroot environment for a Soekris net4521 target with the
> "Generic wireless access point" and "Generic firewall" options turned on.
> 
> When I build this, it fails when running depmod.  I am at a loss to
> understand why depmod would complain about not being able to find
> 'memcmp()', when it seems as though it found 'memcpy()', 'memset()', etc...
> fine.  What's more confusing is that System.map lists both memcpy and
> memcmp.
> 
> Could I have a broken depmod on my build system (a SuSE 9.1 box)?
> 
> Is there something obvious I'm missing?
> 
> --wpd

Are you using gcc-3.4.x to build the kernel-2.4, applied the 
OPTIMIZE_FOR_SIZE patch to gcc and you enabled the option using -Os 
instead of -O2? You need a patch (used in gentoo for ex) else memcmp gets 
optimized away.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list