[openib-general] 2.4 compilation problems...

mvonwyl at bluewin.ch mvonwyl at bluewin.ch
Wed Sep 15 07:42:06 PDT 2004


Good afternoon,

I'm trying to compile à 2.4.20 kernel using the linux-2.4.20-8 patch and
the infiniband-kernel-24-2004-03-17 package...

After using the patch, I must just correct one error in /drivers/Makefile
(putting infiniband at the end of the line 11...)

After a make dep and a make bzImage without any problems I get this error
with the make modules :

gcc -D__KERNEL__ -I/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include
/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/include/linux/modversions.h
-I/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/include
-DIN_TREE_BUILD -DTS_HOST_DRIVER -D_NO_DATA_PATH_TRACE -nostdinc -iwithprefix
include -DKBUILD_BASENAME=services_export  -DEXPORT_SYMTAB -c services_export.c
services_export.c:81: `rb_replace_node' undeclared here (not in a function)
services_export.c:81: initializer element is not constant
services_export.c:81: (near initialization for `__ksymtab_rb_replace_node.value')
make[3]: *** [services_export.o] Erreur 1
make[3]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/core'
make[2]: *** [_modsubdir_core] Erreur 2
make[2]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband'
make[1]: *** [_modsubdir_infiniband] Erreur 2
make[1]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers'
make: *** [_mod_drivers] Erreur 2

So I modified the service_export.c file :

#if !defined(TS_KERNEL_2_6)
//EXPORT_SYMBOL(rb_replace_node);
#endif

at line 81...

And I get that :

gcc -D__KERNEL__ -I/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include
/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/include/linux/modversions.h
-I/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/include
-I/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/hw/mellanox-hca/include
-I. -DMT_KERNEL -D__LINUX__ -DMAX_ERROR=4 -DMTL_MODULE=MOSAL "-DREMAP_PREFIX=current->mm->mmap,"
-DMT_LITTLE_ENDIAN -nostdinc -iwithprefix include -DKBUILD_BASENAME=mosal_mem
 -c -o mosal_mem.o mosal_mem.c
mosal_mem.c: In function `MOSAL_map_phys_addr':
mosal_mem.c:218: warning: passing arg 1 of `remap_page_range_Rsmp_69d01e73'
makes integer from pointer without a cast
mosal_mem.c:218: incompatible type for argument 4 of `remap_page_range_Rsmp_69d01e73'
mosal_mem.c:218: too many arguments to function `remap_page_range_Rsmp_69d01e73'
make[5]: *** [mosal_mem.o] Erreur 1
make[5]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/hw/mellanox-hca/mosal'
make[4]: *** [_modsubdir_mosal] Erreur 2
make[4]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/hw/mellanox-hca'
make[3]: *** [_modsubdir_mellanox-hca] Erreur 2
make[3]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband/hw'
make[2]: *** [_modsubdir_hw] Erreur 2
make[2]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers/infiniband'
make[1]: *** [_modsubdir_infiniband] Erreur 2
make[1]: Quitte le répertoire `/home/vonwyl/InfiniBand/kernel/rtlinux-3.2-pre2/linux/drivers'
make: *** [_mod_drivers] Erreur 2

I tried with a gcc 2.95.3, 2.95.4 and a 3.2 but without any results...

So can anyone help me?

In advance, thanks...





More information about the general mailing list