Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] hwloc 1.2 compilation problems
From: Carl Smith (cs_at_[hidden])
Date: 2011-06-15 21:05:36


> Ah. Do you perhaps have a /usr/include/ncurses.h?

        Yes, but ...

> I guess we should be
> trying that before curses.h, I've commited it, please test svn or next
> night tarball.

when I tried out your change, <ncurses.h> was found and linking was still
done with libncurses (and therefore failed). I think what's needed is some
uglier, more complex code here

    AC_CHECK_HEADERS([ncurses.h curses.h], [
      AC_CHECK_HEADERS([term.h], [
        AC_SEARCH_LIBS([tparm], [termcap ncursesw ncurses curses], [
            AC_SUBST([HWLOC_TERMCAP_LIBS], ["$LIBS"])
            AC_DEFINE([HWLOC_HAVE_LIBTERMCAP], [1],
                      [Define to 1 if you have a library providing the termcap interface])
          ])
      ], [], [[#include <curses.h>]])
    ])

that would generate the correct header file to library pairing. In my
case, the attached patch on top of your previous change did the trick.

                        Carl