Results 1 to 5 of 5

Thread: compiling errors related to openssl..

  1. #1

    compiling errors related to openssl..

    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
    Code:
    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
    Code:
    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?

  2. #2
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Quote Originally Posted by outlaw11 View Post
    ...
    Code:
    ...
    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.
    Code:
    ...
    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

  3. #3
    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.

  4. #4
    Quote Originally Posted by theMIROn View Post
    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

    Quote Originally Posted by lly View Post
    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..)
    Last edited by outlaw11; 28-10-2009 at 23:14.

  5. #5
    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)

Similar Threads

  1. Need help compiling helloworld.c
    By FabWL500 in forum WL-500g Custom Development
    Replies: 0
    Last Post: 04-08-2009, 19:13
  2. Compiling RTorrent and Other
    By beatmag in forum WL-500gP Q&A
    Replies: 0
    Last Post: 28-06-2008, 00:52
  3. Again harddrive errors...
    By wpte in forum WL-500gP Q&A
    Replies: 1
    Last Post: 23-06-2008, 23:10
  4. Replies: 0
    Last Post: 29-02-2008, 19:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •