delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <3ee066b40710091803y70650c8fu82fbe824d1604dc6@mail.gmail.com> |
Date: | Wed, 10 Oct 2007 06:33:09 +0530 |
From: | "antony baxter" <antony DOT baxter AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | libuuid |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
I'm trying to compile a PostgreSQL module that relies on libuuid. I've found a number of previous discussions about this lib on the mailing list which indicate that in general we must use the Win32api version libuuid.a found in /usr/lib/w32api The source of the module can be found here: http://code.google.com/p/polarrose-postgresql-uuid/ and the output of make is: gcc -O2 -pipe -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -I. -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -c -o uuid.o uuid.c uuid.c:8: warning: type defaults to `int' in declaration of `PG_MODULE_MAGIC' uuid.c:8: warning: data definition has no type or storage class uuid.c: In function `polarrose_uuid_out': uuid.c:70: warning: implicit declaration of function `uuid_unparse_lower' dlltool --export-all --output-def uuid.def uuid.o dllwrap -o uuid.dll --def uuid.def uuid.o /usr/lib/postgresql/pgxs/src/makefiles/../../src/utils/dllinit.o -L/usr/lib -lpostgres uuid.o:uuid.c:(.text+0xe): undefined reference to `_uuid_compare' uuid.o:uuid.c:(.text+0x55): undefined reference to `_uuid_generate_random' uuid.o:uuid.c:(.text+0x98): undefined reference to `_uuid_parse' uuid.o:uuid.c:(.text+0x174): undefined reference to `_uuid_unparse_lower' uuid.o:uuid.c:(.text+0x2fd): undefined reference to `_uuid_unparse_lower' collect2: ld returned 1 exit status dllwrap: gcc exited with status 1 make: *** [uuid.dll] Error 1 rm uuid.o I've tried: dllwrap -o uuid.dll --def uuid.def uuid.o /usr/lib/postgresql/pgxs/src/makefiles/../../src/utils/dllinit.o -L/usr/lib -lpostgres -L/usr/lib/w32api -luuid but get the same errors. Is there any way I can get this to work, or am I on a hiding to nothing? Thanks Ant. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |