[Bug 271316] textproc/augeas: fix build with clang 16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 May 2023 17:01:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271316 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 = 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 = 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. -- You are receiving this mail because: You are the assignee for the bug.