X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <50153.131.130.2.114.1226326969.squirrel@webmail.univie.ac.at> Date: Mon, 10 Nov 2008 15:22:49 +0100 (CET) Subject: Cannot compile UUID module From: "Alexander Stadler" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 got the UUID package from ftp://ftp.perl.org/pub/CPAN/modules/by-module/UUID/UUID-0.02.tar.gz . Because whyever perl -MCPAN -e "install 'UUID'" says it's not avalaible. But after extracting I have the following problem(s): $ perl Makefile.PL results to: Note (probably harmless): No library found for -luuid Writing Makefile for UUID so I've tried this: $ perl Makefile.PL LIBS=-L/usr/lib/e2fsprogs which results to: Writing Makefile for UUID looks better, as alternative I've also tried LIBS=-L/usr/lib/w32api . But unfortunately the result of make is always the same: $ make gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -I/ usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" UUID.c rm -f blib/arch/auto/UUID/UUID.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,838 8608 -Wl,--enable-auto-image-base -L/usr/local/lib UUID.o -o blib/arch/auto/UUI D/UUID.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/libperl.dll.a \ UUID.o:UUID.c:(.text+0xe): undefined reference to `_uuid_generate' UUID.o:UUID.c:(.text+0x6e): undefined reference to `_uuid_unparse' UUID.o:UUID.c:(.text+0x10f): undefined reference to `_uuid_parse' UUID.o:UUID.c:(.text+0x15e): undefined reference to `_uuid_parse' UUID.o:UUID.c:(.text+0x25c): undefined reference to `_uuid_generate' UUID.o:UUID.c:(.text+0x401): undefined reference to `_uuid_unparse' UUID.o:UUID.c:(.text+0x637): undefined reference to `_uuid_parse' UUID.o:UUID.c:(.text+0x78e): undefined reference to `_uuid_parse' collect2: ld returned 1 exit status make: *** [blib/arch/auto/UUID/UUID.dll] Error 1 after reading http://cygwin.com/ml/cygwin/2007-10/msg00218.html I've tried it with editing the Makefile and adding these parameters to LDDLFLAGS and LDFLAGS: -L/usr/lib/e2fsprogs -Wl,-Bstatic -luuid -Wl,-Bdynamic which just results in the same error: $ make gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -I/ usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" UUID.c rm -f blib/arch/auto/UUID/UUID.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,838 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -L/usr/lib/e2fsprogs -Wl,-Bst atic -luuid -Wl,-Bdynamic UUID.o -o blib/arch/auto/UUID/UUID.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/libperl.dll.a \ UUID.o:UUID.c:(.text+0xe): undefined reference to `_uuid_generate' UUID.o:UUID.c:(.text+0x6e): undefined reference to `_uuid_unparse' UUID.o:UUID.c:(.text+0x10f): undefined reference to `_uuid_parse' UUID.o:UUID.c:(.text+0x15e): undefined reference to `_uuid_parse' UUID.o:UUID.c:(.text+0x25c): undefined reference to `_uuid_generate' UUID.o:UUID.c:(.text+0x401): undefined reference to `_uuid_unparse' UUID.o:UUID.c:(.text+0x637): undefined reference to `_uuid_parse' UUID.o:UUID.c:(.text+0x78e): undefined reference to `_uuid_parse' collect2: ld returned 1 exit status make: *** [blib/arch/auto/UUID/UUID.dll] Error 1 executing: dlltool --export-all --output-def uuid.def uuid.o creates an uuid.def, but I don't know for what? and: dllwrap -o uuid.dll --def uuid.def uuid.o -L/usr/lib -L/usr/lib/e2fsprogs -Wl,-Bstatic -luuid -Wl,-Bdynamic results in many error messages like this: uuid.o:UUID.c:(.text+0x1a): undefined reference to `_Perl_Gthr_key_ptr' uuid.o:UUID.c:(.text+0x40): undefined reference to `_Perl_sv_setpvn' ... uuid.o:UUID.c:(.text+0xdd4): undefined reference to `_Perl_vstringify' uuid.o:UUID.c:(.text+0xe45): undefined reference to `_Perl_croak' collect2: ld returned 1 exit status dllwrap: gcc exited with status 1 If I use /usr/lib/w32api or /usr/lib/e2fsprogs does not make any difference. /usr/include/uuid/uuid.h exists (from whereever it is..) I need this Module for the VMWare VI Perl Toolkit which didn't had this requirement in the beta (which I've used until yet). The prerequisite for this is UUID version 0.03 which can be found at http://search.cpan.org/~cfaber/UUID-0.03/ , http://search.cpan.org/CPAN/authors/id/C/CF/CFABER/UUID-0.03.tar.gz but this is an unauthorized release (with the same problems when I run make). Please help! As I've seen that some were able to compile it in Cygwin for PostgreSQL.. . Thank you very much Alexander -- 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/