Opened 12 years ago

Closed 10 years ago

#37141 closed defect (fixed)

HandBrake: error: expected specifier-qualifier-list before ‘Point’ / ‘Rect’

Reported by: wahspilihp (Philip Shaw) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: HandBrake

Description

This does not appear to be a duplicate of #36298.

I am building with the python 2.7 variant.

:info:build ** BUILD FAILED **
:info:build 
:info:build 
:info:build The following build commands failed:
:info:build     ExternalBuildToolExecution external
:info:build (1 failure)
:info:build make: *** [macosx.build] Error 65
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.8/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.8/build" && /usr/bin/make -j4 -w 
:info:build Exit code: 2
:error:build org.macports.build for port HandBrake returned: command execution failed
:debug:build Error code: CHILDSTATUS 54066 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

Attachments (1)

main.log (235.5 KB) - added by wahspilihp (Philip Shaw) 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by wahspilihp (Philip Shaw)

Attachment: main.log added

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Port: HandBrake added; Handbrake removed

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Handbrake build failsHandBrake: error: expected specifier-qualifier-list before ‘Point’ / ‘Rect’

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.

comment:3 in reply to:  2 Changed 12 years ago by wahspilihp (Philip Shaw)

Replying to ryandesign@…:

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?

Yes, it does exist, with those typedefs, and is world-readable.

comment:4 Changed 10 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed

Didn’t encounter this building 0.10.0, so I’ll assume that r132827 fixed it.

Note: See TracTickets for help on using tickets.