mostphotos/beanstalkpp — Issue #4: cannot compile beanstalkpp
Author: amberdixon
Created: 2012-01-17 22:53:00+00:00
State: open

I'm getting this error:

[amber@sdev29 mostphotos-beanstalkpp-e06d054]$ mkdir build; cd build
[amber@sdev29 build]$ cmake -DCMAKE_BUILD_TYPE=Release .. ; echo $?
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
-- Configuring done
-- Generating done
-- Build files have been written to: /home/amber/src/main/server/extern/beanstalkpp/mostphotos-beanstalkpp-e06d054/build
0
[amber@sdev29 build]$ make ;echo $?
Scanning dependencies of target beanstalkpp
[ 10%] [ 20%] [ 30%] Building CXX object CMakeFiles/beanstalkpp.dir/tokenizedstream.cpp.o
[ 40%] Building CXX object CMakeFiles/beanstalkpp.dir/serverexception.cpp.o
Building CXX object CMakeFiles/beanstalkpp.dir/exception.cpp.o
Building CXX object CMakeFiles/beanstalkpp.dir/client.cpp.o
[ 50%] Building CXX object CMakeFiles/beanstalkpp.dir/job.cpp.o
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/ios_base.h: In copy constructor ‘std::basic_ios >::basic_ios(const std::basic_ios >&)’:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/ios_base.h:779: error: ‘std::ios_base::ios_base(const std::ios_base&)’ is private
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd:55: error: within this context
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd: In copy constructor ‘std::basic_stringstream, std::allocator >::basic_stringstream(const std::basic_stringstream, std::allocator >&)’:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd:83: note: synthesized method ‘std::basic_ios >::basic_ios(const std::basic_ios >&)’ first required here
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/streambuf: In copy constructor ‘std::basic_stringbuf, std::allocator >::basic_stringbuf(const std::basic_stringbuf, std::allocator >&)’:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/streambuf:781: error: ‘std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits = std::char_traits]’ is private
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd:71: error: within this context
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd: In copy constructor ‘std::basic_stringstream, std::allocator >::basic_stringstream(const std::basic_stringstream, std::allocator >&)’:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd:83: note: synthesized method ‘std::basic_stringbuf, std::allocator >::basic_stringbuf(const std::basic_stringbuf, std::allocator >&)’ first required here
/home/amber/src/main/server/extern/beanstalkpp/mostphotos-beanstalkpp-e06d054/client.cpp: In member function ‘bool Beanstalkpp::Client::peekReady(Beanstalkpp::job_p_t&)’:
/home/amber/src/main/server/extern/beanstalkpp/mostphotos-beanstalkpp-e06d054/client.cpp:130: note: synthesized method ‘std::basic_stringstream, std::allocator >::basic_stringstream(const std::basic_stringstream, std::allocator >&)’ first required here
make[2]: *** [CMakeFiles/beanstalkpp.dir/client.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/beanstalkpp.dir/all] Error 2
make: *** [all] Error 2
2

What could be the problem? Thanks!