[MacPorts] #62804: emacs-devel @20210430: error: "Please include config.h first."

MacPorts noreply at macports.org
Fri Feb 28 23:39:34 UTC 2025


#62804: emacs-devel @20210430: error: "Please include config.h first."
--------------------------+----------------------
  Reporter:  pagecp       |      Owner:  drkp
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.4
Resolution:               |   Keywords:  bigsur
      Port:  emacs-devel  |
--------------------------+----------------------

Comment (by ryandesign):

 Replying to [ticket:62804 pagecp]:
 > {{{
 > In file included from malloc/dynarray_at_failure.c:19:
 > In file included from /opt/local/include/dynarray.h:30:
 > }}}

 This line looks like the source of the problem. emacs ships with its own
 dynarray.h header. It didn't intend to include this different
 /opt/local/include/dynarray.h provided by another port. (According to the
 ports web site, the only port installing such a header is hdf4.)

 So try:

 {{{
 sudo port clean emacs-devel
 sudo port -f deactivate hdf4
 sudo port install emacs-devel
 sudo port activate hdf4
 }}}

 To avoid this problem, the order of the `-I` flags in the various emacs
 ports needs to be fixed. `-I/opt/local/include` must not precede the local
 `-I` flags as it currently does.

 This error is also reported in #68414 and #72124.

-- 
Ticket URL: <https://trac.macports.org/ticket/62804#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list