Date: Mon, 08 May 2023 17:01:53 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271316] textproc/augeas: fix build with clang 16 Message-ID: <bug-271316-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271316 Bug ID: 271316 Summary: textproc/augeas: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: puppet@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: puppet@FreeBSD.org Flags: maintainer-feedback?(puppet@FreeBSD.org) Clang 16 has a new error about incompatible integer to pointer conversions, which shows up when building textproc/augeas: augprint.c:1477:24: warning: call to undeclared function 'basename'; ISO = C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] char *program_name =3D basename(argv[0]); ^ augprint.c:1477:9: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion] char *program_name =3D basename(argv[0]); ^ ~~~~~~~~~~~~~~~~~ This is because basename(3) is declared in <libgen.h>, but augprint.c does not include it. Add the include to fix the error. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271316-7788>