This is the mail archive of the
cygwin
mailing list for the Cygwin project.
libuuid
- From: "antony baxter" <antony dot baxter at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 10 Oct 2007 06:33:09 +0530
- Subject: libuuid
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/