Compile Error w/ 2660

Forum for questions and support relating to the 1.24.x releases only.
Locked
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Compile Error w/ 2660

Post by kylejohnson »

Looks good
Writing Makefile for ZoneMinder
kjohnson@zm124:~/ZoneMinder-1.24.0$ make
make all-recursive
make[1]: Entering directory `/home/kjohnson/ZoneMinder-1.24.0'
Making all in src
make[2]: Entering directory `/home/kjohnson/ZoneMinder-1.24.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
mv -f .deps/zmc.Tpo .deps/zmc.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_box.o -MD -MP -MF .deps/zm_box.Tpo -c -o zm_box.o zm_box.cpp
mv -f .deps/zm_box.Tpo .deps/zm_box.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF .deps/zm_buffer.Tpo -c -o zm_buffer.o zm_buffer.cpp
mv -f .deps/zm_buffer.Tpo .deps/zm_buffer.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_camera.o -MD -MP -MF .deps/zm_camera.Tpo -c -o zm_camera.o zm_camera.cpp
mv -f .deps/zm_camera.Tpo .deps/zm_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_comms.o -MD -MP -MF .deps/zm_comms.Tpo -c -o zm_comms.o zm_comms.cpp
In file included from zm_comms.cpp:20:
zm_comms.h: In member function ‘virtual int Socket::send(const std::string&) const’:
zm_comms.h:323: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘size_t’
zm_comms.h: In member function ‘virtual int Socket::recv(std::string&) const’:
zm_comms.h:332: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘long unsigned int’
zm_comms.h: In member function ‘virtual int Socket::recv(std::string&, size_t) const’:
zm_comms.h:345: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘size_t’
mv -f .deps/zm_comms.Tpo .deps/zm_comms.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_config.o -MD -MP -MF .deps/zm_config.Tpo -c -o zm_config.o zm_config.cpp
mv -f .deps/zm_config.Tpo .deps/zm_config.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_coord.o -MD -MP -MF .deps/zm_coord.Tpo -c -o zm_coord.o zm_coord.cpp
mv -f .deps/zm_coord.Tpo .deps/zm_coord.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm.o -MD -MP -MF .deps/zm.Tpo -c -o zm.o zm.cpp
mv -f .deps/zm.Tpo .deps/zm.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_db.o -MD -MP -MF .deps/zm_db.Tpo -c -o zm_db.o zm_db.cpp
mv -f .deps/zm_db.Tpo .deps/zm_db.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -g -O2 -MT zm_debug.o -MD -MP -MF .deps/zm_debug.Tpo -c -o zm_debug.o zm_debug.c
mv -f .deps/zm_debug.Tpo .deps/zm_debug.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_event.o -MD -MP -MF .deps/zm_event.Tpo -c -o zm_event.o zm_event.cpp
zm_event.cpp: In member function ‘bool Event::SendFrameImage(const Image*, bool)’:
zm_event.cpp:316: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘ssize_t’
zm_event.cpp:316: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘ssize_t’
mv -f .deps/zm_event.Tpo .deps/zm_event.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_exception.o -MD -MP -MF .deps/zm_exception.Tpo -c -o zm_exception.o zm_exception.cpp
mv -f .deps/zm_exception.Tpo .deps/zm_exception.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF .deps/zm_file_camera.Tpo -c -o zm_file_camera.o zm_file_camera.cpp
mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
zm_image.cpp: In member function ‘void Image::Blend(const Image&, int) const’:
zm_image.cpp:768: warning: operation on ‘pdest’ may be undefined
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -g -O2 -MT zm_jpeg.o -MD -MP -MF .deps/zm_jpeg.Tpo -c -o zm_jpeg.o zm_jpeg.c
zm_jpeg.c: In function ‘zm_jpeg_error_exit’:
zm_jpeg.c:42: warning: implicit declaration of function ‘exit’
zm_jpeg.c:42: warning: incompatible implicit declaration of built-in function ‘exit’
mv -f .deps/zm_jpeg.Tpo .deps/zm_jpeg.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/var/lib/mysql/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -frepo -g -O2 -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
In file included from zm_rtsp.h:25,
from zm_remote_camera_rtsp.h:27,
from zm_monitor.cpp:33:
zm_comms.h: In member function ‘virtual int Socket::send(const std::string&) const’:
zm_comms.h:323: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘size_t’
zm_comms.h: In member function ‘virtual int Socket::recv(std::string&) const’:
zm_comms.h:332: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘long unsigned int’
zm_comms.h: In member function ‘virtual int Socket::recv(std::string&, size_t) const’:
zm_comms.h:345: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘size_t’
In file included from zm_rtsp.h:30,
from zm_remote_camera_rtsp.h:27,
from zm_monitor.cpp:33:
zm_sdp.h: At global scope:
zm_sdp.h:217: error: use of enum ‘RTSPProtocol’ without previous declaration
make[2]: *** [zm_monitor.o] Error 1
make[2]: Leaving directory `/home/kjohnson/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kjohnson/ZoneMinder-1.24.0'
make: *** [all] Error 2
kjohnson@zm124:~/ZoneMinder-1.24.0$



Configuring with:
./configure --enable-mmap=yes --with-mysql=/var/lib/mysql --with-webdir=/var/www/zm --with-cgidir=/var/www/zm --with-webuser=zm --with-webgroup=zm ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zm



Let me know if you need any other information.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

What version of ffmpeg do you have?

What compiler version?

Is this 32 or 64 bit?
Phil
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Built ffmpeg from source using svn:
kjohnson@zm124:~$ ffmpeg -version
FFmpeg version SVN-r15612, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-shared
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Oct 13 2008 10:47:41, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
FFmpeg SVN-r15612
libavutil 49.11. 0 / 49.11. 0
libavcodec 52. 0. 0 / 52. 0. 0
libavformat 52.22. 1 / 52.22. 1
libavdevice 52. 1. 0 / 52. 1. 0

kjohnson@zm124:~$ uname -a

Linux zm124 2.6.24-19-server #1 SMP Wed Aug 20 18:43:06 UTC 2008 x86_64 GNU/Linux

kjohnson@zm124:~$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

I hadn't seen your post before I created this one. :/
See: http://www.zoneminder.com/forums/viewtopic.php?t=12689
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

This error is not showing up in the 2678 release.
Locked