[MacPorts] #71914: libarchive needs legacy-support for getline: error: implicit declaration of function 'getline'
MacPorts
noreply at macports.org
Wed Jan 22 23:12:23 UTC 2025
#71914: libarchive needs legacy-support for getline: error: implicit declaration of
function 'getline'
-----------------------------------------+------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: snowleopard, leopard, tiger | Port: libarchive
-----------------------------------------+------------------------
{{{
mv -f cat/.deps/bsdcat-cmdline.Tpo cat/.deps/bsdcat-cmdline.Po
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I./libarchive
-I./libarchive_fe -DLIBARCHIVE_STATIC -I/opt/local/include
-I/opt/local/include/libxml2 -pipe -Os -arch ppc -Wall -Wformat -Wformat-
security -fvisibility=hidden -D__LIBARCHIVE_ENABLE_VISIBILITY -MT unzip
/bsdunzip-cmdline.o -MD -MP -MF unzip/.deps/bsdunzip-cmdline.Tpo -c -o
unzip/bsdunzip-cmdline.o `test -f 'unzip/cmdline.c' || echo
'./'`unzip/cmdline.c
unzip/bsdunzip.c: In function 'handle_existing_file':
unzip/bsdunzip.c:477:31: error: implicit declaration of function 'getline'
[-Wimplicit-function-declaration]
477 | len = getline(path, &alen, stdin);
| ^~~~~~~
make[1]: *** [unzip/bsdunzip-bsdunzip.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f unzip/.deps/bsdunzip-cmdline.Tpo unzip/.deps/bsdunzip-cmdline.Po
mv -f cpio/.deps/bsdcpio-cpio.Tpo cpio/.deps/bsdcpio-cpio.Po
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71914>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list