<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><FONT color=#000000><SPAN
class=171054514-08112006>Hi Diego.</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><FONT color=#000000><SPAN
class=171054514-08112006></SPAN></FONT></FONT></FONT></FONT> </DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><FONT color=#000000><SPAN
class=171054514-08112006>You got the following
output:</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><FONT color=#000000><SPAN
class=171054514-08112006></SPAN></FONT></FONT></FONT></FONT> </DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><FONT color=#000000><SPAN
class=171054514-08112006></SPAN>utils.c: In function ‘__get_hz’:<BR>utils.c:368:
error: ‘HZ’ undeclared (first use in this function)<BR>utils.c:368: error: (Each
undeclared identifier is reported only once<BR>utils.c:368: error: for each
function it appears in.)</FONT><BR></DIV></FONT></FONT></FONT>
<DIV><SPAN class=171054514-08112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171054514-08112006><FONT face=Arial><FONT color=#0000ff><FONT
size=2>because <SPAN class=046425414-08112006>the macro </SPAN>HZ
wasn't <SPAN class=046425414-08112006>found by the
compiler.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=171054514-08112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171054514-08112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171054514-08112006><FONT face=Arial color=#0000ff size=2>in my
machine HZ is defined in <SPAN class=046425414-08112006>2
files)</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=171054514-08112006><FONT><SPAN
class=046425414-08112006></SPAN><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=046425414-08112006>1
) </SPAN></FONT></FONT></FONT></FONT></SPAN><SPAN
class=171054514-08112006><FONT size=2>asm/param.h:#define HZ
sysconf(_SC_CLK_TCK)</FONT></DIV>
<P><SPAN class=046425414-08112006><FONT face=Arial color=#0000ff size=2>2)
</FONT></SPAN><SPAN class=046425414-08112006><FONT face=Arial color=#0000ff
size=2>in asm-x86_64/param.h I noticed the following code (this define is being
used in the compilation process in my 1000 MHz machine):</FONT></SPAN></P>
<P><SPAN class=046425414-08112006><FONT face=Arial color=#0000ff size=2>#ifndef
HZ<BR>#define HZ 100<BR>#endif<BR></P>
<DIV></FONT></SPAN></SPAN><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV><SPAN class=046425414-08112006><FONT face=Arial color=#0000ff size=2>I
believe that there is a missing include in this
distribution.</FONT></SPAN></DIV>
<DIV><SPAN class=046425414-08112006><FONT face=Arial color=#0000ff size=2>I
think that if you'll add the later lines everything will work
...</FONT></SPAN></DIV>
<DIV><SPAN class=046425414-08112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2>Dotan</FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><BR><SPAN
class=046425414-08112006><FONT
color=#0000ff> </FONT></SPAN></FONT></FONT><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
openib-general-bounces@openib.org [mailto:openib-general-bounces@openib.org]
<B>On Behalf Of </B>Diego Guella<BR><B>Sent:</B> Wednesday, November 08, 2006
11:21 AM<BR><B>To:</B> openib-general@openib.org<BR><B>Subject:</B>
[openib-general] Installation on openSUSE 10.2 Beta1
fails<BR><BR></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>I already installed OFED-1.0 on a PowerEdge 2850
and a Dell Dimension 9100, both with SUSE Linux 9.3, and it runs without
problems.</FONT></DIV>
<DIV> </DIV>
<DIV>Now I have a Dell PowerEdge 1950, and the only Linux distribution I can
install correctly on this server seems to be SUSE 10.2, now in Beta1 state
(but releasing on December). I tried to install OFED-1.1 on this server, but I
get compilation errors while building the RPM.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here are the details:</FONT></DIV>
<DIV><FONT face=Arial size=2>-----</FONT></DIV>
<DIV><FONT face=Arial size=2>server1950:~ # uname -a<BR>Linux server1950
2.6.18.1-13-default #1 SMP Mon Oct 30 14:26:03 UTC 2006 x86_64 x86_64 x86_64
GNU/Linux<BR>-----</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>trying to install:</FONT></DIV>
<DIV><FONT face=Arial size=2>-----</FONT></DIV>
<DIV><FONT face=Arial size=2>RPM packages:<BR>Install kernel-ib:
[y/N]:y<BR>Kernel level modules:<BR>Install ib_verbs: [y/N]:y<BR>Install
ib_mthca: [y/N]:y<BR>Install ib_ipoib: [y/N]:y<BR>Install ib_ipath:
[y/N]:y<BR>Install ib_sdp: [y/N]:y<BR>Install ib_srp: [y/N]:y<BR>Install
kernel-ib-devel: [y/N]:y<BR>User level libraries/applications:<BR>Install
libibverbs: [y/N]:y<BR>Install libibverbs-devel: [y/N]:y<BR>Install
libibverbs-utils: [y/N]:y<BR>Install libibcm: [y/N]:y<BR>Install
libibcm-devel: [y/N]:y<BR>Install libmthca: [y/N]:y<BR>Install libmthca-devel:
[y/N]:y<BR>Install perftest: [y/N]:y<BR>Install mstflint: [y/N]:y<BR>Install
libipathverbs: [y/N]:y<BR>Install libipathverbs-devel: [y/N]:y<BR>Install
ofed-docs: [y/N]:y<BR>Install ofed-scripts: [y/N]:y<BR>Install libsdp:
[y/N]:y<BR>Install srptools: [y/N]:y<BR>Install ipoibtools: [y/N]:y<BR>Install
tvflash: [y/N]:N<BR>Install libibcommon: [y/N]:y<BR>Install libibcommon-devel:
[y/N]:y<BR>Install libibmad: [y/N]:y<BR>Install libibmad-devel:
[y/N]:y<BR>Install libibumad: [y/N]:y<BR>Install libibumad-devel:
[y/N]:y<BR>Install libopensm: [y/N]:y<BR>Install libopensm-devel:
[y/N]:y<BR>Install opensm: [y/N]:y<BR>Install libosmcomp: [y/N]:y<BR>Install
libosmcomp-devel: [y/N]:y<BR>Install libosmvendor: [y/N]:y<BR>Install
libosmvendor-devel: [y/N]:y<BR>Install openib-diags: [y/N]:y<BR>Install
librdmacm: [y/N]:y<BR>Install librdmacm-devel: [y/N]:y<BR>Install
librdmacm-utils: [y/N]:y<BR>Install dapl: [y/N]:y<BR>Install dapl-devel:
[y/N]:y<BR>Install mpi_osu: [y/N]:y<BR>Install openmpi: [y/N]:y<BR>Install
mpitests: [y/N]:y<BR>Install ibutils: [y/N]:y<BR>WARNING: No compilers for
mpi_osu were found<BR>WARNING: OSU MPI cannot be installed</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The following compiler(s) on your system can be
used to build/install openmpi: gcc</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Do you wish to create/install an openmpi RPM with
gcc? [Y/n]:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The following compiler(s) will be used to install
the openmpi RPM(s): gcc</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Following is the list of OFED packages that you
have
chosen<BR>
(some may have been added by the installation program due to package
dependencies):<BR>ib_ipath<BR>ib_ipoib<BR>ib_mthca<BR>ib_sdp<BR>ib_srp<BR>ib_verbs<BR>dapl<BR>dapl-devel<BR>ipoibtools<BR>kernel-ib<BR>kernel-ib-devel<BR>libibcm<BR>libibcm-devel<BR>libibcommon<BR>libibcommon-devel<BR>libibmad<BR>libibmad-devel<BR>libibumad<BR>libibumad-devel<BR>libibverbs<BR>libibverbs-devel<BR>libibverbs-utils<BR>libipathverbs<BR>libipathverbs-devel<BR>libmthca<BR>libmthca-devel<BR>libopensm<BR>libopensm-devel<BR>libosmcomp<BR>libosmcomp-devel<BR>libosmvendor<BR>libosmvendor-devel<BR>librdmacm<BR>librdmacm-devel<BR>librdmacm-utils<BR>libsdp<BR>mstflint<BR>openib-diags<BR>opensm<BR>perftest<BR>srptools<BR>ofed-docs<BR>ofed-scripts<BR>openmpi<BR>mpitests<BR>ibutils</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Preparing to build the OFED RPMs:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Do you want to include IPoIB configuration files
(ifcfg-ib*)? [Y/n]:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>RPM build process requires a temporary
directory.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Please enter the temporary directory
[/var/tmp/OFED]:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Please enter the OFED installation directory
[/usr/local/ofed]:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The following compiler(s) will be used to build
the openmpi RPM(s): gcc</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Checking dependencies. Please wait
...</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Building InfiniBand Software RPMs. Please wait...</DIV>
<DIV> </DIV>
<DIV><BR>Building openib RPMs. Please wait...</DIV>
<DIV> </DIV>
<DIV>Running rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define
'_prefix /usr/local/ofed' --define 'build_root /var/tmp/OFED' --define
'configure_options --with-dapl --with-ipoibtools --with-libibcm
--with-libibcommon --with-libibmad --with-libibumad --with-libibverbs
--with-libipathverbs --with-libmthca --with-opensm --with-librdmacm
--with-libsdp --with-openib-diags --with-srptools --with-mstflint
--with-perftest --with-ipath_inf-mod --with-ipoib-mod --with-mthca-mod
--with-sdp-mod --with-srp-mod --with-core-mod --with-user_mad-mod
--with-user_access-mod --with-addr_trans-mod' --define 'configure_options32
--with-dapl --with-ipoibtools --with-libibcm --with-libibcommon
--with-libibmad --with-libibumad --with-libibverbs --with-libipathverbs
--with-libmthca --with-opensm --with-librdmacm --with-libsdp
--with-openib-diags --with-srptools ' --define 'KVERSION 2.6.18.1-13-default'
--define 'KSRC /lib/modules/2.6.18.1-13-default/build' --define
'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define
'NETWORK_CONF_DIR /etc/sysconfig/network' --define 'modprobe_update 1'
--define 'include_ipoib_conf 1' --define 'build_32bit 1'
/opt/nfs_public/OFED-1.1/SRPMS/openib-1.1-0.src.rpm<BR>\<BR>ERROR: Failed
executing "rpmbuild --rebuild --define '_topdir /var/tmp/OFEDRPM' --define
'_prefix /usr/local/ofed' --define 'build_root /var/tmp/OFED' --define
'configure_options --with-dapl --with-ipoibtools --with-libibcm
--with-libibcommon --with-libibmad --with-libibumad --with-libibverbs
--with-libipathverbs --with-libmthca --with-opensm --with-librdmacm
--with-libsdp --with-openib-diags --with-srptools --with-mstflint
--with-perftest --with-ipath_inf-mod --with-ipoib-mod --with-mthca-mod
--with-sdp-mod --with-srp-mod --with-core-mod --with-user_mad-mod
--with-user_access-mod --with-addr_trans-mod' --define 'configure_options32
--with-dapl --with-ipoibtools --with-libibcm --with-libibcommon
--with-libibmad --with-libibumad --with-libibverbs --with-libipathverbs
--with-libmthca --with-opensm --with-librdmacm --with-libsdp
--with-openib-diags --with-srptools ' --define 'KVERSION 2.6.18.1-13-default'
--define 'KSRC /lib/modules/2.6.18.1-13-default/build' --define
'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define
'NETWORK_CONF_DIR /etc/sysconfig/network' --define 'modprobe_update 1'
--define 'include_ipoib_conf 1' --define 'build_32bit 1'
/opt/nfs_public/OFED-1.1/SRPMS/openib-1.1-0.src.rpm"</DIV>
<DIV> </DIV>
<DIV>See log file: /tmp/OFED.8057.log</DIV>
<DIV> </DIV>
<DIV><BR>server1950:/opt/nfs_public/OFED-1.1 # <BR>-----</DIV>
<DIV> </DIV>
<DIV>OFED.8057.log attached.</DIV>
<DIV>The 'interesting' part of the log is:</DIV>
<DIV>-----</DIV>
<DIV> gcc
-Wp,-MD,/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/.ucma.o.d
-nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.1.2/include -D__KERNEL__
-I/var/tmp/OFEDRPM/BUILD/openib-1.1/include
\<BR>-I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/include
\<BR>-Iinclude \<BR>-Iinclude2 -I/usr/src/linux-2.6.18.1-13/include
\<BR>-include include/linux/autoconf.h \<BR>-include
/var/tmp/OFEDRPM/BUILD/openib-1.1/include/linux/autoconf.h \<BR>
-I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration
-fno-strict-aliasing -fno-common -Os -mtune=generic -m64 -mno-red-zone
-mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -funit-at-a-time
-mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer
-fasynchronous-unwind-tables -fno-stack-protector
-Wdeclaration-after-statement -Wno-pointer-sign
-I/var/tmp/OFEDRPM/BUILD/openib-1.1/include
-I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/include
-I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/ulp/ipoib
-I/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/debug -DMODULE
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ucma)"
-D"KBUILD_MODNAME=KBUILD_STR(rdma_ucm)" -c -o
/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/.tmp_ucma.o
/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/ucma.c<BR>/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/ucma.c:
In function
‘ucma_init’:<BR>/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/ucma.c:878:
error: ‘struct miscdevice’ has no member named
‘class’<BR>/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/ucma.c:
In function
‘ucma_cleanup’:<BR>/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/ucma.c:892:
error: ‘struct miscdevice’ has no member named ‘class’<BR>make[5]: ***
[/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core/ucma.o] Error
1<BR>make[4]: *** [/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband/core]
Error 2<BR>make[3]: ***
[_module_/var/tmp/OFEDRPM/BUILD/openib-1.1/drivers/infiniband] Error
2<BR>make[2]: *** [modules] Error 2<BR>make[1]: *** [modules] Error
2<BR>make[1]: Leaving directory
`/usr/src/linux-2.6.18.1-13-obj/x86_64/default'<BR>make: *** [kernel] Error
2<BR>error: Bad exit status from /var/tmp/rpm-tmp.13083 (%install)</DIV>
<DIV> </DIV>
<DIV><BR>RPM build errors:<BR> user vlad does not exist -
using root<BR> group mtl does not exist - using
root<BR> user vlad does not exist - using
root<BR> group mtl does not exist - using
root<BR> Bad exit status from /var/tmp/rpm-tmp.13083
(%install)<BR>ERROR: Failed executing "rpmbuild --rebuild --define '_topdir
/var/tmp/OFEDRPM' --define '_prefix /usr/local/ofed' --define 'build_root
/var/tmp/OFED' --define 'configure_options --with-dapl --with-ipoibtools
--with-libibcm --with-libibcommon --with-libibmad --with-libibumad
--with-libibverbs --with-libipathverbs --with-libmthca --with-opensm
--with-librdmacm --with-libsdp --with-openib-diags --with-srptools
--with-mstflint --with-perftest --with-ipath_inf-mod --with-ipoib-mod
--with-mthca-mod --with-sdp-mod --with-srp-mod --with-core-mod
--with-user_mad-mod --with-user_access-mod --with-addr_trans-mod' --define
'configure_options32 --with-dapl --with-ipoibtools --with-libibcm
--with-libibcommon --with-libibmad --with-libibumad --with-libibverbs
--with-libipathverbs --with-libmthca --with-opensm --with-librdmacm
--with-libsdp --with-openib-diags --with-srptools ' --define 'KVERSION
2.6.18.1-13-default' --define 'KSRC /lib/modules/2.6.18.1-13-default/build'
--define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define
'NETWORK_CONF_DIR /etc/sysconfig/network' --define 'modprobe_update 1'
--define 'include_ipoib_conf 1' --define 'build_32bit 1'
/opt/nfs_public/OFED-1.1/SRPMS/openib-1.1-0.src.rpm"<BR>-----</DIV>
<DIV> </DIV>
<DIV>Looking at ucma.c, it #includes <linux/miscdevice.h></DIV>
<DIV> </DIV>
<DIV>Now, my /usr/src/linux-2.6.18.1-13/include/linux/miscdevice.h looks like
this:</DIV>
<DIV>-----</DIV>
<DIV>#ifndef _LINUX_MISCDEVICE_H<BR>#define _LINUX_MISCDEVICE_H<BR>#include
<linux/module.h><BR>#include <linux/major.h></DIV>
<DIV> </DIV>
<DIV>#define PSMOUSE_MINOR 1<BR>#define MS_BUSMOUSE_MINOR 2<BR>#define
ATIXL_BUSMOUSE_MINOR 3<BR>/*#define AMIGAMOUSE_MINOR 4 FIXME OBSOLETE
*/<BR>#define ATARIMOUSE_MINOR 5<BR>#define SUN_MOUSE_MINOR 6<BR>#define
APOLLO_MOUSE_MINOR 7<BR>#define PC110PAD_MINOR 9<BR>/*#define ADB_MOUSE_MINOR
10 FIXME OBSOLETE */<BR>#define WATCHDOG_MINOR 130 /*
Watchdog timer */<BR>#define
TEMP_MINOR 131 /* Temperature Sensor */<BR>#define RTC_MINOR
135<BR>#define EFI_RTC_MINOR 136 /* EFI Time services
*/<BR>#define SUN_OPENPROM_MINOR 139<BR>#define
DMAPI_MINOR 140 /* DMAPI */<BR>#define NVRAM_MINOR
144<BR>#define SGI_MMTIMER
153<BR>#define STORE_QUEUE_MINOR 155<BR>#define I2O_MINOR 166<BR>#define
MICROCODE_MINOR 184<BR>#define MWAVE_MINOR 219 /*
ACP/Mwave Modem */<BR>#define MPT_MINOR 220<BR>#define MISC_DYNAMIC_MINOR
255</DIV>
<DIV> </DIV>
<DIV>#define TUN_MINOR
200<BR>#define HPET_MINOR 228</DIV>
<DIV> </DIV>
<DIV>struct device;</DIV>
<DIV> </DIV>
<DIV>struct miscdevice {<BR> int minor;<BR> const char
*name;<BR> const struct file_operations *fops;<BR> struct list_head
list;<BR> struct device *parent;<BR> struct device
*this_device;<BR>};</DIV>
<DIV> </DIV>
<DIV>extern int misc_register(struct miscdevice * misc);<BR>extern int
misc_deregister(struct miscdevice * misc);</DIV>
<DIV> </DIV>
<DIV>#define
MODULE_ALIAS_MISCDEV(minor) \<BR> MODULE_ALIAS("char-major-"
__stringify(MISC_MAJOR) \<BR> "-"
__stringify(minor))<BR>#endif<BR>-----</DIV>
<DIV> </DIV>
<DIV>and my /usr/include/linux/miscdevice.h looks like this:</DIV>
<DIV>-----</DIV>
<DIV>#ifndef _LINUX_MISCDEVICE_H<BR>#define _LINUX_MISCDEVICE_H<BR>#include
<linux/module.h><BR>#include <linux/major.h></DIV>
<DIV> </DIV>
<DIV>#define PSMOUSE_MINOR 1<BR>#define MS_BUSMOUSE_MINOR 2<BR>#define
ATIXL_BUSMOUSE_MINOR 3<BR>/*#define AMIGAMOUSE_MINOR 4 FIXME OBSOLETE
*/<BR>#define ATARIMOUSE_MINOR 5<BR>#define SUN_MOUSE_MINOR 6<BR>#define
APOLLO_MOUSE_MINOR 7<BR>#define PC110PAD_MINOR 9<BR>/*#define ADB_MOUSE_MINOR
10 FIXME OBSOLETE */<BR>#define WATCHDOG_MINOR 130 /*
Watchdog timer */<BR>#define
TEMP_MINOR 131 /* Temperature Sensor */<BR>#define RTC_MINOR
135<BR>#define EFI_RTC_MINOR 136 /* EFI Time services
*/<BR>#define SUN_OPENPROM_MINOR 139<BR>#define
DMAPI_MINOR 140 /* DMAPI */<BR>#define NVRAM_MINOR
144<BR>#define SGI_MMTIMER
153<BR>#define STORE_QUEUE_MINOR 155<BR>#define I2O_MINOR 166<BR>#define
MICROCODE_MINOR 184<BR>#define MWAVE_MINOR 219 /*
ACP/Mwave Modem */<BR>#define MPT_MINOR 220<BR>#define MISC_DYNAMIC_MINOR
255</DIV>
<DIV> </DIV>
<DIV>#define TUN_MINOR
200<BR>#define HPET_MINOR 228</DIV>
<DIV> </DIV>
<DIV>struct device;<BR>struct class_device;</DIV>
<DIV> </DIV>
<DIV>struct miscdevice {<BR> int minor;<BR> const char
*name;<BR> const struct file_operations *fops;<BR> struct list_head
list;<BR> struct device *dev;<BR> struct class_device
*class;<BR>};</DIV>
<DIV> </DIV>
<DIV>extern int misc_register(struct miscdevice * misc);<BR>extern int
misc_deregister(struct miscdevice * misc);</DIV>
<DIV> </DIV>
<DIV>#define
MODULE_ALIAS_MISCDEV(minor) \<BR> MODULE_ALIAS("char-major-"
__stringify(MISC_MAJOR) \<BR> "-"
__stringify(minor))<BR>#endif<BR>-----</DIV>
<DIV> </DIV>
<DIV>which seems what OFED-1.1 expects to have. So, now i replace
/usr/src/linux-2.6.18.1-13/include/linux/miscdevice.h with
/usr/include/linux/miscdevice.h, launch the install again and see what
happens:</DIV>
<DIV> </DIV>
<DIV>-----</DIV>
<DIV>ERROR: Failed executing "rpmbuild --rebuild --define '_topdir
/var/tmp/OFEDRPM' --define '_prefix /usr/local/ofed' --define 'build_root
/var/tmp/OFED' --define 'configure_options --with-dapl --with-ipoibtools
--with-libibcm --with-libibcommon --with-libibmad --with-libibumad
--with-libibverbs --with-libipathverbs --with-libmthca --with-opensm
--with-librdmacm --with-libsdp --with-openib-diags --with-srptools
--with-mstflint --with-perftest --with-ipath_inf-mod --with-ipoib-mod
--with-mthca-mod --with-sdp-mod --with-srp-mod --with-core-mod
--with-user_mad-mod --with-user_access-mod --with-addr_trans-mod' --define
'configure_options32 --with-dapl --with-ipoibtools --with-libibcm
--with-libibcommon --with-libibmad --with-libibumad --with-libibverbs
--with-libipathverbs --with-libmthca --with-opensm --with-librdmacm
--with-libsdp --with-openib-diags --with-srptools ' --define 'KVERSION
2.6.18.1-13-default' --define 'KSRC /lib/modules/2.6.18.1-13-default/build'
--define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define
'NETWORK_CONF_DIR /etc/sysconfig/network' --define 'modprobe_update 1'
--define 'include_ipoib_conf 1' --define 'build_32bit 1'
/opt/nfs_public/OFED-1.1/SRPMS/openib-1.1-0.src.rpm"</DIV>
<DIV> </DIV>
<DIV>See log file: /tmp/OFED.29778.log<BR>-----</DIV>
<DIV> </DIV>
<DIV>
<DIV>OFED.29778.log attached.</DIV>
<DIV>The 'interesting' part of the log is:</DIV></DIV>
<DIV>-----</DIV>
<DIV>gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include
-DRESOLVE_HOSTNAMES -c -o utils.o utils.c<BR>utils.c: In function
‘inet_addr_match’:<BR>utils.c:333: warning: initialization discards qualifiers
from pointer target type<BR>utils.c:334: warning: initialization discards
qualifiers from pointer target type<BR>utils.c: In function
‘__get_hz’:<BR>utils.c:368: error: ‘HZ’ undeclared (first use in this
function)<BR>utils.c:368: error: (Each undeclared identifier is reported only
once<BR>utils.c:368: error: for each function it appears in.)<BR>make[2]: ***
[utils.o] Error 1<BR>make[2]: Leaving directory
`/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/ipoibtools/iproute2/lib'<BR>make[1]:
*** [lib] Error 2<BR>make[1]: Leaving directory
`/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/ipoibtools/iproute2'<BR>make:
*** [ipoibtools] Error 2<BR>error: Bad exit status from /var/tmp/rpm-tmp.4033
(%install)<BR>-----</DIV>
<DIV> </DIV>
<DIV>Here, I give up: I don't understand where 'HZ' should be defined, or
where it comes from.</DIV>
<DIV>Where is the problem?</DIV>
<DIV>Is there a solution to fix it?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Diego</DIV>
<DIV></FONT> </DIV></BLOCKQUOTE></BODY></HTML>