Make error (2678)

Forum for questions and support relating to the 1.24.x releases only.
Locked
SWork
Posts: 2
Joined: Fri Oct 31, 2008 7:05 am

Make error (2678)

Post by SWork »

Code: Select all

FFmpeg version SVN-r15746, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-swscale
  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52. 1. 0 / 52. 1. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  built on Oct 30 2008 23:21:33, gcc: 4.3.0 20080428 (Red Hat 4.3.0-8)
./configure --with-libarch=lib64 --with-webdir=/disk1/site/www/zm --with-cgidir=/disk1/site/cgi-bin/ ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=x ZM_DB_PASS=y

Code: Select all

Checking if your kit is complete...
Looks good
Writing Makefile for ZoneMinder
make

Code: Select all

/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:419: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:419: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:419: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:674: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:674: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:318: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:318: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:318: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:425: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator=(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:425: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:429: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:427: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::size() const'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:439: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator=(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:439: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:444: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:445: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:445: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:440: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::size() const'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:442: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:447: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:449: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:450: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[](unsigned long)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:450: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:631: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::operator[](unsigned long const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:643: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:643: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:643: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:507: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::operator[](unsigned long const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:611: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:611: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:611: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:521: undefined reference to `std::vector<CommsBase*, std::allocator<CommsBase> >::vector(std::vector<CommsBase*, std::allocator<CommsBase> > const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:522: undefined reference to `std::vector<CommsBase*, std::allocator<CommsBase> >::size() const'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:519: undefined reference to `std::vector<CommsBase*, std::allocator<CommsBase> >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:462: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::operator[](unsigned long const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:481: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:481: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:481: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:519: undefined reference to `std::vector<CommsBase*, std::allocator<CommsBase> >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:617: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:617: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:617: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:623: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::operator[](unsigned long const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:624: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::clear()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:496: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::operator[](unsigned long const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:497: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::clear()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:519: undefined reference to `std::vector<CommsBase*, std::allocator<CommsBase> >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:649: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:649: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:649: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:661: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::operator[](unsigned long const&)'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:662: undefined reference to `std::map<unsigned long, RtpSource*, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::clear()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:674: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:674: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:519: undefined reference to `std::vector<CommsBase*, std::allocator<CommsBase> >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:450: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:449: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:425: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:444: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:439: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
zm_rtsp.o:/Install/ZoneMinder-1.24.0/src/zm_rtsp.cpp:402: more undefined references to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()' follow
zm_rtsp.o: In function `~map':
/usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_map.h:92: undefined reference to `std::_Rb_tree<unsigned long, std::pair<unsigned>, std::_Select1st<std::pair<unsigned> >, std::less<unsigned>, std::allocator<std::pair<unsigned> > >::~_Rb_tree()'
zm_rtsp.o: In function `~set':
/usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_set.h:93: undefined reference to `std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::~_Rb_tree()'
zm_thread.o: In function `neverCalled()':
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:22: undefined reference to `ThreadData<bool>::ThreadData()'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:23: undefined reference to `ThreadData<bool>::setValue(bool)'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:24: undefined reference to `ThreadData<bool>::getUpdatedValue() const'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:25: undefined reference to `ThreadData<bool>::getUpdatedValue(int) const'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:26: undefined reference to `ThreadData<bool>::getUpdatedValue(double) const'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:27: undefined reference to `ThreadData<bool>::updateValueSignal(bool)'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:28: undefined reference to `ThreadData<bool>::updateValueBroadcast(bool)'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:30: undefined reference to `ThreadData<int>::ThreadData()'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:31: undefined reference to `ThreadData<int>::getValue() const'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:32: undefined reference to `ThreadData<int>::setValue(int)'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:33: undefined reference to `ThreadData<int>::getUpdatedValue(int) const'
/Install/ZoneMinder-1.24.0/src/zm_threaddata.cpp:34: undefined reference to `ThreadData<int>::updateValueBroadcast(int)'
zm_timer.o: In function `Timer::TimerThread::run()':
/Install/ZoneMinder-1.24.0/src/zm_timer.cpp:82: undefined reference to `ThreadData<bool>::setValue(bool)'
/Install/ZoneMinder-1.24.0/src/zm_timer.cpp:84: undefined reference to `ThreadData<bool>::getUpdatedValue(int) const'
zm_timer.o: In function `Timer::TimerThread::reset()':
/Install/ZoneMinder-1.24.0/src/zm_timer.cpp:65: undefined reference to `ThreadData<bool>::updateValueSignal(bool)'
zm_timer.o: In function `Timer::TimerThread::cancel()':
/Install/ZoneMinder-1.24.0/src/zm_timer.cpp:53: undefined reference to `ThreadData<bool>::updateValueSignal(bool)'
zm_timer.o: In function `TimerThread':
/Install/ZoneMinder-1.24.0/src/zm_timer.cpp:32: undefined reference to `ThreadData<bool>::ThreadData(bool)'
/Install/ZoneMinder-1.24.0/src/zm_timer.cpp:32: undefined reference to `ThreadData<bool>::ThreadData(bool)'
zm_utils.o: In function `startsWith(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/Install/ZoneMinder-1.24.0/src/zm_utils.cpp:56: undefined reference to `__gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
zm_utils.o: In function `split(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/Install/ZoneMinder-1.24.0/src/zm_utils.cpp:61: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::vector()'
/Install/ZoneMinder-1.24.0/src/zm_utils.cpp:71: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::push_back(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/Install/ZoneMinder-1.24.0/src/zm_utils.cpp:78: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::~vector()'
collect2:  ld error 1
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/Install/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Install/ZoneMinder-1.24.0'
make: *** [all] Error 2
What I'm doing wrong? :roll:
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I am racking my brains here trying to remember what it is that breaks the templates building. I think it is ccache caching things that shouldn't be cached.

Can you check if you have the ccache package installed? And/or do a g++ -v -v and see what it prints up.

If you have it then try uninstalling ccache and rebuilding to see if that makes a different.
Phil
SWork
Posts: 2
Joined: Fri Oct 31, 2008 7:05 am

Post by SWork »

Package ccache-2.4-13.fc9.x86_64 already installed and latest version

g++ -v -v

x86_64-redhat-linux

Config: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=x86_64-redhat-linux
Model: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think phil was saying you should remove ccache
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Correct! :D
Phil
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

I was getting this error. I uninstalled the package ccache and a part of the error disappeared. This part still appearing:

zm_utils.o: In function `startsWith(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/root/ZoneMinder-1.24.0/src/zm_utils.cpp:56: undefined reference to `__gnu_cxx::__enable_if<std::__is_char<char>::__value, bool>::__type std::operator==<char>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
zm_utils.o: In function `split(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/root/ZoneMinder-1.24.0/src/zm_utils.cpp:61: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::vector()'
/root/ZoneMinder-1.24.0/src/zm_utils.cpp:71: undefined reference to `std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::push_back(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.0'
make: *** [all] Error 2

And now? :?
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Make error [RESOLVED]

Post by liviab »

Well, I resolved the problem! :D \o/

I included the lines:

Code: Select all

   namespace std {
      using namespace __gnu_cxx;
   }
in the beginning of the file zm_utils.cpp.

Now, I have the ZoneMinder newest version!!
8)
rubinos
Posts: 2
Joined: Wed Nov 25, 2009 2:15 pm

Same error in Lenny

Post by rubinos »

I have the same problem in debian lenny and i followed all the tips in here and non work for me, i also followed the guide that appears here Mrfloppy, some help please.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

On fedora 12 I had to first remove ccache... install nasm... edit /src/zm_utils.cpp and add the line

#include <cstdio>


Then edit src/zm_utils.cpp and add to the beginning of the file

namespace std {
using namespace __gnu_cxx;
}


then

make clean
make
ColH
Posts: 6
Joined: Tue Apr 27, 2010 3:18 pm

Post by ColH »

VIA ETX (i586) box, running FC10.
gcc v 4.3.2 20081105

I had these 'undefined reference' errors too. I just had to uninstall ccache, and its now built.
Locked