Project

General

Profile

Bug #72

/usr/include/fatal.h exists on AIX and conflicts with GROMACS fatal.h

Added by Tom Joseph over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Erik Lindahl
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

When compiling on AIX with the IBM XL compiler, /usr/include/fatal.h gets
#included instead of gromacs-3.3.1/include/fatal.h in many source files. I
propose renaming the GROMACS fatal.h to fatal_errors.h as a possible solution.

fatal_header.diff (20.1 KB) fatal_header.diff s/#include "fatal.h"/#include "fatal_errors.h"/ Tom Joseph, 04/19/2006 03:59 AM

History

#1 Updated by Tom Joseph over 13 years ago

Created an attachment (id=38)
s/#include "fatal.h"/#include "fatal_errors.h"/

Not included in this patch is actually renaming fatal.h to fatal_errors.h.

#2 Updated by Tom Joseph over 13 years ago

Perhaps an easier solution might be just to not specify -I/usr/include to the
compiler? I don't know enough about autoconf/automake/etc to know how to do this...

#3 Updated by Tom Joseph over 13 years ago

After a bit more investigation, it looks like the configure script notices that
Motif headers are in /usr/include and adds it to INCLUDES. Specifying some
other correct Motif headers location using --with-motif-includes ought to
obviate the need for my patch. But it still would be nice if the configure
script wouldn't cause -I/usr/include to be passed to every invocation of the C
compiler during the build, even if it finds things it wants there.

#4 Updated by Erik Lindahl over 13 years ago

Moved the header to gmx_fatal.h in both CVS branches.

Also available in: Atom PDF