shibaniahegde / tweetx

Automatically exported from code.google.com/p/tweetx
0 stars 0 forks source link

SSLv2_client_method prevents tweetx from compiling succesfully #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. wget https://tweetx.googlecode.com/files/tweetx-0.1.tar.gz
2. tar xf tweetx-0.1
3. ./configure && make

What is the expected output? What do you see instead?

The software doesn't compile. When trying to compile, the following error is 
given by GCC.

make[4]: Entering directory 
`/home/erkkimon/Downloads/tweetx-0.1/src/libsrc/network'
/bin/bash ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H 
-I../../..     -g -O2 -MT socket.lo -MD -MP -MF .deps/socket.Tpo -c -o 
socket.lo socket.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../../.. -g -O2 -MT socket.lo -MD -MP 
-MF .deps/socket.Tpo -c socket.cc  -fPIC -DPIC -o .libs/socket.o
socket.cc: In member function ‘void NSsocket::Socket::InitCTX()’:
socket.cc:217:62: error: ‘SSLv2_client_method’ was not declared in this 
scope
make[4]: *** [socket.lo] Error 1
make[4]: Leaving directory 
`/home/erkkimon/Downloads/tweetx-0.1/src/libsrc/network'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/erkkimon/Downloads/tweetx-0.1/src/libsrc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/erkkimon/Downloads/tweetx-0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/erkkimon/Downloads/tweetx-0.1'
make: *** [all] Error 2

What version of the product are you using? On what operating system?

I'm using Ubuntu 12.04 and the version of tweetx I'm compiling is 0.1. The 
version of GCC is 4.6.3.

Please provide any additional information below.

A functional workaround is to comment the following lines in 
src/libsrc/network/socket.cc:

case CT_SSLV2:
 method = const_cast<SSL_METHOD*>(SSLv2_client_method());
 break;

Original issue reported on code.google.com by tom.hima...@gmail.com on 4 Jul 2013 at 11:25