[Asterisk-Users] compile error

Gonzalo Servat gs at webtastic.com.au
Mon Feb 2 05:22:31 MST 2004


On Mon, 2004-02-02 at 23:19, jjj3 jjj3 wrote:
> I'm trying to compile the last * CVS version and I got this error:
> 
> gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE 
>   -O6 -march=i686  -DZAPTEL_OPTIMIZATIONS 
> -DASTERISK_VERSION=\"CVS-09/10/03-18:47:18\" -DINSTALL_PREFIX=\"\" 
> -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
> -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
> -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
> -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
> -DASTMODDIR=\"/usr/lib/asterisk/modules\" 
> -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     
> -DNEW_PRI_HANGUP    -DZAPATA_MOH -DOPENSSL_NO_KRB5 -fPIC   -c -o 
> res_crypto.o res_crypto.c
> gcc -shared -Xlinker -x -o res_crypto.so res_crypto.o -lssl -lcrypto
> /usr/bin/ld: cannot find -lssl
> collect2: ld returned 1 exit status
> make[1]: *** [res_crypto.so] Error 1
> make[1]: Leaving directory `/usr/src/asterisk/res'
> make: *** [subdirs] Error 1
> 
> 
> The openssl is already installed and all the .h files are in 
> /usr/include/openssl.
> 
> What does it can be?

Check /etc/ld.so.conf, ensure the path to your SSL libraries is in
there. If it's not, add it and run "ldconfig".

HTH.

Regards,
Gonzalo




More information about the asterisk-users mailing list