NetBSD Problem Report #43429

From ef@math.uni-bonn.de  Mon Jun  7 14:06:34 2010
Return-Path: <ef@math.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id EB95863B8CD
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  7 Jun 2010 14:06:33 +0000 (UTC)
Message-Id: <20100607140631.53AF38430@gumme.math.uni-bonn.de>
Date: Mon,  7 Jun 2010 16:06:31 +0200 (CEST)
From: ef@math.uni-bonn.de
Reply-To: ef@math.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: databases/sqlite3 doesn't buld on Mac OS X < 10.5
X-Send-Pr-Version: 3.95

>Number:         43429
>Category:       pkg
>Synopsis:       databases/sqlite3 doesn't buld on Mac OS X < 10.5
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    darwin-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 07 14:10:00 +0000 2010
>Closed-Date:    Thu Jun 17 13:48:29 +0000 2010
>Last-Modified:  Thu Jun 17 13:50:01 +0000 2010
>Originator:     Edgar Fuß
>Release:        pkgsrc-2010Q1
>Organization:
Mathematisches Institut der Uni Bonn
>Environment:

>Description:
	Building databases/sqlite3 on Mac OS 10.4.11 fails with:
		ld: Undefined symbols:
		_gethostuuid
		/usr/bin/libtool: internal link edit command failed

>How-To-Repeat:
	cd databases/sqlite3; bmake build
>Fix:
	--- Makefile.orig       2010-06-06 16:01:38.000000000 +0200
	+++ Makefile    2010-06-07 16:02:57.000000000 +0200
	@@ -23,6 +23,12 @@
	 INSTALLATION_DIRS+=	${PKGMANDIR}/man1
	 CONFIGURE_ARGS+=	--with-readline-inc= --enable-threadsafe

	+.include "../../mk/bsd.prefs.mk"
	+# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
	+.if ${OPSYS} == "Darwin" && !empty(OS_VERSION:M[0-8].*)
	+CFLAGS+=		-DSQLITE_ENABLE_LOCKING_STYLE=0
	+.endif 
	+
	 # Uses dlopen and friends but doesn't use -ldl on Linux.
	 # See http://www.sqlite.org/cvstrac/tktview?tn=3555
	 LIBS+=			${BUILDLINK_LDADD.dl}

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->darwin-pkg-people
Responsible-Changed-By: gls@NetBSD.org
Responsible-Changed-When: Mon, 07 Jun 2010 17:18:01 +0000
Responsible-Changed-Why:
Darwin/MacOSX specific issue


State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 17 Jun 2010 13:48:29 +0000
State-Changed-Why:
Fixed.  Thanks!


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43429 CVS commit: pkgsrc/databases/sqlite3
Date: Thu, 17 Jun 2010 13:45:36 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Thu Jun 17 13:45:36 UTC 2010

 Modified Files:
 	pkgsrc/databases/sqlite3: Makefile

 Log Message:
 Add workaround of build failure on MacOS X 10.4, lack of gethostuuid(2).
 PR#43429


 To generate a diff of this commit:
 cvs rdiff -u -r1.27 -r1.28 pkgsrc/databases/sqlite3/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.