- David Belius
strcmp might be defined as inline function. Use at least
gcc -O when compiling your driver to make the inline functions
work.
Peter
Have you looked at linux/string.h? It's certainly prototyped in the
mine:
extern int strcmp(const char *,const char *);
Perhaps you are actually using the right file?
Yes, you do need -O or -O2 due to inlines, but if that were the problem
it wouldn't show up until link time (i.e. insmod time), I believe.
My theory is that you're not using the right kernel header files. You
need to use "-I/usr/src/linux/include" or wherever your kernel source
tree resides. Once upon a time you could omit that flag because
/usr/include had symlinks for the necessary directories, but if you use
libc6 you may well have real directories there instead, populated by
glibc's version of the kernel headers.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
> Yes, you do need -O or -O2 due to inlines, but if that were the problem
> it wouldn't show up until link time (i.e. insmod time), I believe.
Thank you for correction. I always think people should read the question
before they answer. Apparently 4 lines were to much for me.
Sorry,
Peter
[better answer snipped]