Changes between Initial Version and Version 1 of Ticket #67960


Ignore:
Timestamp:
Aug 14, 2023, 3:02:16 PM (9 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

This is happening because the build wishes to use the file sha1.h which is part of the emacs-mac-app source code, but erroneously the flag -I/opt/local/include is being used prior to the project's own -I flags, which means that the file /opt/local/include/sha1.h which must have come from some other port is being used instead. The order of the -I flags must be fixed.

Where did this file come from? Find out with:

port provides /opt/local/include/sha1.h

I could not find a port providing that file by searching https://ports.macports.org.

If you were using macOS 12 or earlier you could work around the problem using trace mode:

sudo port clean emacs-mac-app
sudo port -t install emacs-mac-app

But since you are using macOS 13 and trace mode is broken in macOS 13 and later, the solution would be to sudo port -f deactivate whatever port provided /opt/local/include/sha1.h, then install emacs-mac-app, then, if desired, sudo port activate the port that provided sha1.h again.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #67960

    • Property Status changed from new to assigned
    • Property Summary changed from compile errors with emacs-mac-app 29.1 to emacs-mac-app @29.1: error: unknown type name 'ulonglong'
    • Property Keywords x86_64 removed
    • Property Version changed from to 2.8.1
    • Property Owner set to ryandesign
    • Property Port emacs-mac-app added; emac-mac-app removed
  • Ticket #67960 – Description

    initial v1  
    1 
    21I have tried to install the latest emacs-mac-app port via:
    32
    4 >   sudo port install emacs-mac-app +imagemagick +treesitter +nativecomp +rsvg
    5 
     3{{{
     4sudo port install emacs-mac-app +imagemagick +treesitter +nativecomp +rsvg
     5}}}
    66
    77And I get the following compile errors:
    88
     9{{{
    910:info:build In file included from fns.c:5526:
    1011:info:build /opt/local/include/sha1.h:48:3: error: unknown type name 'ulonglong'
     
    4142:info:build          ^
    4243:info:build fns.c:5903:3: error: call to undeclared function 'sha1_init_ctx'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     44}}}