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 ([email protected]) _______________________________________________ bug-groff mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-groff
