[MacPorts] #63394: freetds @1.3: Build failure with GCC 4.2 (conflicting types for 'intptr_t')
MacPorts
noreply at macports.org
Fri Aug 20 18:37:24 UTC 2021
#63394: freetds @1.3: Build failure with GCC 4.2 (conflicting types for 'intptr_t')
------------------------+------------------------
Reporter: evanmiller | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: freetds
------------------------+------------------------
Log snippet:
{{{
:info:build libtool: compile: /opt/local/bin/gcc-apple-4.2
-DHAVE_CONFIG_H -I. -I../../include -I../../include -I/opt/local/include
-I/opt/local/include/p11-kit-1 -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -Wpointer-arith
-D_THREAD_SAFE -pipe -Os -arch ppc -Wdeclaration-after-statement -MT
des.lo -MD -MP -MF .deps/des.Tpo -c des.c -fno-common -DPIC -o
.libs/des.o
:info:build In file included from /opt/local/include/nettle/nettle-
types.h:37,
:info:build from /opt/local/include/nettle/des.h:47,
:info:build from ../../include/freetds/utils/des.h:5,
:info:build from des.c:43:
:info:build /opt/local/lib/apple-gcc42/gcc/powerpc-apple-
darwin8/4.2.1/include/stdint.h:84: error: conflicting types for 'intptr_t'
:info:build ../../include/tds_sysdep_public.h:63: error: previous
declaration of 'intptr_t' was here
:info:build /opt/local/lib/apple-gcc42/gcc/powerpc-apple-
darwin8/4.2.1/include/stdint.h:89: error: conflicting types for
'uintptr_t'
:info:build ../../include/tds_sysdep_public.h:64: error: previous
declaration of 'uintptr_t' was here
:info:build make[3]: *** [des.lo] Error 1
}}}
It looks like the compiler's {{{intptr_t}}} is a {{{long}}} but FreeTDS
wants it to be an {{{int}}}. The error does not appear with gcc-mp-7.
System information:
{{{
:debug:sysinfo Mac OS X 10.4.11 (darwin/8.11.0) arch powerpc
:debug:sysinfo MacPorts 2.7.1
:debug:sysinfo Xcode 2.5
:debug:sysinfo SDK 10.4
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.4
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63394>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list