Opened 3 years ago

Closed 3 years ago

#63393 closed defect (fixed)

gdbm @1.20_0: Error building on Tiger (expected specifier-qualifier-list before 'off_t')

Reported by: evanmiller (Evan Miller) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: tiger Cc:
Port: gdbm

Description

Install log:

:info:build /opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I..  -DIN_GDBM -DLOCALEDIR=\"/opt/local/share/locale\"  -I/opt/local/include  -pipe -Os -arch ppc -MT err.o -MD -MP -MF .deps/err.Tpo -c -o err.o err.c
:info:build In file included from err.c:18:
:info:build gdbm.h:293: error: expected specifier-qualifier-list before 'off_t'
:info:build make[3]: *** [err.o] Error 1

System:

: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

The error occurs with gcc-apple-4.2, with a similar error using gcc-mp-7 (i.e. off_t isn't defined). Previous versions built without issue.

Attachments (1)

gdbm-tiger-gcc-apple-4.2-main.log (22.0 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 kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 7bf19894cd0fd96918961772b68b27e6daad43a0/macports-ports (master):

gdbm: fix build on Tiger

<sys/types.h> is apparently not automatically included
by <stdio.h> on Tiger.

closes: #63393

Note: See TracTickets for help on using tickets.