mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
adbaad235b
Building net/ifdepd with clang and lld 13 results in a few warnings, and a link error: cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual -Wredundant-decls -c ifdepd.c -o ifdepd.o ifdepd.c:420:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] free(d_ints); ^ ifdepd.c:418:2: note: previous statement is here if (D) ^ ifdepd.c:434:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] free(s_ints); ^ ifdepd.c:432:2: note: previous statement is here if (S) ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual -Wredundant-decls -o ifdepd ifdepd.o ld: error: undefined symbol: cleanup >>> referenced by ifdepd.c >>> ifdepd.o:(main) >>> referenced by ifdepd.c >>> ifdepd.o:(main) >>> referenced by ifdepd.c >>> ifdepd.o:(main) >>> referenced 1 more times cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 The warnings about misleading indentation are indicating an actual bug, which can be fixed by adding a few braces. The link error is because ifdepd uses an inline function without either a static or an extern specifier. Fix this by adding a static specifier. Approved by: alex@hugo.bmg.gv.at (maintainer) PR: 258512 MFH: 2021Q3
22 lines
482 B
Makefile
22 lines
482 B
Makefile
# Created by: Alexander Hausner <alex@hugo.bmg.gv.at>
|
|
|
|
PORTNAME= ifdepd
|
|
PORTVERSION= 20110412
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://alex.bmg.gv.at/programs/
|
|
|
|
MAINTAINER= alex@hugo.bmg.gv.at
|
|
COMMENT= Interface Dependency daemon
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
PLIST_FILES= bin/ifdepd \
|
|
man/man8/ifdepd.8.gz
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ifdepd ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/ifdepd.8 ${STAGEDIR}${PREFIX}/man/man8
|
|
|
|
.include <bsd.port.mk>
|