From krb5-bugs-incoming-bounces@PCH.mit.edu Fri Aug 4 23:33:57 2006 Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP id XAA21661; Fri, 4 Aug 2006 23:33:57 -0400 (EDT) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id k753XHU4012719 for ; Fri, 4 Aug 2006 23:33:17 -0400 Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id k74D4orl013765 for ; Fri, 4 Aug 2006 09:04:50 -0400 Received: from mit.edu (W92-130-BARRACUDA-2.MIT.EDU [18.7.21.223]) by fort-point-station.mit.edu (8.13.6/8.9.2) with ESMTP id k74D4rBl018429 for ; Fri, 4 Aug 2006 09:04:53 -0400 (EDT) Received: from coppi.bath.ac.uk (coppi.bath.ac.uk [138.38.32.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mit.edu (Spam Firewall) with ESMTP id A54663AB60 for ; Fri, 4 Aug 2006 09:04:30 -0400 (EDT) Received: from mary.bath.ac.uk ([138.38.32.14] ident=mmdf) by coppi.bath.ac.uk with smtp id 1G8zLn-0007H2-FW for krb5-bugs@mit.edu (return-path ); Fri, 04 Aug 2006 14:04:28 +0100 Received: from hinault.bath.ac.uk ( [oM937cuI2+aa3fSHE1XjgT+OHQbg4X3X]@hinault.bath.ac.uk [138.38.52.28] ) by bath.ac.uk id aa29533 ; 4 Aug 2006 14:04 +0100 Received: from ccsdhd by hinault.bath.ac.uk with local id 1G8zLm-0005Ns-BQ; Fri, 04 Aug 2006 14:04:26 +0100 To: krb5-bugs@mit.edu Subject: Problems building krb5-1.5 with static libraries on OpenBSD3.9. From: Dennis Davis X-send-pr-version: 3.99 Message-Id: Date: Fri, 04 Aug 2006 14:04:26 +0100 X-Scanner: 67bb9ca424d3cccf619cc9d32429bbc2639dd8f8 X-Spam-Score: 0.12 X-Spam-Flag: NO X-Scanned-By: MIMEDefang 2.42 X-Mailman-Approved-At: Fri, 04 Aug 2006 23:33:14 -0400 Cc: Dennis Davis X-BeenThere: krb5-bugs-incoming@mailman.mit.edu X-Mailman-Version: 2.1.6 Precedence: list Reply-To: Dennis Davis Sender: krb5-bugs-incoming-bounces@PCH.mit.edu Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu >Submitter-Id: net >Originator: Dennis Davis >Organization: University of Bath, UK >Confidential: no >Synopsis: Can't build krb5-1.5-signed.tar with static libraries on OpenBSD3.9 >Severity: non-critical >Priority: low >Category: krb5-build >Class: sw-bug >Release: 1.5 >Environment: merckx.bath.ac.uk [138.38.52.201], running OpenBSD3.9 System: OpenBSD merckx.bath.ac.uk 3.9 EXIM_SERVER#0 i386 >Description: I can configure krb5-1.5-signed.tar on OpenBSD3.9 with a command line of the form: LDFLAGS=-lpthread \ CC=cc CFLAGS="-O2 -fPIC" \ ./configure --prefix=/kerberosV \ --enable-dns-for-realm --without-krb4 \ --with-tcl=/usr/local --enable-shared \ --disable-static --enable-thread-support and the build works fine. I can tweak the code to cater for the problem noted in: http://krbdev.mit.edu/rt/Ticket/Display.html?id=3971 and it all seems to run OK. Building with static and dynamic libraries requires: LDFLAGS=-lpthread \ CC=cc CFLAGS="-O2 -fPIC" \ ./configure --prefix=/kerberosV \ --enable-dns-for-realm --without-krb4 \ --with-tcl=/usr/local --enable-shared \ --enable-static --enable-thread-support However the build fails with: making all in plugins/kdb/db2/libdb2/test... cp ./include/db.h ../../../../include/db.h cp include/db-config.h ../../../../include/db-config.h cp ./include/db-ndbm.h ../../../../include/db-ndbm.h rm -f libdb.a building static db library set -x; objlist=`set -x && perl -p -e 'BEGIN { $SIG{__WARN__} = sub {die @_} }; $e=$ARGV; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g;' hash/OBJS.ST btree/OBJS.ST db/OBJS.ST mpool/OBJS.ST recno/OBJS.ST clib/OBJS.ST` && ar cq libdb.a $objlist + set -x + perl -p -e BEGIN { $SIG{__WARN__} = sub {die @_} }; $e=$ARGV; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g; hash/OBJS.ST btree/OBJS.ST db/OBJS.ST mpool/OBJS.ST recno/OBJS.ST clib/OBJS.ST Can't open hash/OBJS.ST: No such file or directory. + objlist= *** Error code 2 Stop in /tmp/krb5-1.5/src/plugins/kdb/db2/libdb2 (line 642 of Makefile). *** Error code 1 Stop in /tmp/krb5-1.5/src/plugins/kdb/db2 (line 1053 of Makefile). *** Error code 1 Stop in /tmp/krb5-1.5/src (line 1336 of Makefile). and if I fix this I get a succession of similar failures. >How-To-Repeat: Not applicable. >Fix: Run the following simple script after configuring as above and *before* the main build. #!/bin/sh for i in \ ./plugins/kdb/db2/libdb2/hash \ ./plugins/kdb/db2/libdb2/db \ ./plugins/kdb/db2/libdb2/mpool \ ./plugins/kdb/db2/libdb2/btree \ ./plugins/kdb/db2/libdb2/recno \ ./plugins/kdb/db2/libdb2/clib do (cd $i; make OBJS.ST) done