-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 18 April 2003 03:44 pm, Kenneth Goodwin wrote: > Trying to port a Rainbow Cryptoswift PC-200 driver from a Kernel > version somewhere > around 6.x/7.X (2.2.14-5.0) to Redhat 8.0 (2.4.18-19.8.0) and getting > massive > error > messages that are either being caused > by missing files in the Rainbow distribution or changes to the driver > interface > between 2.2.14-5.0 and the 8.0 2.4.18-19.8.0 release. > > If you have kernel level expertise esp. with porting from version to > version and recognize the symptoms below, I would appreciate your > insight into the possible > causes and solutions for the root cause of this issue. My gut feeling > is that some > critical include file is not being brought in because of a reorganized > kernel. > gcc -D__KERNEL__ -DMODULE -O -Wall -I/usr/src/linux/include > -I./ROOT/SwiftAPI5.0.2/include -c cspci.c > In file included from /usr/include/linux/fs.h:23, > from /usr/include/linux/capability.h:17, > from /usr/include/linux/binfmts.h:5, > from /usr/include/linux/sched.h:9, > from cspci.c:107: > /usr/include/linux/string.h:8:2: warning: #warning Using kernel > header in userland! > In file included from /usr/include/linux/sched.h:14, > from cspci.c:107: > /usr/include/linux/timex.h:173: field `time' has incomplete type You need to fix the Makefile at the very least (to use a sane include directory). I honestly didn't look much deeper than that into the errors, and probably couldn't help with them anyway. :) Modules should never include /usr/src/linux/include and should instead use /lib/modules/`uname -r`/build/include. The first is the glibc headers, while the latter is the kernel headers. That may not solve all the problems, I don't have the source to try building it myself. It should get you started though. - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+oHM6n/07WoAb/SsRAgpcAKCwNgIxp9lTwdphiTLa7ZzZZ4lonQCgpMI2 T+gqQJ+hJs0XnUhNpKOKw4I= =Iz7f -----END PGP SIGNATURE----- -- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/psyche-list