ffmpeg fails to build against ???

LLLActive at GMX.Net LLLActive at GMX.Net
Tue Jan 29 08:11:40 PST 2013


On 25.01.13 18:27, MacPorts wrote:
> #37733: ffmpeg fails to build against libsdl-devel
> --------------------------+------------------------
>    Reporter:  lllactive@…  |      Owner:  jeremyhu@…
>        Type:  defect       |     Status:  closed
>    Priority:  Normal       |  Milestone:
>   Component:  ports        |    Version:  2.1.2
> Resolution:  worksforme   |   Keywords:
>        Port:  ffmpeg       |
> --------------------------+------------------------
> Changes (by jeremyhu@…):
>
>   * status:  new => closed
>   * resolution:   => worksforme
>
>
Hi all,

Thanks for the solution, but I have the same problem on a second MBP 
with a clean Lion install. I installed MacPorts new and made a 'sudo 
port seffupdate'. With the 'sudo port update outdated' I have the ffmpeg 
error again, but now there seems to be another problem causing 
it.Cleaning ffmpeg did not help with 'sudo port clean ffmpeg'; it 
cleaned without comment.

In the attachment "MP-MM-ffmpeg-20130129_1538.log" is the logfile. (Hope 
it gets through).

BTW, after a 'sudo port selfupdate' the message comes to do a 'port 
upgrade outdated'. When I do it I often get the error-message "Error: No 
ports match the given expression". Only after some new selfupdate or 
closing the CLI and restarting it, it 'sometimes' works. Also attached 
as MP-upgrade-error-txt.

Regards,
Dreiel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130129/83e747a8/attachment.html>
-------------- next part --------------
version:1
:debug:main Executing org.macports.main (ffmpeg)
:debug:main Skipping completed org.macports.archivefetch (ffmpeg)
:debug:main Skipping completed org.macports.fetch (ffmpeg)
:debug:main Skipping completed org.macports.checksum (ffmpeg)
:debug:main Skipping completed org.macports.extract (ffmpeg)
:debug:main Skipping completed org.macports.patch (ffmpeg)
:debug:main Skipping completed org.macports.configure (ffmpeg)
:debug:build build phase started at Mon Jan 28 17:22:19 CET 2013
:notice:build --->  Building ffmpeg
:debug:build Executing org.macports.build (ffmpeg)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' V='1'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.1" && /opt/local/bin/gmake -j2 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.1" && /opt/local/bin/gmake -j2 -w all 
:info:build gmake: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.1'
:info:build rm -f libavdevice/libavdevice.a
:info:build ar rc libavdevice/libavdevice.a libavdevice/alldevices.o libavdevice/avdevice.o libavdevice/lavfi.o libavdevice/sdl.o
:info:build /usr/bin/clang -dynamiclib -Wl,-single_module -Wl,-install_name,/opt/local/lib/libavutil.52.dylib,-current_version,52.13.100,-compatibility_version,52 -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -L/opt/local/lib -arch x86_64  -Wl,-dynamic,-search_paths_first -o libavutil/libavutil.52.dylib libavutil/adler32.o libavutil/aes.o libavutil/audio_fifo.o libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o libavutil/channel_layout.o libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o libavutil/error.o libavutil/eval.o libavutil/fifo.o libavutil/file.o libavutil/float_dsp.o libavutil/imgutils.o libavutil/intfloat_readwrite.o libavutil/intmath.o libavutil/lfg.o libavutil/lls.o libavutil/log.o libavutil/log2_tab.o libavutil/lzo.o libavutil/mathematics.o libavutil/md5.o libavutil/mem.o libavutil/opt.o libavutil/parseutils.o libavutil/pixdesc.o libavutil/random_seed.o libavutil/rational.o libavutil/rc4.o libavutil/samplefmt.o libavutil/sha.o libavutil/time.o libavutil/timecode.o libavutil/tree.o libavutil/utils.o libavutil/x86/cpu.o libavutil/x86/cpuid.o libavutil/x86/float_dsp.o libavutil/x86/float_dsp_init.o libavutil/xga_font_data.o libavutil/xtea.o  -ljack -L/opt/local/lib -lSDL -lxvidcore -lx264 -lvpx -lvpx -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lspeex -L/opt/local/lib -lschroedinger-1.0 -L/opt/local/lib -lopus -lopenjpeg -lmp3lame -lmodplug -L/opt/local/lib -lfreetype -lm -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore -lbz2 -lz 
:info:build ranlib libavdevice/libavdevice.a
:info:build /usr/bin/clang  -o doc/print_options doc/print_options.o -lm
:info:build /usr/bin/clang -I. -I./ -I/opt/local/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -O2 -DHAVE_LRINTF -I/opt/local/include -arch x86_64   -std=c99 -fomit-frame-pointer -fPIC -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/opus -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/orc-0.4 -D_THREAD_SAFE -I/opt/local/include/SDL -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes  -D_THREAD_SAFE -I/opt/local/include/SDL -MMD -c -o ffplay.o ffplay.c
:info:build /usr/bin/clang -I. -I./ -I/opt/local/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -O2 -DHAVE_LRINTF -I/opt/local/include -arch x86_64   -std=c99 -fomit-frame-pointer -fPIC -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/opus -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/orc-0.4 -D_THREAD_SAFE -I/opt/local/include/SDL -g -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes   -MMD -c -o ffprobe.o ffprobe.c
:info:build ffplay.c:1569:81: error: implicit declaration of function 'SDL_EVENTMASK' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         if (is->videoq.abort_request && SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_EVENTMASK(FF_ALLOC_EVENT)) != 1) {
:info:build                                                                                 ^
:info:build ffplay.c:1569:110: error: too few arguments to function call, expected 5, have 4
:info:build         if (is->videoq.abort_request && SDL_PeepEvents(&event, 1, SDL_GETEVENT, SDL_EVENTMASK(FF_ALLOC_EVENT)) != 1) {
:info:build                                         ~~~~~~~~~~~~~~                                                       ^
:info:build /opt/local/include/SDL/SDL_events.h:525:1: note: 'SDL_PeepEvents' declared here
:info:build extern DECLSPEC int SDLCALL SDL_PeepEvents(SDL_Event * events, int numevents,
:info:build ^
:info:build ffplay.c:2407:58: error: too few arguments to function call, expected 3, have 2
:info:build         is->video_tid = SDL_CreateThread(video_thread, is);
:info:build                         ~~~~~~~~~~~~~~~~                 ^
:info:build /opt/local/include/SDL/SDL_thread.h:144:1: note: 'SDL_CreateThread' declared here
:info:build extern DECLSPEC SDL_Thread *SDLCALL
:info:build ^
:info:build ffplay.c:2414:64: error: too few arguments to function call, expected 3, have 2
:info:build         is->subtitle_tid = SDL_CreateThread(subtitle_thread, is);
:info:build                            ~~~~~~~~~~~~~~~~                    ^
:info:build /opt/local/include/SDL/SDL_thread.h:144:1: note: 'SDL_CreateThread' declared here
:info:build extern DECLSPEC SDL_Thread *SDLCALL
:info:build ^
:info:build ffplay.c:2640:58: error: too few arguments to function call, expected 3, have 2
:info:build     is->refresh_tid = SDL_CreateThread(refresh_thread, is);
:info:build                       ~~~~~~~~~~~~~~~~                   ^
:info:build /opt/local/include/SDL/SDL_thread.h:144:1: note: 'SDL_CreateThread' declared here
:info:build extern DECLSPEC SDL_Thread *SDLCALL
:info:build ^
:info:build ffplay.c:2842:56: error: too few arguments to function call, expected 3, have 2
:info:build     is->read_tid     = SDL_CreateThread(read_thread, is);
:info:build                        ~~~~~~~~~~~~~~~~                ^
:info:build /opt/local/include/SDL/SDL_thread.h:144:1: note: 'SDL_CreateThread' declared here
:info:build extern DECLSPEC SDL_Thread *SDLCALL
:info:build ^
:info:build 6 errors generated.
:info:build gmake: *** [ffplay.o] Error 1
:info:build gmake: *** Waiting for unfinished jobs....
:info:build gmake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-1.1.1" && /opt/local/bin/gmake -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port ffmpeg returned: command execution failed
:debug:build Error code: CHILDSTATUS 46303 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"
:info:build Warning: targets not executed for ffmpeg: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install ffmpeg
:debug:build Registry error: ffmpeg not registered as installed & active.
    invoked from within
"registry_active ${subport}"
    invoked from within
"$workername eval registry_active \${subport}"
:notice:build Please see the log file for port ffmpeg for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_ffmpeg/ffmpeg/main.log
-------------- next part --------------
/Users/MM
MM:~ MM$ sudo port upgrade outdated
Error: No ports matched the given expression
MM:~ MM$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
  
MM:~ MM$ sudo port upgrade outdated
Error: No ports matched the given expression
MM:~ MM$ 
  
 


More information about the macports-users mailing list