bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems building 1.22.2 on Solaris with vendor compiler


From: Albert Chin
Subject: Problems building 1.22.2 on Solaris with vendor compiler
Date: Wed, 28 Aug 2013 22:49:06 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

I've tried building groff-1.22.2 on Solaris with the vendor compiler:
  ...
  gmake[2]: Entering directory `/opt/build/groff-1.22.2/src/roff/troff'
  CC -I. -I. -I/opt/build/groff-1.22.2/src/include 
-I/opt/build/groff-1.22.2/src/include 
-I/opt/build/groff-1.22.2/src/libs/gnulib/lib -DHAVE_CONFIG_H -xO2 
-xtarget=ultra2 -m32 -xarch=sparcvis  -c  env.cpp
  "env.cpp", line 22: Error: Could not open include 
file<src/libs/gnulib/config.h>.
  "/opt/build/groff-1.22.2/src/libs/gnulib/lib/wctype.h", line 689: Error: "," 
expected instead of "extern".
  "/opt/solstudio12.2/prod/include/CC/exception", line 19: Error: "," expected 
instead of "namespace".
  "/opt/solstudio12.2/prod/include/CC/exception", line 24: Error: exception is 
not defined.
  "/opt/solstudio12.2/prod/include/CC/exception", line 26: Error: exception is 
not defined.
  "/opt/solstudio12.2/prod/include/CC/exception", line 27: Error: A declaration 
was expected instead of "}".

The problem is that
/opt/build/groff-1.22.2/src/libs/gnulib/lib/wctype.h needs
src/libs/gnulib/config.h because src/libs/gnulib/lib/wctype.h has:
  _GL_INLINE_HEADER_BEGIN
  #ifndef _GL_WCTYPE_INLINE
  # define _GL_WCTYPE_INLINE _GL_INLINE
  #endif

So, should we modify env.cpp and any other file with the above problem
to #include "src/libs/gnulib/config.h" and -I$(top_builddir) as the
solution? This solution has the side-effect of the following warnings:
  "/opt/build/groff-1.22.2/src/libs/gnulib/config.h", line 266: Warning 
(Anachronism): Attempt to redefine PACKAGE_BUGREPORT without using #undef.
  "/opt/build/groff-1.22.2/src/libs/gnulib/config.h", line 269: Warning 
(Anachronism): Attempt to redefine PACKAGE_NAME without using #undef.
  "/opt/build/groff-1.22.2/src/libs/gnulib/config.h", line 272: Warning 
(Anachronism): Attempt to redefine PACKAGE_STRING without using #undef.
  "/opt/build/groff-1.22.2/src/libs/gnulib/config.h", line 275: Warning 
(Anachronism): Attempt to redefine PACKAGE_TARNAME without using #undef.
  "/opt/build/groff-1.22.2/src/libs/gnulib/config.h", line 281: Warning 
(Anachronism): Attempt to redefine PACKAGE_VERSION without using #undef.

-- 
albert chin (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]