Opened 13 years ago

Closed 12 years ago

#30863 closed defect (fixed)

HandBrake 0.9.5 compilation fails on x86_64

Reported by: Greisby (Greisberger Christophe) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: HandBrake

Description

Other infos:
OS: Snow Leopard 10.6.8
Arch: x86_64
FS: case sensitive
XCode: 4.0.2

The compilation fails with:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_sem_timedwait", referenced from:
:info:build       _audio_read_packet in libavdevice.a(jack_audio.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make[2]: *** [ffprobe_g] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build Undefined symbols for architecture x86_64:
:info:build   "_sem_timedwait", referenced from:
:info:build       _audio_read_packet in libavdevice.a(jack_audio.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make[2]: *** [ffplay_g] Error 1
:info:build make[1]: *** [contrib/ffmpeg/.stamp.build] Error 2

I saw that configure has an option to disable jack.
A variant without jack would be welcomed.

Change History (2)

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…

comment:2 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

See upstream http://ffmpeg.org/trac/ffmpeg/ticket/43.

Fixed in r88444 by applying upstream patch to the ffmpeg source before building. Can you please try to build this on Snow Leopard? It's still failing for me on Lion with

/Developer/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -fasm-blocks -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -I/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/../build/macosx/HandBrake.build/HandBrake.hmap -I/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/../build/include -I../build/libhb -I/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/../build/macosx/HandBrake.build/DerivedSources/x86_64 -I/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/../build/macosx/HandBrake.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/../build -F../macosx -c /opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/HBQueueController.mm -o /opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/../build/macosx/HandBrake.build/Objects-normal/x86_64/HBQueueController.o
/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/HBQueueController.mm:202:34: warning: comparison of distinct pointer types ('id<NSWindowDelegate>' and 'HBQueueController *')
    if( [[self window] delegate] == self )
        ~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
/opt/local/var/macports/build/_opt_dports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.5/macosx/HBQueueController.mm:310:27: error: cannot initialize a parameter of type 'id<NSToolbarDelegate>' with an lvalue of type 'HBQueueController *'
    [toolbar setDelegate: self];
                          ^~~~
/System/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:82:45: note: passing argument to parameter 'delegate' here
Note: See TracTickets for help on using tickets.