[MacPorts] #72686: ldmud build failure: applied_decl.c: error: field name not in record or union initializer
MacPorts
noreply at macports.org
Sun Jul 13 11:20:47 UTC 2025
#72686: ldmud build failure: applied_decl.c: error: field name not in record or
union initializer
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Resolution: | Keywords:
Port: ldmud |
---------------------------+--------------------
Comment (by barracuda156):
Using a modern compiler, it fails eventually on:
{{{
bison --defines=lang.h -o lang.c lang.y
/opt/local/bin/gcc-mp-14 -Os -fwrapv -g -Wall -Wparentheses -Wshadow
-Wstrict-overflow=2 -DMUD_LIB='"/opt/local/var/ldmud"'
-DBINDIR='"/opt/local/bin"' -DERQ_DIR='"/opt/local/libexec"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -c -o
lex.o lex.c
/opt/local/bin/gcc-mp-14 -Os -fwrapv -g -Wall -Wparentheses -Wshadow
-Wstrict-overflow=2 -DMUD_LIB='"/opt/local/var/ldmud"'
-DBINDIR='"/opt/local/bin"' -DERQ_DIR='"/opt/local/libexec"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -c -o
lwobject.o lwobject.c
/opt/local/bin/gcc-mp-14 -Os -fwrapv -g -Wall -Wparentheses -Wshadow
-Wstrict-overflow=2 -DMUD_LIB='"/opt/local/var/ldmud"'
-DBINDIR='"/opt/local/bin"' -DERQ_DIR='"/opt/local/libexec"'
-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -c -o
main.o main.c
main.c: In function 'version':
main.c:1862:21: error: expected ')' before 'PACKAGE_URL'
1862 | "Homepage: " PACKAGE_URL "\n"
| ^~~~~~~~~~~~
| )
main.c:1857:8: note: to match this '('
1857 | fputs(" - a LPMud Game Driver.\n\n"
| ^
main.c:1857:3: error: too few arguments to function 'fputs'
1857 | fputs(" - a LPMud Game Driver.\n\n"
| ^~~~~
In file included from /usr/include/libc.h:30,
from port.h:80,
from driver.h:18,
from main.c:26:
/usr/include/stdio.h:264:10: note: declared here
264 | int fputs(const char * __restrict, FILE * __restrict)
__DARWIN_ALIAS(fputs);
| ^~~~~
make: *** [main.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72686#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list