PDA

Bekijk de volledige versie : compiling errors related to openssl..



outlaw11
25-10-2009, 18:26
hi, im trying to compile this bouncer ( http://en.znc.in/wiki/ZNC )

until 'make' everything goes ok, here is what i get on ./configure

checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking build system type... mipsel-unknown-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for getopt_long in -lgnugetopt... no
checking for lstat... yes
checking for BIO_new in -lcrypto... yes
checking for SSL_shutdown in -lssl... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating znc-config
config.status: creating znc-buildmod
config.status: creating man/Makefile
config.status: creating znc.pc
config.status: creating znc-uninstalled.pc
config.status: creating modules/Makefile

znc 0.076 configured

debug: no
ipv6: yes
openssl: yes
c-ares: no
modules: yes
perl: no
sasl: no
extra: yes
tcl: no
but when im going to compile it i get this

g++ -D_FORTIFY_SOURCE=2 -O2 -DHAVE_IPV6 -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow -DHAVE_LSTAT
-I/opt/bin//include -DHAVE_LIBSSL -D_MODULES -D_MODDIR_=\"/opt/etc/znc/lib/znc\" -D_DATADIR_=\"/opt/etc/znc/shar
e/znc\" -c -o main.o main.cpp -MMD -MF .depend/main.o.dep
In file included from Socket.h:12,
from Client.h:12,
from znc.h:12,
from main.cpp:9:
Csocket.h:71:25: warning: openssl/ssl.h: No such file or directory
Csocket.h:72:25: warning: openssl/err.h: No such file or directory
Csocket.h:73:26: warning: openssl/rand.h: No such file or directory
In file included from defines.h:15,
from Csocket.h:88,
from Socket.h:12,
from Client.h:12,
from znc.h:12,
from main.cpp:9:
Utils.h:138:30: warning: openssl/blowfish.h: No such file or directory
Utils.h:139:25: warning: openssl/md5.h: No such file or directory
Utils.h:166: error: 'BF_KEY' does not name a type
Csocket.h:251: error: 'X509_STORE_CTX' was not declared in this scope
Csocket.h:251: error: 'pCTX' was not declared in this scope
Csocket.h:390: error: 'X509_STORE_CTX' has not been declared
Csocket.h:714: error: 'X509_STORE_CTX' has not been declared
Csocket.h:720: error: 'SSL' has not been declared
Csocket.h:721: error: 'SSL_CTX' has not been declared
Csocket.h:723: error: ISO C++ forbids declaration of 'SSL_SESSION' with no type
Csocket.h:723: error: expected ';' before '*' token
Csocket.h:745: error: ISO C++ forbids declaration of 'X509' with no type
Csocket.h:745: error: expected ';' before '*' token
Csocket.h:882: error: 'SSL' has not been declared
Csocket.h:991: error: ISO C++ forbids declaration of 'SSL' with no type
Csocket.h:991: error: expected ';' before '*' token
Csocket.h:992: error: ISO C++ forbids declaration of 'SSL_CTX' with no type
Csocket.h:992: error: expected ';' before '*' token
Csocket.h: In member function 'void CSListener::SetRequiresClientCert(bool)':
Csocket.h:1164: error: 'SSL_VERIFY_PEER' was not declared in this scope
Csocket.h:1164: error: 'SSL_VERIFY_FAIL_IF_NO_PEER_CERT' was not declared in this scope
make: *** [main.o] Error 1

Any ideas how to fix this issue?

lly
25-10-2009, 19:04
...

...
checking for SSL_shutdown in -lssl... yes[/B]
...

Above checks for libraries, below require header files. This is not the same!
Very strange that configure set search path for header to /opt/bin//include. Either you provide incorrect prefix & options or it is a bug.


...
Csocket.h:71:25: warning: openssl/ssl.h: No such file or directory
Csocket.h:72:25: warning: openssl/err.h: No such file or directory
Csocket.h:73:26: warning: openssl/rand.h: No such file or directory
...

You have either to put openssl/*.h files to /opt/bin//include or say to configure script right path to *.h files. Just invoke ./configure --help and read carefully

theMIROn
25-10-2009, 19:57
just take a look at bip (http://bip.t1r.net/)
it could be built without ssl support if you don't need it.
moreover, bip is available from optware packages feed, you could try my custom build also - check my signature links.

outlaw11
28-10-2009, 23:11
just take a look at bip (http://bip.t1r.net/)
it could be built without ssl support if you don't need it.
moreover, bip is available from optware packages feed, you could try my custom build also - check my signature links.
thankyou i very much welcome there is an alternative also in a form of ipkg package


Very strange that configure set search path for header to /opt/bin//include. Either you provide incorrect prefix & options or it is a bug.
that was wrongly set prefix on my side, after installing openssl-dev i successfully compiled znc, it took over 10 hours! (including extra-modules)

everything runs fine (you wont find better bnc software..;))

outlaw11
20-05-2011, 00:21
i dont know how to create ipk package but i compiled ZNC 0.099-git-20110516-6deae62c on 1.9.2.7-rtn-r2968 if anyone interested.. (ssl & ipv6 enabled)