Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19555 closed defect (fixed)

VLC @0.9.9a build failure

Reported by: h8spawn@… Owned by: mnick@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), hydrocell@…
Port: vlc

Description

I tried to install the VLC port and the build step fails:

sudo port install vlc
--->  Fetching VLC
--->  Verifying checksum(s) for VLC
--->  Extracting VLC
--->  Applying patches to VLC
--->  Configuring VLC
--->  Building VLC
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_multimedia_VLC/work/vlc-0.9.9a" && make all " returned error 2
Command output: /bin/sh ../../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../..   -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN `top_builddir="../../.." ../../../vlc-config --objcflags plugin libmacosx_plugin_la-applescript.lo` -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-applescript.lo -MD -MP -MF .deps/libmacosx_plugin_la-applescript.Tpo -c -o libmacosx_plugin_la-applescript.lo `test -f 'applescript.m' || echo './'`applescript.m
libtool: compile:  /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN -I/opt/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=macosx -DMODULE_NAME_IS_macosx -DMODULE_STRING=\"macosx\" -O3 -ffast-math -funroll-loops -march=pentium-m -mtune=prescott -fno-omit-frame-pointer -fobjc-exceptions -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-applescript.lo -MD -MP -MF .deps/libmacosx_plugin_la-applescript.Tpo -c applescript.m  -fno-common -DPIC -o .libs/libmacosx_plugin_la-applescript.o
mv -f .deps/libmacosx_plugin_la-applescript.Tpo .deps/libmacosx_plugin_la-applescript.Plo
/bin/sh ../../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../..   -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN `top_builddir="../../.." ../../../vlc-config --objcflags plugin libmacosx_plugin_la-controls.lo` -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-controls.lo -MD -MP -MF .deps/libmacosx_plugin_la-controls.Tpo -c -o libmacosx_plugin_la-controls.lo `test -f 'controls.m' || echo './'`controls.m
libtool: compile:  /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN -I/opt/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=macosx -DMODULE_NAME_IS_macosx -DMODULE_STRING=\"macosx\" -O3 -ffast-math -funroll-loops -march=pentium-m -mtune=prescott -fno-omit-frame-pointer -fobjc-exceptions -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-controls.lo -MD -MP -MF .deps/libmacosx_plugin_la-controls.Tpo -c controls.m  -fno-common -DPIC -o .libs/libmacosx_plugin_la-controls.o
mv -f .deps/libmacosx_plugin_la-controls.Tpo .deps/libmacosx_plugin_la-controls.Plo
/bin/sh ../../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../..   -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN `top_builddir="../../.." ../../../vlc-config --objcflags plugin libmacosx_plugin_la-equalizer.lo` -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-equalizer.lo -MD -MP -MF .deps/libmacosx_plugin_la-equalizer.Tpo -c -o libmacosx_plugin_la-equalizer.lo `test -f 'equalizer.m' || echo './'`equalizer.m
libtool: compile:  /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN -I/opt/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=macosx -DMODULE_NAME_IS_macosx -DMODULE_STRING=\"macosx\" -O3 -ffast-math -funroll-loops -march=pentium-m -mtune=prescott -fno-omit-frame-pointer -fobjc-exceptions -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-equalizer.lo -MD -MP -MF .deps/libmacosx_plugin_la-equalizer.Tpo -c equalizer.m  -fno-common -DPIC -o .libs/libmacosx_plugin_la-equalizer.o
mv -f .deps/libmacosx_plugin_la-equalizer.Tpo .deps/libmacosx_plugin_la-equalizer.Plo
/bin/sh ../../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../..   -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN `top_builddir="../../.." ../../../vlc-config --objcflags plugin libmacosx_plugin_la-interaction.lo` -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-interaction.lo -MD -MP -MF .deps/libmacosx_plugin_la-interaction.Tpo -c -o libmacosx_plugin_la-interaction.lo `test -f 'interaction.m' || echo './'`interaction.m
libtool: compile:  /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN -I/opt/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=macosx -DMODULE_NAME_IS_macosx -DMODULE_STRING=\"macosx\" -O3 -ffast-math -funroll-loops -march=pentium-m -mtune=prescott -fno-omit-frame-pointer -fobjc-exceptions -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-interaction.lo -MD -MP -MF .deps/libmacosx_plugin_la-interaction.Tpo -c interaction.m  -fno-common -DPIC -o .libs/libmacosx_plugin_la-interaction.o
mv -f .deps/libmacosx_plugin_la-interaction.Tpo .deps/libmacosx_plugin_la-interaction.Plo
/bin/sh ../../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../..   -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN `top_builddir="../../.." ../../../vlc-config --objcflags plugin libmacosx_plugin_la-intf.lo` -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-intf.lo -MD -MP -MF .deps/libmacosx_plugin_la-intf.Tpo -c -o libmacosx_plugin_la-intf.lo `test -f 'intf.m' || echo './'`intf.m
libtool: compile:  /usr/bin/gcc-4.0 -mmacosx-version-min=10.4 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -I/opt/local/include -DSYS_DARWIN -I/opt/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DHAVE_RELEASE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=macosx -DMODULE_NAME_IS_macosx -DMODULE_STRING=\"macosx\" -O3 -ffast-math -funroll-loops -march=pentium-m -mtune=prescott -fno-omit-frame-pointer -fobjc-exceptions -O2 -D_INTL_REDIRECT_MACROS -std=gnu99 -DMACOSX_DEPLOYMENT_TARGET=10.4 -MT libmacosx_plugin_la-intf.lo -MD -MP -MF .deps/libmacosx_plugin_la-intf.Tpo -c intf.m  -fno-common -DPIC -o .libs/libmacosx_plugin_la-intf.o
intf.m:218: error: parse error before ')' token
intf.m:220: warning: '@end' must appear in an @implementation context
intf.m: In function '-[VLCMain applicationDidFinishLaunching:]':
intf.m:469: warning: 'VLCMain' may not respond to '-_removeOldPreferences'
intf.m:469: warning: (Messages without a matching method signature
intf.m:469: warning: will be assumed to return 'id' and accept
intf.m:469: warning: '...' as arguments.)
intf.m: In function '-[VLCMain toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:]':
intf.m:792: error: request for member 'frame' in something not a structure or union
make[6]: *** [libmacosx_plugin_la-intf.lo] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

