On Thu, Sep 22, 2005 at 09:30:08AM -0600, Lester, Bob wrote:

> Hi All,
> 
>      I've cross-posted this on comp.mail.sendmail.  Maybe folks here have an 
> idea?
> 
>      I'm running into a compile problem when trying to add TLS support to 
> sendmail.  This is on a SunOS 5.9 box, GCC 3.3.2 (existing), with OpenSSL 
> 0.9.8 (new install - seemed to install fine) and sendmail 8.13.4 (existing).  
> The error is undefined symbol:
> 
> --------------------snip--------------------------
> gcc -o sendmail  -L/usr/local/ssl/lib -R/usr/local/ssl/lib main.o alias.o 
> arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o deliver.o 
> domain.o envelope.o err.o headers.o macro.o map.o mci.o milter.o mime.o 
> parseaddr.o queue.o ratectrl.o readcf.o recipient.o sasl.o savemail.o 
> sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o 
> timers.o tls.o trace.o udb.o usersmtp.o util.o version.o     -lssl -lcrypto 
> /export/home/Install/sendmail/sendmail-8.13.4/obj.SunOS.5.9.sun4/libsmutil/libsmutil.a
>  
> /export/home/Install/sendmail/sendmail-8.13.4/obj.SunOS.5.9.sun4/libsm/libsm.a
>   -lresolv -lsocket -lnsl
> Undefined                       first referenced
>  symbol                             in file
> X509_STORE_set_flags                tls.o
> ld: fatal: Symbol referencing errors. No output written to sendmail
> collect2: ld returned 1 exit status

Try "-Wl,-R," instead of "-R" with gcc. "-R" is a suncc option.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to