Opened 12 years ago

Closed 12 years ago

#34787 closed defect (fixed)

HandBrake @0.9.5: error: Carbon.h: No such file or directory

Reported by: ross@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: amadeus24, jere@…
Port: HandBrake

Description

I am getting an error when trying build HandBrake on OS X Lion 10.7.4, XCode 4.3.2. Error is below and main.log is attached.

--->  Extracting HandBrake
--->  Configuring HandBrake
--->  Building HandBrake
Error: org.macports.build for port HandBrake returned: command execution failed
Please see the log file for port HandBrake for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_HandBrake/HandBrake/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port handbrake failed

Attachments (1)

main.log (531.9 KB) - added by ross@… 12 years ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by ross@…

Attachment: main.log added

main.log

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

Port: @0.9.5 removed
Summary: HandBrake @0.9.5 Error: Processing of port handbrake failedHandBrake @0.9.5: error: Carbon.h: No such file or directory

The log says:

audio_out.c:172:20: error: Carbon.h: No such file or directory

So I guess this uses Carbon, which is an old API, but which should still be available in Lion. Are you sure your Xcode is installed properly, including separately installing the command line tools from within the Xcode app?

Also, it looks like HandBrake 0.9.6 was released in February, so it might be worthwhile for someone to try to update the port to that version.

comment:2 Changed 12 years ago by ross@…

Ah, now that you pointed out the error, I was able to see that the compiler is looking in the wrong place for FlatCarbon:

:info:build /opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I. -I../src -I./..
/src -fpascal-strings -I/Developer/Headers/FlatCarbon  -arch x86_64 -I/opt/local
/include   -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

But /Developer/Headers/FlatCarbon does not exist; the correct path to the Developer dir is:

# xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

I tried adjusting configure.cflags-append in the Portfile but that did not work.

However, the following hack did work:

sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer

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

Cc: ag@… added

Has duplicate #35602.

comment:4 Changed 12 years ago by amadeus24

Tried to do the same and create the mentioned link, but didn't work. Suppose because I have ML installed. The link may work under Lion. In ML the path to the headers is: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer/Headers and the path to Carbon.h is: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/Developer/Headers/FlatCarbon/Carbon.h

My error was maybe a duplicate regarding the error message, but the solution may differ between Lion and Mountain Lion installation. I don't have Lion installation anymore to reflect that.

comment:5 Changed 12 years ago by jere@…

Cc: jere@… added

Cc Me!

comment:6 Changed 12 years ago by h_atac@…

Cc me!

comment:7 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.