[ofa-general] Re: OpenSM build issue

Sasha Khapyorsky sashak at voltaire.com
Tue Oct 14 01:05:03 PDT 2008


Hi Hal,

On 13:04 Mon 13 Oct     , Hal Rosenstock wrote:
> 
> With your latest master, I now get:
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include/opensm
> -I./../include -I./../../libibcommon/include
> -I./../../libibumad/include -I/usr/local/include   -Wall -g
> -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -g -O2 -MT osm_event_plugin.o -MD
> -MP -MF ".deps/osm_event_plugin.Tpo" -c -o osm_event_plugin.o
> osm_event_plugin.c; \
>       then mv -f ".deps/osm_event_plugin.Tpo"
> ".deps/osm_event_plugin.Po"; else rm -f ".deps/osm_event_plugin.Tpo";
> exit 1; fi
> In file included from ../include/opensm/osm_base.h:47,
>                from ../include/opensm/osm_subnet.h:52,
>                from ../include/opensm/osm_console_io.h:43,
>                from ../include/opensm/osm_opensm.h:52,
>                from osm_event_plugin.c:49:
> ../include/config.h:135:1: warning: "_OSM_CONFIG_H_" redefined
> In file included from ../include/opensm/osm_event_plugin.h:41,
>                from osm_event_plugin.c:48:
> ../include/opensm/osm_config.h:12:1: warning: this is the location of
> the previous definition

Are there another warnings or only this one (I don't have any)? What is
your './configure' command line?

> Is something stale in my environment or is this a current build issue ?

I don't think it is your environment. Try this:

diff --git a/opensm/opensm/osm_event_plugin.c b/opensm/opensm/osm_event_plugin.c
index 177740a..c6999f5 100644
--- a/opensm/opensm/osm_event_plugin.c
+++ b/opensm/opensm/osm_event_plugin.c
@@ -43,6 +43,10 @@
 *
 *********/
 
+#if HAVE_CONFIG_H
+#  include <config.h>
+#endif				/* HAVE_CONFIG_H */
+
 #include <stdlib.h>
 #include <dlfcn.h>
 #include <opensm/osm_event_plugin.h>


 Sasha



More information about the general mailing list