Opened 15 months ago

Last modified 15 months ago

#60063 assigned defect

xdm @1.1.12 fails to build on <= 10.8

Reported by: jmroot (Joshua Root) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula)
Port: xdm

Description

https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/15608/steps/install-port/logs/stdio

In file included from auth.c:76:
/usr/include/net/if.h:306:19: error: field has incomplete type 'struct sockaddr'
                struct  sockaddr ifru_addr;

IIRC you need to include sys/socket.h before net/if.h. That would be done via dm_socket.h if TCPCONN were defined, but it's not because we don't configure with --enable-tcp-transport. It's not clear from my quick inspection what (if anything) the net/if.h include is needed for in these circumstances.

Change History (1)

comment:1 Changed 15 months ago by jmroot (Joshua Root)

Cc: Schamschula added

[cfb7200a702f63a69c4302d62a7c9074218796a2/macports-ports] removed the use of a patch that appears to have been working around this issue (though didn't delete the patch itself). Not sure if it was the most correct fix, but it seemed to work before.

Note: See TracTickets for help on using tickets.