Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2000 22:42:31 -0700 (MST)
From:      John Reynolds <jjreynold@home.com>
To:        ports@freebsd.org
Subject:   compile problem with fetchmail with openssl installed on 3.5-STABLE
Message-ID:  <14676.19015.25060.676768@whale.home-net>

next in thread | raw e-mail | index | archive | help

Hello all,

I CVSup'ed ports tonight and was going through updating various things. I
happened upon the following error while trying to compile fetchmail 5.4.1.

cc -L/usr/local/lib -L/usr/local/lib rcfile_y.o rcfile_l.o socket.o getpass.o pop2.o pop3.o imap.o  etrn.o fetchmail.o idle.o env.o options.o daemon.o driver.o sink.o  rfc822.o smtp.o xmalloc.o uid.o mxget.o md5ify.o rpa.o  interface.o netrc.o base64.o error.o unmime.o conf.o checkalias.o  smbdes.o smbencrypt.o smbmd4.o smbutil.o ipv6-connect.o  getopt.o getopt1.o -lrsaref -lcrypt -lintl  -lmd -lkvm -lssl -lcrypto -lfl -o fetchmail
/usr/local/lib/libcrypto.so: undefined reference to `ERR_load_RSAREF_strings'
/usr/local/lib/libcrypto.so: undefined reference to `RSA_PKCS1_RSAref'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

I am running a freshly built 3.5-S system and I have the latest openssl port
installed:

  openssl-0.9.5a

The Makefile for fetchmail looks to determine if both ${LOCALBASE}/lib/libssl.a
and ${LOCALBASE}/lib/libcrypto.a exist--which they do of course with this port
installed. However, it appears that the above mentioned functions cannot be
found.

One thing that strikes me as wierd is that the Makefile looks for the .a
libraries, but yet gcc is complaining that it can't resolve those references in
the shared object libraries. Anybody got any clues on that one? Anybody else on
3.5-S see the same problem I do (who also has openssl installed)?

Out of curiosity, I manually added the "-static" flag to the above cc command
and got:

root@whale [fetchmail/work/fetchmail-5.4.1]<44># cc -static -L/usr/local/lib
-L/usr/local/lib rcfile_y.o rcfile_l.o socket.o getpass.o pop2.o pop3.o imap.o
etrn.o fetchmail.o idle.o env.o options.o daemon.o driver.o sink.o rfc822.o
smtp.o xmalloc.o uid.o mxget.o md5ify.o rpa.o interface.o netrc.o base64.o
error.o unmime.o conf.o checkalias.o smbdes.o smbencrypt.o smbmd4.o smbutil.o
ipv6-connect.o getopt.o getopt1.o -lrsaref -lcrypt -lintl -lmd -lkvm -lssl
-lcrypto -lfl -o fetchmail
/usr/local/lib/libcrypto.a(rsa_lib.o): In function `RSA_new_method':
rsa_lib.o(.text+0x7e): undefined reference to `RSA_PKCS1_RSAref'
/usr/local/lib/libcrypto.a(err_all.o): In function `ERR_load_crypto_strings':
err_all.o(.text+0x30): undefined reference to `ERR_load_RSAREF_strings'

Any clues?

-Jr

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Reynolds         Chandler Capabilities Engineering, CDS, Intel Corporation
jreynold@sedona.ch.intel.com  My opinions are mine, not Intel's. Running
jjreynold@home.com          FreeBSD 3.4-STABLE. FreeBSD: The Power to Serve.
http://members.home.com/jjreynold/  Come join us!!! @ http://www.FreeBSD.org/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14676.19015.25060.676768>