Re: [MacPorts] #37141: HandBrake: error: expected specifier-qualifier-list before ‘Point’ / ‘Rect’ (was: Handbrake build fails)
MacPorts
noreply at macports.org
Sun Nov 25 22:20:41 PST 2012
#37141: HandBrake: error: expected specifier-qualifier-list before ‘Point’ / ‘Rect’
---------------------------+--------------------------------
Reporter: wahspilihp@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: HandBrake |
---------------------------+--------------------------------
Comment (by ryandesign@…):
The first error I see in the log is:
{{{
:info:build Making all in examples
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-
gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../src -I./../src -fpascal-strings
-I/Developer/Headers/FlatCarbon -arch x86_64 -mmacosx-version-min=10.8
-arch x86_64 -I/opt/local/include -arch x86_64 -mmacosx-version-min=10.8
-arch x86_64 -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes
-Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow
-Wpointer-arith -pipe -c sndfile-resample.c
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-
gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../src -I./../src -fpascal-strings
-I/Developer/Headers/FlatCarbon -arch x86_64 -mmacosx-version-min=10.8
-arch x86_64 -I/opt/local/include -arch x86_64 -mmacosx-version-min=10.8
-arch x86_64 -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes
-Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow
-Wpointer-arith -pipe -c varispeed-play.c
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-
gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I../src -I./../src -fpascal-strings
-I/Developer/Headers/FlatCarbon -arch x86_64 -mmacosx-version-min=10.8
-arch x86_64 -I/opt/local/include -arch x86_64 -mmacosx-version-min=10.8
-arch x86_64 -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes
-Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow
-Wpointer-arith -pipe -c audio_out.c
:info:build autoreconf: running: glibtoolize --copy --force
:info:build autoreconf: running: glibtoolize --copy --force
:info:build In file included from
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:31,
:info:build from
/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
:info:build from
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18,
:info:build from
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
:info:build from audio_out.c:172:
:info:build
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:240:
error: expected specifier-qualifier-list before ‘Point’
:info:build
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:246:
error: expected specifier-qualifier-list before ‘Rect’
:info:build
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:261:
error: expected specifier-qualifier-list before ‘Point’
:info:build
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:284:
error: expected specifier-qualifier-list before ‘Point’
:info:build
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:312:
error: expected specifier-qualifier-list before ‘Rect’
:info:build
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:327:
error: expected specifier-qualifier-list before ‘Point’
}}}
Point and Rect are of course types dating back to the original Macintosh
Toolbox, which these days should be defined in /usr/include/MacTypes.h.
Can you verify that this file exists and that it contains these
definitions?
{{{
$ grep 'typedef \(Point\|Rect\)' /usr/include/MacTypes.h
typedef Point * PointPtr;
typedef Rect * RectPtr;
}}}
If not, please try reinstalling Xcode command line tools.
--
Ticket URL: <https://trac.macports.org/ticket/37141#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list