The operating system is Mac OS X 10.4 (Tiger) and the Macports version is 1.7.1.

Change History (17)

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

Owner: changed from macports-tickets@… to max@…
Port: vlc added

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

Cc: ryandesign@… added

VLC has been updated to 1.0.1, but now requires Mac OS X 10.5 (Leopard) or newer. :( See #20349.

comment:3 Changed 15 years ago by hydrocell@…

I get the same problem... what gives??

comment:4 Changed 15 years ago by hydrocell@…

Cc: hydrocell@… added

Cc Me!

comment:5 Changed 15 years ago by mnick@…

Owner: changed from max@… to mnick@…
Status: newassigned

This seems to be an issue with objc code that Xcode 2.5 doesn't like. I don't have access to 10.4 but i'll try to fix this

comment:6 Changed 15 years ago by hydrocell@…

cool... thanks very much!

comment:7 in reply to:  2 Changed 15 years ago by hydrocell@…

For the record, just tried to build VLCr52437 as mentioned on #20349 using svn.

max@…:

I can't test on 10.4, but in theory r52437 should work. I will provide an updated VLC09 port when i'm back in town next week.

Still the same error... so in practice the theory doesn't work.

ie.

intf.m:218: error: parse error before ')' token
intf.m:220: warning: '@end' must appear in an @implementation context
intf.m: In function '-[VLCMain applicationDidFinishLaunching:]':
intf.m:469: warning: 'VLCMain' may not respond to '-_removeOldPreferences'

I don't know anything about programming c, objc etc, but if it's a syntax error based on a bracket ')', must be possible to fix.

Am willing to test any possible fixes for VLC @0.9.9a on OS X 10.4.11 Xcode 2.5 MacPorts 1.8 if you don't have access

comment:8 Changed 15 years ago by mnick@…

The error seems to have been fixed in VLC 0.9.10. I've commited a VLC09 port that should soon show up on rsync. Please let me now if it works on 10.4

comment:9 Changed 15 years ago by hydrocell@…

okay.. nice one, still hasn't synced with me yet, will try again soon.

assuming that:

$ sudo port sync
$ sudo port selfupdate

is all I need to do...

comment:10 Changed 15 years ago by hydrocell@…

sorry, will try getting it using svn...

comment:11 in reply to:  9 Changed 15 years ago by dbevans (David B. Evans)

Replying to hydrocell@…:

assuming that:

$ sudo port sync
$ sudo port selfupdate

is all I need to do...

selfupdate includes sync so you just need to do one or the other.

comment:12 Changed 15 years ago by hydrocell@…

managed to get it using the following:

$ cd /Users/Shared/dports && svn co --revision 57523 http://svn.macports.org/repository/macports/trunk/dports/multimedia/VLC09 multimedia/VLC09/
$ portindex /Users/Shared/dports
$ sudo port install vlc09

currently building will let you know outcome momentarily.

comment:13 Changed 15 years ago by hydrocell@…

results of the build are .. (drum roll) .. Awesome!:

$ sudo port install vlc09        
--->  Computing dependencies for VLC09
--->  Fetching VLC09
--->  Attempting to fetch vlc-0.9.10.tar.bz2 from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/VLC09
--->  Attempting to fetch vlc-0.9.10.tar.bz2 from http://distfiles.macports.org/VLC09
--->  Attempting to fetch vlc-0.9.10.tar.bz2 from http://download.videolan.org/pub/videolan/vlc/0.9.10/
--->  Verifying checksum(s) for VLC09
--->  Extracting VLC09
--->  Applying patches to VLC09
--->  Configuring VLC09
--->  Building VLC09
--->  Staging VLC09 into destroot
--->  Installing VLC09 @0.9.10_0+macosx+mod+mpc+osd+theora+twolame+x264
--->  Activating VLC09 @0.9.10_0+macosx+mod+mpc+osd+theora+twolame+x264
--->  Cleaning VLC09

looks a-okay to me... great job and thanks for organising it so quickly!!

haven't tested it yet, but will report back if there's any problems. thanks again.

comment:14 Changed 15 years ago by mnick@…

Resolution: fixed
Status: assignedclosed

Great, thank for testing it so quickly. fixed in r57523

comment:15 Changed 15 years ago by hydrocell@…

hey, just a quick q... i did a couple of quick tests and whilst my main aim is to use cvlc on the command line for streaming, running vlc with a standard mpeg2 file doesn't result in any playback interface, nor dvd playback... maybe macports vlc is not designed to have an interface, i don't now.

cvlc also doesn't seem to work, an attempt to stream an mpeg2 PS file into an mpeg2 TS container results in only the audio being played in realtime and no output file. I will have to double check my syntax but here's the output:

$ cvlc BehindTheScenes.VOB --sout '#std{access=file,dst=BTS.ts,mux=ts}'
[00000001] main libvlc debug: VLC media player - version 0.9.10 Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure  '--prefix=/opt/local' '--disable-macosx-defaults' '--enable-release' '--enable-macosx' '--enable-macosx-audio' '--enable-a52' '--enable-cddax' '--enable-dvdnav' '--enable-dvdread' '--enable-faad' '--enable-flac' '--enable-quicktime' '--enable-vorbis' '--enable-ogg' '--enable-mad' '--disable-libass' '--enable-asademux' '--enable-dca' '--enable-gnutls' '--enable-ncurses' '--enable-png' '--enable-realrtsp' '--with-macosx-version-min=10.4' '--disable-debug' '--disable-x11' '--disable-xvideo' '--disa
[00000001] main libvlc debug: translation test: code is "C"
Warning: missing argument for option --sout
Try specifying options as '--optionname=value' instead of '--optionname value'
Warning: missing argument for option --sout
Try specifying options as '--optionname=value' instead of '--optionname value'
Warning: missing argument for option --sout
Try specifying options as '--optionname=value' instead of '--optionname value'
[00000371] dummy interface: using the dummy interface module...
[00000461] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:192000
No accelerated IMDCT transform found

as far as I know '--sout' doesn't take options in the format specified in the warning message... at least i've used it like that under linux succesfully.

any ideas? sorry if this is not anything to do with the build.

comment:16 Changed 15 years ago by hydrocell@…

okay cvlc ~worked with an mp4 file, maybe I need to add some flags to the install... will research it... thanks again!

comment:17 Changed 15 years ago by hydrocell@…

sorry... my bad, the VLC09 interface works fine when launched from Applications->Macports->VLC09... cheers!

Note: See TracTickets for help on using tickets.