New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34787 (closed defect: fixed)

Opened 12 months ago

Last modified 8 months ago

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: ag@…, 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

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

Change History

Changed 12 months ago by ross@…

main.log

comment:1 Changed 12 months ago by ryandesign@…

  • Port changed from HandBrake @0.9.5 to HandBrake
  • Summary changed from HandBrake @0.9.5 Error: Processing of port handbrake failed to HandBrake @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 months 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 10 months ago by ryandesign@…

  • Cc ag@… added

Has duplicate #35602.

comment:4 Changed 10 months ago by ag@…

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 9 months ago by jere@…

  • Cc jere@… added

Cc Me!

comment:6 Changed 8 months ago by h_atac@…

Cc me!

comment:7 Changed 8 months ago by jeremyhu@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.