> Here are some smaller attachments. Thanks. From the build.out:
builtin.o: In function `xnmalloc': /scratch/ajstewart/m4-1.4.17/src/../lib/xalloc.h:104: multiple definition of `xnmalloc' m4.o:/scratch/ajstewart/m4-1.4.17/src/../lib/xalloc.h:104: first defined here This means, the compilers sees a conflict between two definitions of 'xnmalloc', both with _GL_INLINE, in different compilation units. _GL_INLINE expands to 'inline' or 'static', depending on the compiler. (See m4/extern-inline.m4.) We can assume that if _GL_INLINE expanded to 'static', you wouldn't see this error. Here's a proposed fix (in gnulib) (based on the predef list at https://sourceforge.net/p/predef/wiki/Compilers/): >From cf4e1225e443180a5a838846d3f9b12baa376605 Mon Sep 17 00:00:00 2001 From: Bruno Haible <br...@clisp.org> Date: Sat, 5 Mar 2016 01:35:03 +0100 Subject: [PATCH] extern-inline: port to PGI CC * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the keyword 'inline'. Reported by Adam James Stewart in: http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html --- ChangeLog | 8 ++++++++ m4/extern-inline.m4 | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8634579..2ccfcb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2016-03-05 Bruno Haible <br...@clisp.org> + + extern-inline: port to PGI CC + * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the + keyword 'inline'. + Reported by Adam James Stewart in: + http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html + 2016-02-20 Paul Eggert <egg...@cs.ucla.edu> signbit: port back to pre-C++11 GCC diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index fe282a5..1e578f3 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 @@ -54,6 +54,7 @@ AC_DEFUN([gl_EXTERN_INLINE], ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ : (199901L <= __STDC_VERSION__ \ && !defined __HP_cc \ + && !defined __PGI \ && !(defined __SUNPRO_C && __STDC__))) \ && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) # define _GL_INLINE inline -- 2.6.4