[MacPorts] #54674: git at 2.4.1 error building with gcc-4.2 against curl @7.55.1_0+ssl due to error: expected specifier-qualifier-list before ‘curl_off_t’

MacPorts noreply at macports.org
Mon Aug 28 02:06:58 UTC 2017


#54674: git at 2.4.1 error building with gcc-4.2 against curl @7.55.1_0+ssl due to
error: expected specifier-qualifier-list before ‘curl_off_t’
---------------------------+-----------------
 Reporter:  kencu          |      Owner:
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:
 Keywords:  tiger leopard  |       Port:  git
---------------------------+-----------------
 Another nail in the coffin for the use of gcc42 to build git,
 unfortunately.

 It appears that with the most recent update to curl, git now no longer
 builds using gcc42 (stock system gcc42, 10.5 PPC)
 {{{
 $ /usr/bin/gcc-4.2 --version
 powerpc-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577)
 Copyright (C) 2007 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}

 {{{
 /usr/bin/gcc-4.2 -o imap-send.o -c -MF ./.depend/imap-send.o.d -MQ imap-
 send.o -MMD -MP  -I. -Wall -O2 -I/opt/local/include -arch ppc -I.
 -DPRECOMPOSE_UNICODE -DPROTECT_HFS_DEFAULT=1 -DUSE_LIBPCRE2
 -I/opt/local/include -I/opt/local/include -DUSE_CURL_FOR_IMAP_SEND
 -DNO_OPENSSL -I/opt/local/include -DUSE_ST_TIMESPEC -DSHA1_BLK
 -DSHA1_MAX_BLOCK_SIZE="1024L*1024L*1024L"  -DHAVE_DEV_TTY
 -DHAVE_BSD_SYSCTL  -DAPPLE_COMMON_CRYPTO -DFREAD_READS_DIRECTORIES
 -DNO_MEMMEM -Icompat/regex -DSHELL_PATH='"/bin/sh"' -DPAGER_ENV='"LESS=FRX
 LV=-c"'  imap-send.c
 In file included from http.h:6,
                  from imap-send.c:35:
 /opt/local/include/curl/curl.h:174: error: expected specifier-qualifier-
 list before ‘curl_off_t’
 /opt/local/include/curl/curl.h:190: error: expected declaration specifiers
 or ‘...’ before ‘curl_off_t’
 /opt/local/include/curl/curl.h:191: error: expected declaration specifiers
 or ‘...’ before ‘curl_off_t’
 /opt/local/include/curl/curl.h:192: error: expected declaration specifiers
 or ‘...’ before ‘curl_off_t’
 /opt/local/include/curl/curl.h:193: error: expected declaration specifiers
 or ‘...’ before ‘curl_off_t’
 /opt/local/include/curl/curl.h:262: error: expected specifier-qualifier-
 list before ‘curl_off_t’
 /opt/local/include/curl/curl.h:323: error: expected declaration specifiers
 or ‘...’ before ‘curl_off_t’
 imap-send.c: In function ‘curl_append_msgs_to_imap’:
 imap-send.c:1475: error: ‘curl_off_t’ undeclared (first use in this
 function)
 imap-send.c:1475: error: (Each undeclared identifier is reported only once
 imap-send.c:1475: error: for each function it appears in.)
 make: *** [imap-send.o] Error 1
 }}}

 rolling back to `curl @7.55.0_0+ssl` allows a successful build of git
 using `gcc-4.2`.

 gcc6 builds `git at 2.4.1` against `curl @7.55.1_0+ssl` without issue
 however.

 It looks like we'll have to consider blacklisting gcc42 for building the
 current git against the current curl; this could cause some bootstrap
 issues as gcc6 has a number of build dependencies to consider, and some of
 them may use git... have to check.

--
Ticket URL: <https://trac.macports.org/ticket/54674>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list