From owner-freebsd-ports@FreeBSD.ORG Tue May 22 04:34:54 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACA011065675 for ; Tue, 22 May 2012 04:34:54 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0FA8FC18 for ; Tue, 22 May 2012 04:34:54 +0000 (UTC) Received: by vbmv11 with SMTP id v11so5144007vbm.13 for ; Mon, 21 May 2012 21:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1mOSsRLc8K/UWaBk4ByL3WyaFwkUb1xn82OlykMoCvo=; b=NLOY95LMim0VSrgbTdWXfP9FG/TiFsaYz7HSCykk/mkyLB1QMQrQpExaOq86IKtqWt hLwc8bsrI2OeuWrzFzRRfLQHWOURQmxf8r4BcTN930jO3URU8LeSOTkB1zwuu8TNnsL6 ZLiP4jIzUd7p4LnBfOTxR/R7eiQtBbYpRRumkLYT+mPndpkQxBiWFY1yS2DSpeO47x45 Oc4ddplqus6Pc7eQTf5fjqL31JiPJsd6x13rPYGQsAD9lPqvTBLauAPcBjSqeZ0sYNlU c5oPyEMIK4HIux3MgUtwX0/Orxvfam+Rgc6hoy824f3GkR5e2ONdqdWjrthxxdmBEV7N 8rOw== MIME-Version: 1.0 Received: by 10.52.88.234 with SMTP id bj10mr10604731vdb.48.1337661287970; Mon, 21 May 2012 21:34:47 -0700 (PDT) Received: by 10.52.112.167 with HTTP; Mon, 21 May 2012 21:34:47 -0700 (PDT) In-Reply-To: References: <4FAD492C.3060807@gmx.de> <9880B4F2567E41A582B6B9DA178AECFD@black> Date: Tue, 22 May 2012 00:34:47 -0400 Message-ID: From: Robert Simmons To: freebsd-ports@freebsd.org Content-Type: multipart/mixed; boundary=bcaec5016727e6394304c09889de Subject: Re: Heimdal 1.5.2 problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 04:34:54 -0000 --bcaec5016727e6394304c09889de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, May 15, 2012 at 12:51 PM, Robert Simmons wrot= e: > On Tue, May 15, 2012 at 5:46 AM, Dewayne Geraghty > wrote: >> Thanks for the updates Robert. >> >> I've pursued building heimdal on a custom FreeBSD9-Stable jail built wit= hout >> crypto (openssl, heimdal,...); and forced the selection of bdb throughou= t the >> range 5 to 41 via the following ports.conf setting >> >> *: WITH_BDB_VER=3D5 >> ... >> *: WITH_BDB_VER=3D41 >> Combined with >> security/heimdal: PREFIX=3D/usr/local | WITH_CRACKLIB | WITHOUT_SQLITE |= WITH_BDB >> >> Only the databases/db41 builds heimdal to completion. =A0All others term= inated >> with >> >> ------------------------ >> >> /var/ports/usr/ports/security/heimdal/work/heimdal-1.5.2/lib/com_err/.li= bs/libc >> om_err.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so >> /var/ports/usr/ports/security/heimdal/work/heimdal-1.5.2/lib/roken/.libs= /librok >> en.so ../../lib/sqlite/.libs/libheimsqlite.so ../../lib/roken/.libs/libr= oken.so >> -lcrypt /usr/local/lib/libldap.so /usr/local/lib/libsasl2.so -lssl -lcry= pto >> /usr/local/lib/liblber.so -ldb =A0-O2 -O2 -march=3Dprescott -mtune=3Dpre= scott >> -Wl,--version-script -Wl,./version-script.map -pthread =A0 -pthread -Wl,= -soname >> -Wl,libhdb.so.11 -o .libs/libhdb.so.11 >> .libs/db3.o: In function `hdb_db_create': >> db3.c:(.text+0x3a): multiple definition of `hdb_db_create' >> .libs/db.o:db.c:(.text+0x15): first defined here >> *** Error code 1 >> ------------------------ >> >> There was a change to /usr/ports/security/heimda/files with the addition= of >> patch patch-cf__db.m4, which I removed during one build attempt with db4= 1. This >> generated many more error messages >> >> ------------------------ >> libtool: compile: =A0cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../= include >> -I../../lib/roken -I../../lib/roken -I../asn1 -I./../asn1 -I/usr/local/i= nclude >> -DHDB_DB_DIR=3D\"/var/db/heimdal\" -I./../krb5 -I../../lib/sqlite >> -I/usr/local/include -I/usr/local/include/db41 -D_LARGE_FILES=3D -Wall >> -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-decla= rations >> -Wnested-externs -O2 -pipe -pipe -O2 -g0 -ggdb0 -DSTRIP_FBSDID -UDEBUGGI= NG >> -UEBUGGING -I/usr/local/include/db41 -DLDAP_DEPRECATED -fno-strict-alias= ing -MT >> db.lo -MD -MP -MF .deps/db.Tpo -c db.c =A0-fPIC -DPIC -o .libs/db.o >> db.c: In function 'DB_close': >> db.c:48: error: too few arguments to function 'd->close' >> db.c: In function 'DB_lock': >> db.c:67: error: too few arguments to function 'd->fd' >> db.c: In function 'DB_unlock': >> db.c:80: error: too few arguments to function 'd->fd' >> db.c: In function 'DB_seq': >> db.c:104: error: 'DB' has no member named 'seq' >> ... >> ------------------------ >> >> Unfortunately this confirms that the heimdal 1.5.2 port doesn't build wi= th bdb. >> I'll advise later in the week, the result of my preferred build of heimd= al over >> ldap (over bdb5). >> >> For completeness, FreeBSD9-Stable was updated yesterday (May 14) and the= ports >> tree was also updated and built on a virgin machine today (May 15). > > Yep. =A0That's exactly what I've found. =A0Also, as I have noted earlier, > if you look at the output from configure during the building of the > heimdal port, it builds db41 as a dependency, but configure does not > find it! =A0The only version of BDB that configure finds is the one in > the base OS which is 185! > > This port is totally borken as far as building with BDB backend support. > > I've reached out to the Heimdal mailing list for some assistance, and > I will try to fix the problem myself and submit a patch to the port. > I haven't been able to get the port maintainer to respond to queries > about this problem, but he may just be very busy. I have solved the problem. There are a couple of problems, actually: Heimdal 1.5.2 is incompatible with the version of BDB included in the base FreeBSD system. Also, the Makefile for the port has a few mistakes which cause configure to find the OS's BDB no matter what. These same mistakes cause configure to ignore BDB even if the port is set to install BDB backend support. Lastly, the default configuration for this port builds no backend at all, and is therefore broken. Here is a patch that corrects all the mistakes and sets BDB as the default backend. It also removes a dead mirror. Can the list please review this patch for any mistakes that I've made? --bcaec5016727e6394304c09889de Content-Type: text/plain; charset=US-ASCII; name="patch.txt" Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h2igyuod0 LS0tIHBvcnRzL3NlY3VyaXR5L2hlaW1kYWwvTWFrZWZpbGUub2xkCTIwMTItMDUtMjAgMTY6MTk6 MzkuMDAwMDAwMDAwIC0wNDAwCisrKyBwb3J0cy9zZWN1cml0eS9oZWltZGFsL01ha2VmaWxlCTIw MTItMDUtMjAgMTY6MjE6NDMuMDAwMDAwMDAwIC0wNDAwCkBAIC03LDEzICs3LDEyIEBACiAKIFBP UlROQU1FPQloZWltZGFsCiBQT1JUVkVSU0lPTj0JMS41LjIKLVBPUlRSRVZJU0lPTj0JMQorUE9S VFJFVklTSU9OPQkyCiBDQVRFR09SSUVTPQlzZWN1cml0eSBpcHY2CiBNQVNURVJfU0lURVM9CWh0 dHA6Ly93d3cuaDVsLm9yZy9kaXN0L3NyYy8gXAogCQlodHRwOi8vZnRwLnBkYy5rdGguc2UvcHVi L2hlaW1kYWwvc3JjLyBcCiAJCWZ0cDovL2Z0cC5wZGMua3RoLnNlL3B1Yi9oZWltZGFsL3NyYy8g XAotCQlmdHA6Ly9mdHAuc3VuZXQuc2UvcHViL3VuaXgvYWRtaW4vbWlycm9yLXBkYy9oZWltZGFs L3NyYy8gXAotCQlmdHA6Ly9mdHAuYXlhbXVyYS5vcmcvcHViL2hlaW1kYWwvCisJCWZ0cDovL2Z0 cC5zdW5ldC5zZS9wdWIvdW5peC9hZG1pbi9taXJyb3ItcGRjL2hlaW1kY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