Opened 16 months ago

Last modified 16 months ago

#66625 assigned defect

ttyd fails to build on Rosetta: error: unknown type name 'using'

Reported by: barracuda156 Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: powerpc, rosetta, snowleopard Cc:
Port: ttyd

Description

Oops, something has broken down.

/opt/local/include/util.h:6:1: error: unknown type name 'using'
    6 | using namespace std;
      | ^~~~~
/opt/local/include/util.h:6:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    6 | using namespace std;
      |                 ^~~
/opt/local/include/util.h:8:10: fatal error: string: No such file or directory
    8 | #include <string>
      |          ^~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ttyd.dir/src/pty.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Whose is this header, /opt/local/include/util.h?

Attachments (1)

ttyd.log (22.5 KB) - added by barracuda156 16 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 in reply to:  description ; Changed 16 months ago by jmroot (Joshua Root)

Replying to barracuda156:

Whose is this header, /opt/local/include/util.h?

Use port provides to check. Probably doesn't matter that much though; the issue is likely -I flags ordered incorrectly (external before internal), but it's hard to know since you didn't attach the log.

Changed 16 months ago by barracuda156

Attachment: ttyd.log added

comment:2 in reply to:  1 Changed 16 months ago by barracuda156

Replying to jmroot:

Replying to barracuda156:

Whose is this header, /opt/local/include/util.h?

Use port provides to check. Probably doesn't matter that much though; the issue is likely -I flags ordered incorrectly (external before internal), but it's hard to know since you didn't attach the log.

Sorry, attached it now.

Note: See TracTickets for help on using tickets.