Messages in this thread | | | Date | Tue, 22 Jan 2002 12:29:00 +0100 | From | Karsten Keil <> | Subject | Re: missing memset in divas and eicon in 2.2.20 |
| |
On Tue, Jan 22, 2002 at 10:19:15AM +0100, Armin Schindler wrote: > Did you use plain 2.2.20 ? > I cannot reproduce this problem here, can you please send me your > kernel config. >
It may be also a compiler related problem, so the version of the compiler is also important. Some newer gcc don't inline memcpy/memset if complete structures or arrays are assigned. For example:
char x[4] = {0,};
result in a memset, if here is no define of memset in any header it will give an undefined symbol. Earlier gcc use buildin inline versions of memset for this. Its a long discussion with gcc people, what is is the correct way ( I don't know the end of this discussion).
> Thanx, > Armin > > On Tue, 22 Jan 2002, Peter T. Breuer wrote: > > betty:/usr/local/src/linux-2.2.20% sudo depmod -ae -F System.map 2.2.20-SMP > > depmod: *** Unresolved symbols in > > /lib/modules/2.2.20-SMP/misc/divas.o depmod: memset > > depmod: *** Unresolved symbols in > > /lib/modules/2.2.20-SMP/misc/eicon.o depmod: memset > > > > Both compiled as modules, SMP kernel, i686 compile. No, I didn't make a > > patch - I was too busy fighting with sct's patch for ext3, which is also > > slightly toasted in the deendencies department when compiled as a > > module. > > > > I don't know why these are missing memset. Of course memset is in the > > kernel and nobody else misses it one bit! Yes, they do include at least > > some header that incorporates memset (from linux/strings.h? Or in > > asm-i386?), because I tried copying an inline memset.h definition into > > their header files, and it produced a typical compiler error ("error > > before '?' .." sic) from a memset macro clash. One of the component > > sources of divas.o and eicon.o must be missing an #include > > <asm/strings.h>. > > > > Your mission is to find and eliminate that missing include. > > > > Good luck. > > > > > > --------------------------------------------------------------------- > > Peter T. Breuer MA CASM PhD (Ing.), Prof. Asoc. > > Area de Ingenieria Telematica E-mail: ptb@it.uc3m.es > > Dpto. Ingenieria Tel: +34 (9)1 624 87 81 > > Universidad Carlos III de Madrid Fax: +34 (9)1 624 8749/9430 > > Butarque 15, Leganes/Madrid URL: http://www.it.uc3m.es/~ptb > > E-28911 Spain Mob: +34 69 666 7835 > > - > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Please read the FAQ at http://www.tux.org/lkml/ > > > > > - - - - - - - - - - - - > Cytronics & Melware > Weinbergstrasse 39 > 55296 Loerzweiler / Germany > Tel: +49 6138 98110-0 > Fax: +49 6138 98110-9 > mailto:info@melware.de > http://www.melware.de > - - - - - - - - - - - - >
-- Karsten Keil SuSE Labs ISDN development - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |