make errors - openSuSE 42

Forum for questions and support relating to the 1.28.x releases only.
Locked
ScorpionSting
Posts: 3
Joined: Wed Dec 02, 2015 7:27 am

make errors - openSuSE 42

Post by ScorpionSting »

When I was building on openSuSE 13.2 at work today, I got the same errors but it ran over them and the install appeared to be fine.... openSuSE 42 appears to be more strict and is stopping at the first error.

The cmake CMakeLists.txt succeeded.

Code: Select all

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.8") 
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found CURL: /usr/lib64/libcurl.so (found version "7.37.0") 
-- Looking for curl/curl.h
-- Looking for curl/curl.h - found
-- Found JPEG: /usr/lib64/libjpeg.so  
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "2.0.0") 
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - not found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - not found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - not found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Found Perl: /usr/bin/perl (found version "5.18.2") 
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/lib/perl5/5.18.2/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/lib/perl5/vendor_perl/5.18.2/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/lib/perl5/vendor_perl/5.18.2/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/lib/perl5/5.18.2/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi/Sys/Mmap.pm
-- Found PerlModules: TRUE  
-- Detected web server user: wwwrun
-- Using web user: wwwrun
-- Using web group: wwwrun
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- checking for module 'polkit-gobject-1'
--   found polkit-gobject-1, version 0.113
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.44.1
-- Found GLIB2: /usr/lib64/libglib-2.0.so  
-- Found Polkit: /usr/lib64/libpolkit-gobject-1.so  
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Optional libraries found: zlib cURL OpenSSL PCRE GCrypt AVCodec AVUtil
-- Optional libraries not found: GnuTLS AVFormat AVDevice SWScale libVLC
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /data/ZoneMinder-1.28.1
The make fails:

Code: Select all

Scanning dependencies of target zm
[  1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[  3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
[  5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[  7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[  8%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 10%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 12%] Building CXX object src/CMakeFiles/zm.dir/zm_curl_camera.cpp.o
[ 14%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 17%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 19%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /data/ZoneMinder-1.28.1/src/zm_event.cpp:34:0:
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:45:7: error: use of enum ‘PixelFormat’ without previous declaration
  enum PixelFormat pf;
       ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:46:2: error: ‘AVOutputFormat’ does not name a type
  AVOutputFormat *of;
  ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:47:2: error: ‘AVFormatContext’ does not name a type
  AVFormatContext *ofc;
  ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:48:2: error: ‘AVStream’ does not name a type
  AVStream *ost;
  ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:49:2: error: ‘AVCodec’ does not name a type
  AVCodec *codec;
  ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:50:2: error: ‘AVFrame’ does not name a type
  AVFrame *opicture;
  ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:51:2: error: ‘AVFrame’ does not name a type
  AVFrame *tmp_opicture;
  ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:64:5: error: ‘AVPacket’ does not name a type
     AVPacket** packet_buffers;
     ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.h:66:20: error: ‘AVPacket’ has not been declared
     int SendPacket(AVPacket *packet);
                    ^
/data/ZoneMinder-1.28.1/src/zm_event.cpp: In member function ‘virtual void EventStream::processCommand(const StreamBase::CmdMsg*)’:
/data/ZoneMinder-1.28.1/src/zm_event.cpp:882:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if ( (mode == MODE_SINGLE) && (curr_frame_id == event_data->frame_count) )
                                                                  ^
src/CMakeFiles/zm.dir/build.make:302: recipe for target 'src/CMakeFiles/zm.dir/zm_event.cpp.o' failed
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
CMakeFiles/Makefile2:168: recipe for target 'src/CMakeFiles/zm.dir/all' failed
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: make errors - openSuSE 42

Post by knight-of-ni »

This is a common error message that occurs when the build cannot find the ffmpeg libraries.
The root cause is because the ffmpeg developers started putting their libraries under /usr/include/ffmpeg, rather than /usr/inclucde

I used to recommend just creating symlinks on your filesystem:

Code: Select all

ln -sft /usr/include /usr/include/ffmpeg/{libavcodec,libavdevice,libavfilter,libavformat,libavresample,libavutil,libpostproc,libswresample,libswscale}
However, we have since modified cmake, following the 1.28.1 release, to set up the build properly:
https://github.com/bill-mcgonigle/ZoneM ... 3c98cfc1a4

Either solution will work.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
ScorpionSting
Posts: 3
Joined: Wed Dec 02, 2015 7:27 am

Re: make errors - openSuSE 42

Post by ScorpionSting »

Thanks....that did the trick....there are some warning complaints about depreciated calls (ffmpeg-devel-2.8.3-30.1.x86_64)

Code: Select all

Scanning dependencies of target zm
[  1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[  3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
[  5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[  7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[  8%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 10%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 12%] Building CXX object src/CMakeFiles/zm.dir/zm_curl_camera.cpp.o
[ 14%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 17%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 19%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
/data/ZoneMinder-1.28.1/src/zm_event.cpp: In member function ‘virtual void EventStream::processCommand(const StreamBase::CmdMsg*)’:
/data/ZoneMinder-1.28.1/src/zm_event.cpp:882:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if ( (mode == MODE_SINGLE) && (curr_frame_id == event_data->frame_count) )
                                                                  ^
[ 21%] Building CXX object src/CMakeFiles/zm.dir/zm_exception.cpp.o
[ 22%] Building CXX object src/CMakeFiles/zm.dir/zm_file_camera.cpp.o
[ 24%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg_camera.cpp.o
/data/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp: In member function ‘int FfmpegCamera::OpenFfmpeg()’:
/data/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp:323:17: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mRawFrame = avcodec_alloc_frame();
                 ^
/data/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp:323:37: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mRawFrame = avcodec_alloc_frame();
                                     ^
/data/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp:326:14: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mFrame = avcodec_alloc_frame();
              ^
/data/ZoneMinder-1.28.1/src/zm_ffmpeg_camera.cpp:326:34: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mFrame = avcodec_alloc_frame();
                                  ^
[ 26%] Building CXX object src/CMakeFiles/zm.dir/zm_image.cpp.o
[ 28%] Building CXX object src/CMakeFiles/zm.dir/zm_jpeg.cpp.o
[ 29%] Building CXX object src/CMakeFiles/zm.dir/zm_libvlc_camera.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zm.dir/zm_local_camera.cpp.o
/data/ZoneMinder-1.28.1/src/zm_local_camera.cpp: In constructor ‘LocalCamera::LocalCamera(int, const string&, int, int, bool, unsigned int, const string&, int, int, int, int, int, int, int, int, bool, unsigned int)’:
/data/ZoneMinder-1.28.1/src/zm_local_camera.cpp:614:16: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
   tmpPicture = avcodec_alloc_frame();
                ^
/data/ZoneMinder-1.28.1/src/zm_local_camera.cpp:614:36: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
   tmpPicture = avcodec_alloc_frame();
                                    ^
/data/ZoneMinder-1.28.1/src/zm_local_camera.cpp: In member function ‘void LocalCamera::Initialise()’:
/data/ZoneMinder-1.28.1/src/zm_local_camera.cpp:844:24: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
   capturePictures[i] = avcodec_alloc_frame();
                        ^
/data/ZoneMinder-1.28.1/src/zm_local_camera.cpp:844:44: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
   capturePictures[i] = avcodec_alloc_frame();
                                            ^
[ 33%] Building CXX object src/CMakeFiles/zm.dir/zm_monitor.cpp.o
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp: In member function ‘bool Monitor::MonitorLink::connect()’:
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp:129:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         else if ( map_stat.st_size < mem_size )
                                      ^
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp: In member function ‘bool Monitor::connect()’:
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp:507:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if ( map_stat.st_size != mem_size && purpose == CAPTURE ) {
                              ^
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp:515:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     } else if ( map_stat.st_size != mem_size ) {
                                     ^
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp: In static member function ‘static Monitor* Monitor::Load(int, bool, Monitor::Purpose)’:
/data/ZoneMinder-1.28.1/src/zm_monitor.cpp:2599:13: warning: ‘v4l_multi_buffer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             );
             ^
[ 35%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg.cpp.o
/data/ZoneMinder-1.28.1/src/zm_ffmpeg.cpp: In constructor ‘SWScale::SWScale()’:
/data/ZoneMinder-1.28.1/src/zm_ffmpeg.cpp:79:18: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
  input_avframe = avcodec_alloc_frame();
                  ^
/data/ZoneMinder-1.28.1/src/zm_ffmpeg.cpp:79:38: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
  input_avframe = avcodec_alloc_frame();
                                      ^
/data/ZoneMinder-1.28.1/src/zm_ffmpeg.cpp:85:19: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
  output_avframe = avcodec_alloc_frame();
                   ^
/data/ZoneMinder-1.28.1/src/zm_ffmpeg.cpp:85:39: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
  output_avframe = avcodec_alloc_frame();
                                       ^
[ 36%] Building CXX object src/CMakeFiles/zm.dir/zm_mpeg.cpp.o
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp: In member function ‘void VideoStream::OpenStream()’:
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp:326:14: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
   opicture = avcodec_alloc_frame( );
              ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp:326:35: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
   opicture = avcodec_alloc_frame( );
                                   ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp:347:19: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
    tmp_opicture = avcodec_alloc_frame( );
                   ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp:347:40: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
    tmp_opicture = avcodec_alloc_frame( );
                                        ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp: In member function ‘double VideoStream::ActuallyEncodeFrame(const uint8_t*, int, bool, unsigned int)’:
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp:653:12: warning: ‘AVCodecContext::coded_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3024) [-Wdeprecated-declarations]
    if ( c->coded_frame->key_frame )
            ^
/data/ZoneMinder-1.28.1/src/zm_mpeg.cpp:653:12: warning: ‘AVCodecContext::coded_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3024) [-Wdeprecated-declarations]
[ 38%] Building CXX object src/CMakeFiles/zm.dir/zm_poly.cpp.o
[ 40%] Building CXX object src/CMakeFiles/zm.dir/zm_regexp.cpp.o
[ 42%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera.cpp.o
[ 43%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera_http.cpp.o
[ 45%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera_rtsp.cpp.o
/data/ZoneMinder-1.28.1/src/zm_remote_camera_rtsp.cpp: In member function ‘virtual int RemoteCameraRtsp::PrimeCapture()’:
/data/ZoneMinder-1.28.1/src/zm_remote_camera_rtsp.cpp:194:17: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mRawFrame = avcodec_alloc_frame();
                 ^
/data/ZoneMinder-1.28.1/src/zm_remote_camera_rtsp.cpp:194:37: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mRawFrame = avcodec_alloc_frame();
                                     ^
/data/ZoneMinder-1.28.1/src/zm_remote_camera_rtsp.cpp:197:14: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mFrame = avcodec_alloc_frame();
              ^
/data/ZoneMinder-1.28.1/src/zm_remote_camera_rtsp.cpp:197:34: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3927) [-Wdeprecated-declarations]
     mFrame = avcodec_alloc_frame();
                                  ^
[ 47%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp.cpp.o
[ 49%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o
[ 50%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_data.cpp.o
[ 52%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_source.cpp.o
[ 54%] Building CXX object src/CMakeFiles/zm.dir/zm_rtsp.cpp.o
/data/ZoneMinder-1.28.1/src/zm_rtsp.cpp: In member function ‘virtual int RtspThread::run()’:
/data/ZoneMinder-1.28.1/src/zm_rtsp.cpp:349:10: warning: variable ‘sendKeepalive’ set but not used [-Wunused-but-set-variable]
     bool sendKeepalive = false;
          ^
/data/ZoneMinder-1.28.1/src/zm_rtsp.cpp:788:140: warning: ‘codecId’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             RtpSource *source = new RtpSource( mId, localHost, localPorts[0], mHost, remotePorts[0], ssrc, seq, rtpClock, rtpTime, codecId );
                                                                                                                                            ^
[ 56%] Building CXX object src/CMakeFiles/zm.dir/zm_rtsp_auth.cpp.o
[ 57%] Building CXX object src/CMakeFiles/zm.dir/zm_sdp.cpp.o
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp: In member function ‘AVFormatContext* SessionDescriptor::generateFormatContext() const’:
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:407:45: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
                     strncpy( stream->codec->codec_name, smStaticPayloads[i].payloadName, sizeof(stream->codec->codec_name) );;
                                             ^
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:407:45: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:407:112: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
                     strncpy( stream->codec->codec_name, smStaticPayloads[i].payloadName, sizeof(stream->codec->codec_name) );;
                                                                                                                ^
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:407:112: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:423:45: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
                     strncpy( stream->codec->codec_name, smDynamicPayloads[i].payloadName, sizeof(stream->codec->codec_name) );;
                                             ^
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:423:45: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:423:113: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
                     strncpy( stream->codec->codec_name, smDynamicPayloads[i].payloadName, sizeof(stream->codec->codec_name) );;
                                                                                                                 ^
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:423:113: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:431:30: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
         if ( !stream->codec->codec_name[0] )
                              ^
/data/ZoneMinder-1.28.1/src/zm_sdp.cpp:431:30: warning: ‘AVCodecContext::codec_name’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:1517) [-Wdeprecated-declarations]
[ 59%] Building CXX object src/CMakeFiles/zm.dir/zm_signal.cpp.o
[ 61%] Building CXX object src/CMakeFiles/zm.dir/zm_stream.cpp.o
[ 63%] Building CXX object src/CMakeFiles/zm.dir/zm_thread.cpp.o
[ 64%] Building CXX object src/CMakeFiles/zm.dir/zm_time.cpp.o
[ 66%] Building CXX object src/CMakeFiles/zm.dir/zm_timer.cpp.o
[ 68%] Building CXX object src/CMakeFiles/zm.dir/zm_user.cpp.o
[ 70%] Building CXX object src/CMakeFiles/zm.dir/zm_utils.cpp.o
[ 71%] Building CXX object src/CMakeFiles/zm.dir/zm_zone.cpp.o
[ 73%] Linking CXX static library libzm.a
[ 73%] Built target zm
Scanning dependencies of target nph-zms
[ 75%] Building CXX object src/CMakeFiles/nph-zms.dir/zms.cpp.o
[ 77%] Linking CXX executable nph-zms
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 77%] Built target nph-zms
Scanning dependencies of target zma
[ 78%] Building CXX object src/CMakeFiles/zma.dir/zma.cpp.o
[ 80%] Linking CXX executable zma
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 80%] Built target zma
Scanning dependencies of target zmc
[ 82%] Building CXX object src/CMakeFiles/zmc.dir/zmc.cpp.o
[ 84%] Linking CXX executable zmc
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 84%] Built target zmc
Scanning dependencies of target zmf
[ 85%] Building CXX object src/CMakeFiles/zmf.dir/zmf.cpp.o
[ 87%] Linking CXX executable zmf
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 87%] Built target zmf
Scanning dependencies of target zms
[ 89%] Building CXX object src/CMakeFiles/zms.dir/zms.cpp.o
[ 91%] Linking CXX executable zms
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 91%] Built target zms
Scanning dependencies of target zmstreamer
[ 92%] Building CXX object src/CMakeFiles/zmstreamer.dir/zmstreamer.cpp.o
[ 94%] Linking CXX executable zmstreamer
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 94%] Built target zmstreamer
Scanning dependencies of target zmu
[ 96%] Building CXX object src/CMakeFiles/zmu.dir/zmu.cpp.o
[ 98%] Linking CXX executable zmu
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libssl.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libssl.so.37
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libcurl.so, may conflict with libcrypto.so.36
[ 98%] Built target zmu
Scanning dependencies of target zmperlmodules
[100%] Building ZoneMinder perl modules
Writing MakefilePerl for ZoneMinder
Writing MYMETA.yml and MYMETA.json
[100%] Built target zmperlmodules
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: make errors - openSuSE 42

Post by knight-of-ni »

You are using a brand new, bleeding edge, version of ffmpeg, which did not exist when ZoneMinder 1.28.1 was released.
One should consider thyself lucky if warnings are all you get.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
ScorpionSting
Posts: 3
Joined: Wed Dec 02, 2015 7:27 am

Re: make errors - openSuSE 42

Post by ScorpionSting »

I dropped it down to the openSUSE 42.1 shipping version (ffmpeg-devel-2.8-1.1.x86_64) and still get the same thing....the result of the errors is that zmfilter keeps exit status 9
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: make errors - openSuSE 42

Post by knight-of-ni »

Again, ffmpeg 2.8 was released after ZoneMinder 1.28.1 and so was OpenSUSE 42.1 for that matter.

The build warnings you see are just that, warnings. They are not errors and will not cause any problems. They are simply notices to us, the developers, that we need to make use of newer function calls in our next release of ZoneMinder. Indeed we have already made that change in the latest master branch of ZoneMinder. It is not anything you need to concern yourself with.

The ffmpeg build warnings are not related to zmfilter in any way.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked