Opened 3 years ago

Closed 3 years ago

#63394 closed defect (fixed)

freetds @1.3: Build failure with GCC 4.2 (conflicting types for 'intptr_t')

Reported by: evanmiller (Evan Miller) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: freetds

Description

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

Attachments (1)

freetds-tiger-gcc42-main.log (105.1 KB) - added by evanmiller (Evan Miller) 3 years ago.

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by evanmiller (Evan Miller)

comment:1 Changed 3 years ago by evanmiller (Evan Miller)

Resolution: fixed
Status: assignedclosed

In 49c7aa441cbfc93d83ca460905ce33cef4cf1d30/macports-ports (master):

freetds: Fix build with GCC 4.2

Closes: #63394

Note: See TracTickets for help on using tickets.