Compile error on Gentoo Linux

Forum for questions and support relating to the 1.25.x releases only.
Locked
christophe_y2k
Posts: 102
Joined: Mon Oct 12, 2009 8:47 am
Location: EUROPE-FRANCE-MANDELIEU

Compile error on Gentoo Linux

Post by christophe_y2k »

Hello all ,
on updated Gentoo Linux with latest SVN of ZoneMinder have an issue on compile

Code: Select all


mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -I/usr/include   -D__STDC_CONSTANT_MACROS -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o          zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In destructor ‘virtual FfmpegCamera::~FfmpegCamera()’:
zm_ffmpeg_camera.cpp:61:9: attention : ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1706)
zm_ffmpeg_camera.cpp:61:45: attention : ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1706)
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:94:10: attention : ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avf         ormat.h:1480)
zm_ffmpeg_camera.cpp:94:76: attention : ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avf         ormat.h:1480)
zm_ffmpeg_camera.cpp:98:10: attention : ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1526)
zm_ffmpeg_camera.cpp:98:46: attention : ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1526)
zm_ffmpeg_camera.cpp:125:10: attention : ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4155)
zm_ffmpeg_camera.cpp:125:46: attention : ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4155)
mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -I/usr/include   -D__STDC_CONSTANT_MACROS -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_im         age.cpp
zm_image.cpp: In member function ‘void Image::Blend(const Image&, int) const’:
zm_image.cpp:777:44: attention : operation on ‘pdest’ may be undefined
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -I/usr/include   -D__STDC_CONSTANT_MACROS -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm         _local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In member function ‘void LocalCamera::Terminate()’:
zm_local_camera.cpp:744:49: erreur: invalid conversion from ‘__u32’ to ‘v4l2_buf_type’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::PrimeCapture()’:
zm_local_camera.cpp:1524:49: erreur: invalid conversion from ‘__u32’ to ‘v4l2_buf_type’
make[2]: *** [zm_local_camera.o] Erreur 1
make[2] : on quitte le répertoire « /usr/share/zoneminder/src »
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /usr/share/zoneminder »
make: *** [all] Erreur 2
Info about my system

Code: Select all

System uname: Linux-3.5.7-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X3450_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Fri, 30 Nov 2012 15:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo

Code: Select all

ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec  7 2012 08:48:17 with gcc 4.5.4
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -mtune=native -O2 -pipe' --extra-cflags='-march=native -mtune=native -O2 -pipe' --extra-cxxflags='-march=native -mtune=native -O2 -pipe' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-vdpau --enable-runtime-cpudetect --enable-openssl --enable-nonfree --enable-gnutls --enable-libmp3lame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-libcdio --enable-libdc1394 --enable-openal --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss --enable-x11grab --enable-libpulse --disable-outdev=oss --enable-libfreetype --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libdirac  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Hyper fast Audio and Video encoder

edit: since 17/12/2012 no probleme to compile on updated gentoo linux with another SVN branch

http://www.zoneminder.com/forums/viewt ... 9&t=20587
Locked