[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compile error with a source package



On Fri, Nov 13, 1998 at 09:59:58AM -0500, Paul McDermott wrote:

 : cc -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -D__KERNEL__ -DMODULE -DCONFIG_MODVERSIONS -DKERNEL_VERSION=\"2.1.125\"   -c hpscan.c -o hpscan.o
 : hpscan.c: In function `hpsj_detect':
 : hpscan.c:127: warning: suggest parentheses around comparison in operand of &
 : hpscan.c: At top level:
 : hpscan.c:511: redefinition of `kernel_version'
 : /usr/include/linux/module.h:95: `kernel_version' previously defined here
 : make: *** [hpscan.o] Error 1

Try to compile with -D__NO_VERSION__ (and of course all the other flags
mentioned above). If that doesn't work, comment out the redefinition in
hpscan.c.

Good luck,
 -Remco


Reply to: