Mailing List Archive

Issue 1375 in cherokee: compilation error with ffmpeg 1.0
Status: New
Owner: ----

New issue 1375 by the.x.c...@gmail.com: compilation error with ffmpeg 1.0
http://code.google.com/p/cherokee/issues/detail?id=1375

What steps will reproduce the problem?
1.Go here to build ffmpeg 1.0
http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide
2. then build cherokee with ffmpeg 1.0
3. compilation error in handler_streaming.c line 383 :
tmp = (hdl->avformat->file_size / secs);
file_size not declared
plus a few warnings about deprecated avformat methods

4. replace 'file_size' with 'probesize' in handler_streaming.c , while
trying to fix compilation

5. build installed success, Open Admin console and add streaming rule
(streaming plugin) ..server cannot start :-)

What is the expected output? What do you see instead?
later in admin tool, trying to start server:
Something just happened while opening a plug-in file
The operating system
reported '/usr/local/lib/cherokee/libplugin_streaming.so: undefined symbol:
lame_close' while trying to
load '/usr/local/lib/cherokee/libplugin_streaming.so'.

What version of the product are you using? On what operating system?
1.2.101-3el5 on Centos

Please provide any additional information below.


_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1375 in cherokee: compilation error with ffmpeg 1.0 [ In reply to ]
Comment #1 on issue 1375 by s.rissm...@creadoo.com: compilation error with
ffmpeg 1.0
http://code.google.com/p/cherokee/issues/detail?id=1375

Can confirm this.

Tried also to patch handler_streaming.c with following patch:

- tmp = (hdl->avformat->file_size / secs);
+ tmp = (avio_size(hdl->avformat) / secs)

Compiled without errors. But if you activate streaming the server don't
strat:

The operating system
reported '/usr/local/lib/cherokee/libplugin_streaming.so: undefined symbol:
av_open_input_file' while trying to
load '/usr/local/lib/cherokee/libplugin_streaming.so'


Details of ffmpeg:

configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
libavutil 52. 3.100 / 52. 3.100
libavcodec 54. 71.100 / 54. 71.100
libavformat 54. 35.100 / 54. 35.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 21.106 / 3. 21.106
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100


So is there a quick patch to get it working again?

Regards

Sven

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
Re: Issue 1375 in cherokee: compilation error with ffmpeg 1.0 [ In reply to ]
Updates:
Status: Fixed
Owner: ste...@konink.de
Labels: Type-Defect Priority-High OpSys-All Component-Logic Maintainability

Comment #2 on issue 1375 by ste...@konink.de: compilation error with ffmpeg
1.0
http://code.google.com/p/cherokee/issues/detail?id=1375

I have fixed this and de deprecation warnings on Github.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev