[openib-general] OFED can't compile against sa.h under SLES10 x86_64

Jack Morgenstein jackm at dev.mellanox.co.il
Thu Sep 14 04:12:27 PDT 2006


I was unable to reproduce the problem you describe, under SLES10 x86_64.
Here, your cmpost.c file compiled and linked without any problems.
I used a slightly different gcc command line (given below).

I took the cmpost.c file you provided, placed it under 
/usr/local/ofed/src/openib-1.1/src/userspace/libibcm/examples 
(under an OFED 1.1-rc5 prerelease candidate installation).
I then did the following:

 cd libibcm/examples

 gcc -ggdb  -Wall -O0 -I/usr/local/ofed/include  -D__x86_64__  
      /usr/local/ofed/lib64/libibcommon.so /usr/local/ofed/lib64/librdmacm.so 
      /usr/local/ofed/lib64/libibcm.so  -o cmpost cmpost.c

(the above gcc command is broken up into several lines for easy reading)

The compilation was successful. I did not experience any compilation or linkage problems.
I was able to run the resulting "cmpost" executable file.

gcc version: gcc (GCC) 4.1.0 (SUSE Linux)
Linux distribution: (from file /etc/SuSE-release):
    SUSE Linux Enterprise Server 10 (x86_64)
    VERSION = 10

Kernel version (uname -a):
    Linux 2.6.16.21-0.8-smp #1 SMP Mon Jul 3 18:25:39 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux

I then retried everything using OFED 1.1 RC4, and also succeeded in compiling and running cmpost.c.

The following is the list of OFED packages that I installed for the above experiment:
ib_ipoib
ib_mthca
ib_verbs
kernel-ib
kernel-ib-devel
libibcm
libibcm-devel
libibcommon
libibcommon-devel
libibmad
libibmad-devel
libibumad
libibumad-devel
libibverbs
libibverbs-devel
libibverbs-utils
libmthca
libmthca-devel
librdmacm
librdmacm-devel
librdmacm-utils
ofed-scripts

- Jack




More information about the general mailing list