[MacPorts] #71917: git needs legacy-support for getline: error: implicit declaration of function 'getline'
MacPorts
noreply at macports.org
Thu Jan 23 02:27:18 UTC 2025
#71917: git 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: | Port: git, git-devel
--------------------------+----------------------------
Old Xcode gcc never complained, gcc14 errors out:
{{{
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git/git/work/git-2.48.0/templates'
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_git/git/work/git-2.48.0'
/opt/local/bin/gcc-mp-14 -c -Os -std=gnu99 -arch ppc git-credential-
osxkeychain.c
git-credential-osxkeychain.c: In function 'read_credential':
git-credential-osxkeychain.c:120:28: error: implicit declaration of
function 'getline' [-Wimplicit-function-declaration]
120 | while ((line_len = getline(&buf, &alloc, stdin)) > 0) {
| ^~~~~~~
make: *** [git-credential-osxkeychain.o] Error 1
Command failed: make CFLAGS="-Os -std=gnu99 -arch ppc"
LDFLAGS="-Wl,-headerpad_max_install_names -L/opt/local/lib
-lMacportsLegacySupport -arch ppc" CC=/opt/local/bin/gcc-mp-14
prefix=/opt/local CURLDIR=/opt/local ICONVDIR=/opt/local NO_FINK=1
NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1 V=1
PERL_PATH="/opt/local/bin/perl5.34" NO_PERL_CPAN_FALLBACK=1
LIBPCREDIR=/opt/local USE_LIBPCRE2=1
Exit code: 2
Error: Failed to build git: command execution failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71917>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list