Error in installation for CentOS
Closed this issue · 3 comments
Hi there,
I would be very grateful if you provide me with following situation.
Tried install it on CentOS 6.5 with latest update.
Did git clone and make.
Got an error:
[root@test tlsinterposer]# make
cc -g -Wall -O2 -fPIC -shared -o libtlsinterposer.so tlsinterposer.c -ldl
tlsinterposer.c:85: error: ‘DEFAULT_SSLLIB’ undeclared here (not in a function)
make: *** [libtlsinterposer.so] Error 1
Regards,
Eugene
I found cause - this application works only with old versions software of openssl, mod_ssl etc,
Need check\fix Makefile...
I have stopped it, because of many errors here...
This part is easily "fixed" in an workaround:
# diff Makefile.orig Makefile
32c32
< ldconfig -p | sed -n -e 's/^\t*\(libssl\.so\.[0-9]\.[0-9]\.[0-9]\).*/#define DEFAULT_SSLLIB "\1"/p' > $@
---
> ldconfig -p | sed -n -e 's/^\t*\(libssl\.so\.[0-9][0-9]\).*/#define DEFAULT_SSLLIB "\1"/p' > $@
delete ssl-version.h and call make again and it works
Robert,
Thanks! I made the parsing more generic, such that it continues to work on Debian/Ubuntu.
Fixed in f205212