[MacPorts] #72304: rmlint @2.10.3 fails to build: cmdline.h: error: redefinition of 'getdelim'
MacPorts
noreply at macports.org
Mon Apr 7 13:21:37 UTC 2025
#72304: rmlint @2.10.3 fails to build: cmdline.h: error: redefinition of 'getdelim'
--------------------------+-------------------------
Reporter: barracuda156 | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: rmlint
--------------------------+-------------------------
{{{
/opt/local/var/macports/build/_opt_local_ppcports_sysutils_rmlint/rmlint/work/compwrap/cc/opt/local/bin
/gcc-mp-14 -o lib/treemerge.o -c -Os -arch ppc
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_64
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_64 -std=c11 -pipe -D_GNU_SOURCE
-fPIC -Wno-cast-function-type -Wall -W -Wextra -Winit-self -Wstrict-
aliasing -Wmissing-include-dirs -Wuninitialized -Wstrict-prototypes -Wno-
implicit-fallthrough -Werror=undef -DG_DISABLE_ASSERT -DNDEBUG -O2
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include lib/treemerge.c
In file included from /usr/include/string.h:148,
from /opt/local/include/glib-2.0/glib/galloca.h:35,
from /opt/local/include/glib-2.0/glib.h:32,
from lib/pathtricia.c:26:
In function '__inline_strncpy_chk',
inlined from 'rm_path_iter_init' at lib/pathtricia.c:105:5:
/usr/include/secure/_string.h:116:10: warning: '__builtin_strncpy'
specified bound 1024 equals destination size [-Wstringop-truncation]
116 | return __builtin___strncpy_chk (__dest, __src, __len,
__darwin_obsz(__dest));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/cmdline.c: In function 'getdelim':
lib/cmdline.c:100:27: warning: comparison of integer expressions of
different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int'
[-Wsign-compare]
100 | if (bytes >= *n - 1) {
| ^~
In file included from lib/cmdline.c:133:
lib/cmdline.h: At top level:
lib/cmdline.h:69:9: error: redefinition of 'getdelim'
69 | ssize_t getdelim(char **restrict lineptr, size_t *restrict n, int
delimiter,
| ^~~~~~~~
lib/cmdline.c:62:9: note: previous definition of 'getdelim' with type
'ssize_t(char ** restrict, size_t * restrict, int, FILE * restrict)'
{aka 'long int(char ** restrict, long unsigned int * restrict, int,
FILE * restrict)'}
62 | ssize_t getdelim(char **restrict lineptr, size_t *restrict n, int
delimiter,
| ^~~~~~~~
lib/cmdline.h: In function 'getdelim':
lib/cmdline.h:106:27: warning: comparison of integer expressions of
different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int'
[-Wsign-compare]
106 | if (bytes >= *n - 1) {
| ^~
lib/cmdline.h: At top level:
lib/cmdline.h:132:9: error: redefinition of 'getline'
132 | ssize_t getline(char **restrict lineptr, size_t *restrict n,
| ^~~~~~~
lib/cmdline.c:126:9: note: previous definition of 'getline' with type
'ssize_t(char ** restrict, size_t * restrict, FILE * restrict)' {aka
'long int(char ** restrict, long unsigned int * restrict, FILE *
restrict)'}
126 | ssize_t getline(char **restrict lineptr, size_t *restrict n,
| ^~~~~~~
scons: *** [lib/cmdline.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72304>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list