Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C24921337B7D for ; Tue, 21 Dec 2010 22:00:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95253-02 for ; Wed, 22 Dec 2010 02:00:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from asmtpout024.mac.com (asmtpout024.mac.com [17.148.16.99]) by mail.postgresql.org (Postfix) with ESMTP id 974CF1336B42 for ; Tue, 21 Dec 2010 22:00:46 -0400 (AST) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [10.0.1.6] ([96.26.45.126]) by asmtp024.mac.com (Oracle Communications Messaging Exchange Server 7u4-18.01 64bit (built Jul 15 2010)) with ESMTPSA id <0LDT001II48XIE30@asmtp024.mac.com> for pgsql-sql@postgresql.org; Tue, 21 Dec 2010 18:00:35 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-12-21_09:2010-12-21, 2010-12-21, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1012210171 Subject: Re: linux. ossp-uuid From: Basil Bourque In-reply-to: Date: Tue, 21 Dec 2010 18:00:32 -0800 Message-id: References: To: pgsql-sql@postgresql.org X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201012/99 X-Sequence-Number: 34935 As documented here: http://www.postgresql.org/docs/9.0/interactive/uuid-ossp.html Rather than assuming the host operating system has an implementation of UUID, Postgres depends on the presence of a specific implementation of UUID generation & handling. This open-source implementation is called "OSSP uuid", found here: http://www.ossp.org/pkg/lib/uuid/ My guess: You compiled the code necessary for Postgres to reach out to this UUID implementation. But you are missing the actual UUID implementation. The OneClick installer from EnterpriseDB.com placed this on my Mac, which I assume is the UUID implementation: /Library/PostgreSQL/9.0/lib/postgresql/uuid-ossp.so In addition I found what I assume is the code that enables Postgres to reach out and call that implementation. /Library/PostgreSQL/9.0/lib/libuuid.dylib /Library/PostgreSQL/9.0/lib/libuuid.la Lastly I found this SQL script which I ran to enable the already-complied code: /Library/PostgreSQL/9.0/share/postgresql/contrib/uuid-ossp.sql I'm no expert, but I hope that helps. --Basil Bourque > I have linux server. Package uuid installed > > I build and install postgresql from source with --with-ossp-uuid flag. > > After installation I try to execute: > > ======= > create or replace function > uuid_generate_v1() > > returns > uuid > > as '$libdir/uuid-ossp', 'uuid_generate_v1' > > volatile strict language C > > ======= > > and got error > > "could not load libraty /usr/lib/postgresql/uuid-ossp.so": /usr/lib/postgresql/uuid-ossp.so: undefined symbol: uuid_error" > > How I can fix it?