Hi, We're getting an error when installing Asterisk on a Trustix Linux server. I'm guessing that the error is related to SSL, although OpenSSL 0.9.7e is installed on the server. Any thought's on this matter would be appreciated. gcc -g -o asterisk -Wl,-E io.o sched.o logger.o frame.o loader.o config.o channel.o translate.o file.o say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o ast_expr.o dsp.o chanvars.o indications.o autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o utils.o editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a -ldl -lpthread -lncurses -lm -lresolv -lssl /usr/bin/ld: cannot find -lssl collect2: ld returned 1 exit status make: *** [asterisk] Error 1 Kind Regards, Robert Kerry Amard Limited T: 0870 922 0390 F: 0871 872 9399 E: robert.kerry@amard.com W: http://www.amard.com
I'm in a good mood so I'll respond... It wasn't able to link against the ssl library because it was not found. You may need to find the path to the library and add it to the ld.so.conf - Remember, the filename should be libssl.so - Joshua Colp. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Robert Kerry Sent: Friday, November 19, 2004 3:27 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Error during installation Hi, We're getting an error when installing Asterisk on a Trustix Linux server. I'm guessing that the error is related to SSL, although OpenSSL 0.9.7e is installed on the server. Any thought's on this matter would be appreciated. gcc -g -o asterisk -Wl,-E io.o sched.o logger.o frame.o loader.o config.o channel.o translate.o file.o say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o ast_expr.o dsp.o chanvars.o indications.o autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o utils.o editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a -ldl -lpthread -lncurses -lm -lresolv -lssl /usr/bin/ld: cannot find -lssl collect2: ld returned 1 exit status make: *** [asterisk] Error 1 Kind Regards, Robert Kerry Amard Limited T: 0870 922 0390 F: 0871 872 9399 E: robert.kerry@amard.com W: http://www.amard.com _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Robert Kerry wrote:>Hi, > >We're getting an error when installing Asterisk on a Trustix Linux >server. I'm guessing that the error is related to SSL, although OpenSSL >0.9.7e is installed on the server. Any thought's on this matter would be >appreciated. > >gcc -g -o asterisk -Wl,-E io.o sched.o logger.o frame.o loader.o >config.o channel.o translate.o file.o say.o pbx.o cli.o md5.o term.o >ulaw.o alaw.o callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o >rtp.o manager.o asterisk.o ast_expr.o dsp.o chanvars.o indications.o >autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.o >aestab.o aeskey.o utils.o editline/libedit.a db1-ast/libdb1.a >stdtime/libtime.a -ldl -lpthread -lncurses -lm -lresolv -lssl >/usr/bin/ld: cannot find -lssl >collect2: ld returned 1 exit status >make: *** [asterisk] Error 1 > > >Just had same problem, I hadnt installed all the requirements: * ncurses, and associated -devel * openssl, and associated -devel * bison, and associated -devel * Linux 2.4 kernel sources Specifically openssl-devel... Kyle
Hi,> It wasn't able to link against the ssl library because it was > not found. You may need to find the path to the library and > add it to the ld.so.conf - Remember, the filename should be libssl.soCreating a symbolic link from libssl.so.0 > libssl.so seemed to sort out that issue. New error messages have occurred now however: res_crypto.c:27:25: openssl/ssl.h: No such file or directory res_crypto.c:28:25: openssl/err.h: No such file or directory res_crypto.c:72: error: parse error before "RSA" res_crypto.c:72: warning: no semicolon at end of struct or union res_crypto.c:82: error: parse error before '}' token res_crypto.c: In function `pw_cb': res_crypto.c:99: error: dereferencing pointer to incomplete type <-- cut --> res_crypto.c: In function `crypto_init': res_crypto.c:553: warning: implicit declaration of function `SSL_library_init' res_crypto.c:554: warning: implicit declaration of function `ERR_load_crypto_strings' make[1]: *** [res_crypto.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/res' make: *** [subdirs] Error 1 Once again, any help is appreciated. Kind Regards, Robert Kerry Amard Limited T: 0870 922 0390 F: 0871 872 9399 E: robert.kerry@amard.com W: http://www.amard.com
On Fri, 2004-11-19 at 21:36 +0000, Robert Kerry wrote: [snip]> res_crypto.c:27:25: openssl/ssl.h: No such file or directory > res_crypto.c:28:25: openssl/err.h: No such file or directory[snip] Obviously /usr/include/openssl/ssl.h and /usr/include/openssl/err.h can not be found. Fix it by installing the openssl development package and retry. Patrick