Hey guys! I'm still having problems trying to get Asterisk compiled but when compiling res_crypto.c, I get this error: NSSL_NO_KRB5 -fPIC -c -o res_parking.o res_parking.c gcc -shared -Xlinker -x -o res_parking.so res_parking.o 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-02/02/04-13:02:21\" -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 My ld.so.conf seems to be ok: /usr/include/openssl/ Any ideas? tks jjj3_j _________________________________________________________________ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Steven Critchfield
2004-Feb-02 10:19 UTC
[Asterisk-Users] compile error (still having problems)
On Mon, 2004-02-02 at 11:09, jjj3 jjj3 wrote:> Hey guys! > > I'm still having problems trying to get Asterisk compiled but when compiling > res_crypto.c, I get this error:> gcc -shared -Xlinker -x -o res_crypto.so res_crypto.o -lssl -lcrypto > /usr/bin/ld: cannot find -lssl> My ld.so.conf seems to be ok: > /usr/include/openssl/You have so much to learn. A quick look at the gcc man page says that -l is a library to be linked against. Libraries are not held in include directories. Go find out if you have libssl.so on you machine. Then beat your head into the nearest manual greater than 5 pounds till you have absorbed the details that help you understand simple concise error messages. -- Steven Critchfield <critch@basesys.com>
Ok genius! Or better: thank you "God"!!! As you were, I'm on the begining of learning how everything works in unix's systems. But some times people forget the they also borned with a little less knowlegde then they have today. In other words, everybody had once ago the same question. But not you, right? tks anyways. jjj3_j>From: Steven Critchfield <critch@basesys.com> >Reply-To: asterisk-users@lists.digium.com >To: asterisk-users@lists.digium.com >Subject: Re: [Asterisk-Users] compile error (still having problems) >Date: Mon, 02 Feb 2004 11:19:52 -0600 > >On Mon, 2004-02-02 at 11:09, jjj3 jjj3 wrote: > > Hey guys! > > > > I'm still having problems trying to get Asterisk compiled but when >compiling > > res_crypto.c, I get this error: > > > > gcc -shared -Xlinker -x -o res_crypto.so res_crypto.o -lssl -lcrypto > > /usr/bin/ld: cannot find -lssl > > > > My ld.so.conf seems to be ok: > > /usr/include/openssl/ > > >You have so much to learn. A quick look at the gcc man page says that -l >is a library to be linked against. Libraries are not held in include >directories. Go find out if you have libssl.so on you machine. Then beat >your head into the nearest manual greater than 5 pounds till you have >absorbed the details that help you understand simple concise error >messages. >-- >Steven Critchfield <critch@basesys.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_________________________________________________________________ Find high-speed ‘net deals — comparison-shop your local providers here. https://broadband.msn.com