[MacPorts] #59783: groff-1.22.4: build fails on 10.6 (clang-9.0, libc++): #error "Please include config.h first."

MacPorts noreply at macports.org
Sat Nov 30 21:31:15 UTC 2019


#59783: groff-1.22.4: build fails on 10.6 (clang-9.0, libc++): #error "Please
include config.h first."
--------------------+--------------------
 Reporter:  kencu   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 {{{
   CXX      src/libs/libgroff/libgroff_a-device.o
 In file included from src/libs/libgroff/assert.cpp:20:
 In file included from
 /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/stdlib.h:100:
 ./lib/math.h:38:3: error: "Please include config.h first."
  #error "Please include config.h first."
   ^
 ./lib/math.h:40:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
 _GL_INLINE_HEADER_BEGIN
 ^
 ./lib/math.h:1537:1: error: expected unqualified-id
 _GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
 ^
 ./lib/stdio.h:344:5: note: expanded from macro '_GL_CXXALIAS_SYS'
     _GL_EXTERN_C int _gl_cxxalias_dummy
     ^
 ./lib/stdio.h:234:30: note: expanded from macro '_GL_EXTERN_C'
 # define _GL_EXTERN_C extern "C"
                              ^
 In file included from src/libs/libgroff/assert.cpp:20:
 In file included from
 /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/stdlib.h:100:
 ./lib/math.h:2888:1: error: unknown type name '_GL_INLINE_HEADER_END'
 _GL_INLINE_HEADER_END
 }}}
 but builds fine when I force the build compiler to clang-5.0:
 {{{
  port -v installed groff
 The following ports are currently installed:
   groff @1.22.4_2 (active) platform='darwin 10' archs='x86_64'
 date='2019-11-30T13:25:24-0800'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59783>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list