I'm trying to build nsopenssl-2.1a and I get the following error "OpenSSL was not compiled with thread support!".
I'm using aolserver-3.3+ad13 and Red Hat Enterprise Linux ES 3 with an up2date version of openssl-0.9.7a-33.17.
I read the Red Hat 9 and OpenACS 4.6.2 forum (http://openacs.org/forums/message-view?message_id=92882) and I believe my error is different since nsopenssl's 2.1a version of thread.c already comes with "#ifndef OPENSSL_THREADS" and I'm not running into any kerberos problems (but just in case i tried changing the CFLAGS line to include kerberos and got the same result)
I placed the source of nsopenssl in the "root" directory of AOLserver's source:
[aol@my root]$ ls /home/aol/source/root
aolserver arsdigita-aol3 nscache nsopenssl-2.1a nsrewrite nssha1 oracle-driver
And executed gmake as follows:
cd /home/aol/source/root/nsopenssl-2.1a/
make OPENSSL=/home/aol/source/openssl-0.9.8b
And I would get the following output:
gcc -I/home/aol/source/openssl-0.9.8b/include -I../aolserver/include -D_REENTRANT=1 -DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -DUSE_FI\
ONREAD=1 -DHAVE_COND_EINTR=1 -c -o nsopenssl.o nsopenssl.c
gcc -I/home/aol/source/openssl-0.9.8b/include -I../aolserver/include -D_REENTRANT=1 -DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -DUSE_FI\
ONREAD=1 -DHAVE_COND_EINTR=1 -c -o config.o config.c
gcc -I/home/aol/source/openssl-0.9.8b/include -I../aolserver/include -D_REENTRANT=1 -DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -DUSE_FI\
ONREAD=1 -DHAVE_COND_EINTR=1 -c -o init.o init.c
init.c: In function `MakeDriverSSLContext':
init.c:382: warning: assignment from incompatible pointer type
init.c: In function `MakeSockServerSSLContext':
init.c:556: warning: assignment from incompatible pointer type
init.c: In function `MakeSockClientSSLContext':
init.c:731: warning: assignment from incompatible pointer type
gcc -I/home/aol/source/openssl-0.9.8b/include -I../aolserver/include -D_REENTRANT=1 -DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -DUSE_FI\
ONREAD=1 -DHAVE_COND_EINTR=1 -c -o ssl.o ssl.c
ssl.c: In function `NsOpenSSLTrace':
ssl.c:343: warning: assignment discards qualifiers from pointer target type
ssl.c:345: warning: assignment discards qualifiers from pointer target type
gcc -I/home/aol/source/openssl-0.9.8b/include -I../aolserver/include -D_REENTRANT=1 -DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -DUSE_FI\
ONREAD=1 -DHAVE_COND_EINTR=1 -c -o thread.o thread.c
thread.c:42:2: #error "OpenSSL was not compiled with thread support!"
make: *** [thread.o] Error 1
I guess OpenSSL was REALLY not compiled with thread support. But how do I enable thread support?
I tried uninstalling the openssl rpm (with an rpm -e openssl) so I could install it manually instad of using up2date (doing something like "./confing threaded" before the actual make) but there are many dependencies so I chickened out and did not try a forced uninstall.
Any help would be greatly appreciated! Thanks,
Pedro
Request notifications