From owner-freebsd-ports@FreeBSD.ORG Thu Apr 3 10:12:30 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 347FC37B404 for ; Thu, 3 Apr 2003 10:12:30 -0800 (PST) Received: from mail.urchin.com (ns2.quantified.com [63.212.171.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4BDD43F85 for ; Thu, 3 Apr 2003 10:12:28 -0800 (PST) (envelope-from dsilver@urchin.com) Received: from support.urchin.com (support.urchin.com [63.212.171.7]) by mail.urchin.com (8.12.9/8.12.1) with ESMTP id h33ICjuf001584; Thu, 3 Apr 2003 10:12:23 -0800 (PST) (envelope-from dsilver@urchin.com) Received: from danzig.sd.quantified.net (web.urchin.com [63.212.171.5]) (authenticated bits=0) by support.urchin.com (8.12.8/8.12.6) with ESMTP id h33ICPsL006327; Thu, 3 Apr 2003 10:12:25 -0800 (PST) (envelope-from dsilver@urchin.com) Content-Type: text/plain; charset="iso-8859-1" From: Doug Silver Organization: Urchin Software Corporation To: Monte Ohrt , freebsd-ports@freebsd.org Date: Thu, 3 Apr 2003 10:12:47 -0800 User-Agent: KMail/1.4.3 References: <1049391488.25607.21.camel@lena.ispi.prv> In-Reply-To: <1049391488.25607.21.camel@lena.ispi.prv> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304031012.25929.dsilver@urchin.com> X-Filter-Version: 1.7 (mail.urchin.com) Subject: Re: problem compiling postfix X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 18:12:30 -0000 On Thursday 03 April 2003 09:37 am, Monte Ohrt wrote: > Hi, > > I'm a newbie to FreeBSD, I love the ports collection and how it works! > I've had good success compiling/installing complicated packages such as > mysql/apache/php, very nice! > > Today I tried compiling postfix from the ports tree (up-to-date with > CVSup), selecting LDAP and MySQL support, and I ran into this error: > > > [src/error] > gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/include/mysq= l > -DHAS_LDAP -I/usr/local/include -DHAS_PCRE -I/usr/local/include -O > -pipe -mcpu=3Dpentiumpro -I. -I../../include -DFREEBSD5 -c error.c > gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/include/mysq= l > -DHAS_LDAP -I/usr/local/include -DHAS_PCRE -I/usr/local/include -O > -pipe -mcpu=3Dpentiumpro -I. -I../../include -DFREEBSD5 -o error error.= o > ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a > /usr/local/lib/mysql/libmysqlclient.a -lm -lz /usr/local/lib/libldap.a > /usr/local/lib/liblber.a -L/usr/local/lib -lpcre > /usr/local/lib/libldap.a(tls.o): In function `ldap_pvt_tls_destroy': > tls.o(.text+0xf): undefined reference to `SSL_CTX_free' > tls.o(.text+0x1e): undefined reference to `EVP_cleanup' > tls.o(.text+0x23): undefined reference to `ERR_free_strings' > /usr/local/lib/libldap.a(tls.o): In function `ldap_pvt_tls_init': > tls.o(.text+0x117): undefined reference to `SSL_load_error_strings' > tls.o(.text+0x11c): undefined reference to `SSL_library_init' > tls.o(.text+0x121): undefined reference to [snip] > > > > I did not select any SSL options for Postfix, so I'm not sure why it > looks for these SSL related things. Something obvious I missed, or? > > TIA I saw errors like that when compiling mod_php4, which was due to it tryin= g to=20 link in the libssl and/or libcrypto libraries. You can probably see the=20 exact error by looking in the config.log file. These libraries are in th= e=20 base system and will be installed in /usr/local if you install openssl fr= om=20 ports. There are a couple of possible solutions: 1. Find the patch for /usr/ports/Mk/bsd.port.mk which forces it to use=20 OPENSSLBASE/USE_OPENSSL_PORT directives in your make.conf file. I have i= t,=20 and it's been posted to this list in the past few weeks. 2. You could also try temporarily symlinking /usr/lib/libssl.so/libcrypto= =2Eso=20 to the newer versions in /usr/local and see if that fixes it. I've done both and things seem to be able to compile and work properly. = There=20 are only a few things in the base system that link against them (sshd, pp= pd,=20 etc). I decided to use the ports ssh rather than the base, so this hasn'= t=20 been a big inconvenience to work around the openssl library issue. HTH. -doug