Page 1 of 1

Fedora 8 compilation problem

Posted: Tue Mar 10, 2009 2:00 am
by jimboj
I know...don't use Fedora 8. I have to due to proprietary sata drivers.

I've looked at the docs and I believe I have ffmpeg compiled properly although there is no --enable-swscale option anymore (i think it's default, or hope).

[kahuna@zoneminder ZoneMinder-1.24.1]$ ffmpeg -v
FFmpeg version SVN-r17923, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-shared --prefix=/usr
libavutil 50. 0. 0 / 50. 0. 0
libavcodec 52.21. 0 / 52.21. 0
libavformat 52.31. 1 / 52.31. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Mar 9 2009 21:21:34, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)




My configure 'looks good' and there are no obvious errors. Here is the output from make below. Any ideas to get it to compile?


Thank you much!!!



./configure --prefix=/usr --with-ffmpeg=/usr/bin --with-webdir=/vid1/zm-1.24/www --with-cgidir=/vid1/zm-1.24/cgi-bin --with-mysql=/usr ZM_SSL_LIB=openssl

make all-recursive
make[1]: Entering directory `/home/kahuna/ZoneMinder-1.24.1'
Making all in src
make[2]: Entering directory `/home/kahuna/ZoneMinder-1.24.1/src'
g++ -frepo -g -O2 -L/usr/bin/lib -L/usr/lib/mysql -o zmc zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_debug.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_signal.o zm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o -lbz2 -lswscale -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -lpthread -ldl -lz -ljpeg
zm_comms.o: In function `Select::calcMaxFd()':
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:596: undefined reference to `std::set<CommsBase*, std::less<CommsBase>, std::allocator<CommsBase> >::begin() const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:596: undefined reference to `std::_Rb_tree_const_iterator<CommsBase>::operator++(int)'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:596: undefined reference to `std::set<CommsBase*, std::less<CommsBase>, std::allocator<CommsBase> >::end() const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:596: undefined reference to `std::_Rb_tree_const_iterator<CommsBase>::operator!=(std::_Rb_tree_const_iterator<CommsBase> const&) const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:597: undefined reference to `std::_Rb_tree_const_iterator<CommsBase>::operator*() const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:598: undefined reference to `std::_Rb_tree_const_iterator<CommsBase>::operator*() const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:599: undefined reference to `std::set<CommsBase*, std::less<CommsBase>, std::allocator<CommsBase> >::begin() const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:599: undefined reference to `std::_Rb_tree_const_iterator<CommsBase>::operator++(int)'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:599: undefined reference to `std::set<CommsBase*, std::less<CommsBase>, std::allocator<CommsBase> >::end() const'
/home/kahuna/ZoneMinder-1.24.1/src/zm_comms.cpp:599: undefined reference to `std::_Rb_tree_const_iterator<CommsBase>::operator!=(std::_Rb_tree_const_iterator<CommsBase> const&) const'

same error in Fedora 9 and Fedora 10

Posted: Sun May 17, 2009 7:09 am
by cpg
hi, i am having the same error in fedora 9 and in fedora 10, even after updating to ffmpeg-0.5-2 (from rpmfusion).

it feels like there is a c++ library for templates of type "set" needed to get this moving forward.

tried to add -lstdc++ to LDFLAGS, however, as expected, still get the same issue.

any ideas anyone?

Re: same error in Fedora 9 and Fedora 10

Posted: Mon May 18, 2009 11:27 pm
by cpg
update, to bypass this issue

Code: Select all

rpm -e ccache

Re: same error in Fedora 9 and Fedora 10

Posted: Sat Jun 06, 2009 4:40 am
by azir
cpg wrote:update, to bypass this issue

Code: Select all

rpm -e ccache
thanks, i also tried get out of this problem on fedora 10 (new to this distro, i'm slackware user :) ), i tried installing any devel packages that might be left over, but the problem is ccache, uninstall it

Code: Select all

yum remove ccache

Posted: Tue Jul 21, 2009 2:58 am
by jimboj
update, to bypass this issue

Code:
rpm -e ccache
Wow thanks a bunch!

Posted: Tue Sep 07, 2010 3:11 am
by clytle374
ccache just got me on Gentoo, thanks for the solution.