I thought I'd give 1.5.0 a go on my new FreeBSD system.
The build from source instructions for FreeBSD in the Wiki are out of date.
The package management system is pkg, not pkg_add
So, I had to do:
# pkg install security/openssl-devel devel/pcre devel/rcs net/GeoIP dns/udns textproc/expat2
configure would not find pcre, so (in tcsh) I did
# setenv LDFLAGS -L/usr/local/lib
and then configure worked.
Now, I seem to be stuck, with SSL build issues I don't have a deep enough understanding of.
/usr/local/include/openssl/ssl_local.h does not exist, but /usr/local/include/openssl/ssl.h does.
I tried changing the #include to that, and got:
# pkg info openssl-devel
openssl-devel-1.1.0h_2
Name : openssl-devel
Version : 1.1.0h_2
Installed on : Mon Jun 25 02:59:38 2018 UTC
Ideas?
The build from source instructions for FreeBSD in the Wiki are out of date.
The package management system is pkg, not pkg_add
So, I had to do:
# pkg install security/openssl-devel devel/pcre devel/rcs net/GeoIP dns/udns textproc/expat2
configure would not find pcre, so (in tcsh) I did
# setenv LDFLAGS -L/usr/local/lib
and then configure worked.
Now, I seem to be stuck, with SSL build issues I don't have a deep enough understanding of.
Code:
Making all in http
c++ -DHAVE_CONFIG_H -I. -I../../src -I../../openssl/include/ -I../../include -I../../src -I../../ssl/include -I../../src -I../../include -I/usr/local/include -I/usr/local -I/usr -I/usr/pkg -I/usr/include -I/usr/local/include -g -O2 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector -MT ntwkiolink.o -MD -MP -MF .deps/ntwkiolink.Tpo -c -o ntwkiolink.o ntwkiolink.cpp
ntwkiolink.cpp:1526:10: fatal error: 'openssl/ssl_local.h' file not found
#include <openssl/ssl_local.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
I tried changing the #include to that, and got:
Code:
c++ -DHAVE_CONFIG_H -I. -I../../src -I../../openssl/include/ -I../../include -I../../src -I../../ssl/include -I../../src -I../../include -I/usr/local/include -I/usr/local -I/usr -I/usr/pkg -I/usr/include -I/usr/local/include -g -O2 -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector -MT ntwkiolink.o -MD -MP -MF .deps/ntwkiolink.Tpo -c -o ntwkiolink.o ntwkiolink.cpp
ntwkiolink.cpp:1547:45: error: member access into incomplete type 'SSL' (aka 'ssl_st')
length = BIO_get_mem_data(m_ssl.getSSL()->s3->handshake_buffer, &p)
^
../../src/sslpp/sslconnection.h:26:16: note: forward declaration of 'ssl_st'
typedef struct ssl_st SSL;
^
1 error generated.
openssl-devel-1.1.0h_2
Name : openssl-devel
Version : 1.1.0h_2
Installed on : Mon Jun 25 02:59:38 2018 UTC
Ideas?