Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI devel] ibcm private header file
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-07-22 12:28:22


Pasha --

I notice that all of IU's builds failed last night with errors like
this:

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../opal/include -
I../../../../orte/include -I../../../../ompi/include -I../../../../
opal/mca/paffinity/linux/plpa/src/libplpa -I/usr/local/ofed/include -
I../../../.. -O3 -DNDEBUG -m32 -pipe -finline-functions -fno-strict-
aliasing -pthread -fvisibility=hidden -MT connect/
btl_openib_connect_ibcm.lo -MD -MP -MF connect/.deps/
btl_openib_connect_ibcm.Tpo -c connect/btl_openib_connect_ibcm.c -
fPIC -DPIC -o connect/.libs/btl_openib_connect_ibcm.o
In file included from /usr/include/asm/byteorder.h:7,
                  from connect/btl_openib_connect_ibcm.c:260:
/usr/include/asm-i386/byteorder.h:6:2: warning: #warning using private
kernel header; include instead!
In file included from ../../../../opal/util/if.h:33,
                  from connect/btl_openib_connect_ibcm.c:262:
/usr/include/netinet/in.h:354: error: syntax error before '(' token
/usr/include/netinet/in.h:354: error: syntax error before "__u32"
/usr/include/netinet/in.h:355: error: syntax error before '(' token
/usr/include/netinet/in.h:355: error: syntax error before "__u16"
/usr/include/netinet/in.h:357: error: syntax error before '(' token
/usr/include/netinet/in.h:357: error: syntax error before "__u32"
/usr/include/netinet/in.h:359: error: syntax error before '(' token
/usr/include/netinet/in.h:359: error: syntax error before "__u16"
make[2]: *** [connect/btl_openib_connect_ibcm.lo] Error 1

So I think using byteorder.h is not a good idea (note the warning).
How about just having two #defines, picking the Right one based on
WORDS_BIGENDIAN?

-- 
Jeff Squyres
Cisco Systems