Ehlo, this happen because it's using headers from kernel-headers-xxxx.rpm ... and you should use includes from, as you correctly did, /usr/src/linux/include .... look at the makefile... cheers
Fremen Sim Virus writes: >> Ehlo, >> >> don't forget -fno-stack-protector.... :) >> cheers >> >> Fremen > > This is my sequence for TSL2.2: > > # uname -a > Linux intpoint.internetgs.it 2.4.30-3tr #1 Thu Apr 28 15:55:22 CEST > 2005 i686 i686 i386 GNU/Linux > > > # ls -l /usr/src/ > total 8 > drwxr-xr-x 17 root root 4096 Jun 9 15:57 kernel-source-2.4.30-3tr/ > lrwxrwxrwx 1 root root 24 Jun 9 11:28 linux -> kernel-source-2.4.30-3tr/ > drwxr-xr-x 7 root root 4096 Jun 9 11:58 trustix/ > > > # ls -l > > -rw------- 1 root root 1935 Apr 8 23:50 5701rls.c > -rw------- 1 root root 7954 Apr 8 23:50 5701rls.h > -rw------- 1 root root 4629 Apr 8 23:50 Makefile > -rw------- 1 root root 14209 Apr 8 23:50 autoneg.c > -rw------- 1 root root 14308 Apr 8 23:50 autoneg.h > -rw------- 1 root root 26784 Apr 8 23:50 b57diag.c > -rw------- 1 root root 15681 Apr 8 23:50 b57proc.c > -rw------- 1 root root 144569 Apr 8 23:50 b57um.c > -rw------- 1 root root 17093 Apr 8 23:50 bcm5700.4 > -rw------- 1 root root 2486 Apr 8 23:50 bits.h > -rw------- 1 root root 13411 Apr 8 23:50 fw_lso05.h > -rw------- 1 root root 24994 Apr 8 23:50 fw_stkoffld.h > -rw------- 1 root root 19688 Apr 8 23:50 lm.h > -rw------- 1 root root 15035 Apr 8 23:50 mm.h > -rw------- 1 root root 9085 Apr 8 23:50 nicext.h > -rw------- 1 root root 11780 Apr 8 23:50 queue.h > -rw------- 1 root root 3988 Apr 8 23:50 tcp_seg.c > -rw------- 1 root root 307525 Apr 8 23:50 tigon3.c > -rw------- 1 root root 138052 Apr 8 23:50 tigon3.h > > > # grep "2.4.27-" * > # > > # make > > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o b57um.o b57um.c > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o b57proc.o > b57proc.c > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o tigon3.o tigon3.c > tigon3.c: In function `LM_InitializeAdapter': > tigon3.c:3702: warning: dereferencing type-punned pointer will break > strict-aliasing rules > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o autoneg.o > autoneg.c > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o 5701rls.o > 5701rls.c > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o tcp_seg.o > tcp_seg.c > gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256 > -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT > -DINCLUDE_5701_AX_FIX=1 -Wall -Wstrict-prototypes > -I/lib/modules/2.4.30-3tr/build/include -O2 -c -o b57diag.o > b57diag.c > ld -i b57um.o b57proc.o tigon3.o autoneg.o 5701rls.o tcp_seg.o > b57diag.o -o bcm5700.o > > > # insmod bcm5700.o > > bcm5700.o: kernel-module version mismatch > bcm5700.o was compiled for kernel version 2.4.27-4tr > while this kernel is version 2.4.30-3tr. > > > So, where does it take 2.4.27-4tr ? > > Thanks! :) > _______________________________________________ > tsl-discuss mailing list > [email protected] > http://lists.trustix.org/mailman/listinfo/tsl-discuss > _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
