<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dotan,</FONT></DIV>
<DIV><FONT face=Arial size=2>thanks for your reply.</FONT></DIV>
<DIV><FONT face=Arial size=2>In my distribution I found </FONT></DIV>
<DIV><FONT face=Arial size=2>-----</FONT></DIV>
<DIV><FONT face=Arial size=2>#define USER_HZ 100</FONT></DIV>
<DIV><FONT face=Arial size=2>-----</FONT></DIV>
<DIV><FONT face=Arial size=2>so I added this line</FONT></DIV>
<DIV><FONT face=Arial size=2>-----</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>#define HZ 100</FONT></DIV>
<DIV>-----</DIV>
<DIV>in utils.h.</DIV>
<DIV> </DIV>
<DIV>Now, I get another error!</DIV>
<DIV>I tried also to not include 'ipoibtools', as Tziporet told me, and this is
the same error I got.</DIV>
<DIV>This is my previous message, with the error I got:</DIV>
<DIV>-----</DIV>
<DIV>> <BR>> From: "Tziporet Koren"<BR>>> The failing is utility is
used for IPoIB high availability. If you don't <BR>>> need to use them you
can just change this line in ofed.conf:<BR>>>
ipoibtools=n<BR>>><BR>>> Tziporet<BR>>><BR>> Thanks
Tziporet for your answer.<BR>> <BR>> <BR>> Tried just right now, i
disabled ipoibtools. I get another, more strange <BR>> error:<BR>>
(attached OFED.3816.log)<BR>> -----<BR>> /bin/rm -f
/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache<BR>> cd
/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/examples<BR>> cd
/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs<BR>> Running:
<BR>> ./configure
--cache-file=/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache
--disable-libcheck <BR>> --prefix /usr/local/ofed --libdir
/usr/local/ofed/lib <BR>> CPPFLAGS="-I../libibverbs/include"<BR>>
configure: creating cache
/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache<BR>> checking for a
BSD-compatible install... /usr/bin/install -c<BR>> checking whether build
environment is sane... yes<BR>> checking for gawk... gawk<BR>> checking
whether make sets $(MAKE)... yes<BR>> checking build system type...
x86_64-unknown-linux-gnu<BR>> checking host system type...
x86_64-unknown-linux-gnu<BR>> checking for style of include used by make...
GNU<BR>> checking for gcc... gcc<BR>> checking for C compiler default
output file name... configure: error: C <BR>> compiler cannot create
executables<BR>> See `config.log' for more details.<BR>> Failed to
execute: <BR>> ./configure
--cache-file=/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache
--disable-libcheck <BR>> --prefix /usr/local/ofed --libdir
/usr/local/ofed/lib <BR>> CPPFLAGS="-I../libibverbs/include"<BR>> error:
Bad exit status from /var/tmp/rpm-tmp.46102 (%install)<BR>> -----<BR>>
<BR>> Am I right? It says my C compiler cannot create executables???? Is it
joking <BR>> me????<BR>> In the log file, line 6393, it says:<BR>>
-----<BR>> checking for C compiler default output file name... a.out<BR>>
-----<BR>> <BR>> I don't understand....!<BR>> Is there something I can
do to fix this?<BR>> <BR>> <BR>> Thanks,<BR>> Diego<BR>>
<BR>></DIV>
<DIV>-----</DIV>
<DIV> </DIV>
<DIV>Why on line 6393 it says my compiler default output file name is a.out, and
5000 lines after it says my C compiler cannot create executables??</DIV>
<DIV> </DIV>
<DIV>It seems this is the last error preventing me to have OFED
built!</DIV>
<DIV> </DIV>
<DIV>What can I do now?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Diego</DIV>
<DIV> </DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dotanb@mellanox.co.il href="mailto:dotanb@mellanox.co.il">Dotan
Barak</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=diego.guella@sircomtech.com
href="mailto:diego.guella@sircomtech.com">Diego Guella</A> ; <A
title=openib-general@openib.org
href="mailto:openib-general@openib.org">openib-general@openib.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 08, 2006 5:00
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [openib-general]
Installation on openSUSE 10.2 Beta1 fails</DIV>
<DIV><BR></DIV>
<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 size=+0><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"><FONT
face=Arial size=2>
<DIV><<cut>></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></BLOCKQUOTE></BODY></HTML>