Skip Menu |

This queue is for tickets about the Class-MOP CPAN distribution.

Report information
The Basics
Id: 44739
Status: resolved
Priority: 0/
Queue: Class-MOP

People
Owner: Nobody in particular
Requestors: mail-miwi [...] gmx.de
vpit [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.80
Fixed in: 0.81



Subject: Don't obliterate perl's default value of CCFLAGS
Passing CCFLAGS => $ccflags to makemaker_args() completely discards perl's default value of CCFLAGS. This may be bad because compiler-specific flags are usually stored in it (e.g. Intel CC expects to find -no-gcc in it). The attached patch appends your Class::MOP ccflags to the default ones. Vincent
Subject: Class-MOP-0.80-ccflags.patch
--- Makefile.PL 2009-04-01 23:55:18.000000000 +0200 +++ Makefile.PL 2009-04-02 00:03:14.000000000 +0200 @@ -10,7 +10,8 @@ all_from 'lib/Class/MOP.pm'; license 'perl'; -my $ccflags = ' -I.'; +require Config; +my $ccflags = ($Config::Config{ccflags} || '') . ' -I.'; $ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE}; requires 'Carp';
Subject: Can't find 'boot_Class__MOP' symbol
Date: Mon, 06 Apr 2009 06:55:21 +0200
To: bug-Class-MOP [...] rt.cpan.org
From: mail-miwi [...] gmx.de
Hi there, I do not know if that is a bug with 0.80, but it didn't happen about a few weeks ago where I had an earlier version (I think is was 0.78). [...] Can't find 'boot_Class__MOP' symbol in /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Class/MOP/MOP.bundle\n at /Library/Perl/5.8.8/darwin-thread-multi-2level/Class/MOP.pm line 42\nCompilation failed in require at /Library/Perl/5.8.8/Moose/Exporter.pm line 10.\nBEGIN failed--compilation aborted at /Library/Perl/5.8.8/Moose/Exporter.pm line 10.\nCompilation failed in require at /Library/Perl/5.8.8/Moose.pm [...] Best regards, Michael -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
Show quoted text
> I do not know if that is a bug with 0.80, but it didn't happen about a > few weeks ago where I had an earlier version (I think is was 0.78).
We don't know exactly what happened, but our best guess is that this is a problem during compilation (and/or XS pre-processing). Can you provide the full output of the "make" command, as well as a copy of xs/MOP.c (not .xs) that is generated from make?
Subject: Re: [rt.cpan.org #44813] Can't find 'boot_Class__MOP' symbol
Date: Tue, 07 Apr 2009 21:23:08 +0200
To: bug-Class-MOP [...] rt.cpan.org
From: Michael Wichmann <mail-miwi [...] gmx.de>
As Class::MOP was built with ARCHFLAGS = '-arch i386 -arch x86_64', a make on 0.80 results in the following linker errors on my machine: [...] ld warning: in xs/Attribute.o, file is not of required architecture ld warning: in xs/Class.o, file is not of required architecture ld warning: in xs/Method.o, file is not of required architecture ld warning: in xs/MOP.o, file is not of required architecture ld warning: in xs/Package.o, file is not of required architecture ld warning: in mop.o, file is not of required architecture [...] ...which do not occur for a make on 0.81 which I tried today (the 0.80 was installed via cpan -i) If this information is insufficient and you still want the files you requested, just contact me. Michael
Subject: Re: [rt.cpan.org #44813] Can't find 'boot_Class__MOP' symbol
Date: Tue, 7 Apr 2009 21:59:41 +0200
To: "mail-miwi [...] gmx.de via RT" <bug-Class-MOP [...] rt.cpan.org>
From: Florian Ragwitz <rafl [...] debian.org>
On Tue, Apr 07, 2009 at 03:23:30PM -0400, mail-miwi@gmx.de via RT wrote: Show quoted text
> Queue: Class-MOP > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=44813 > > > As Class::MOP was built with ARCHFLAGS = '-arch i386 -arch x86_64', > > a make on 0.80 results in the following linker errors on my machine: > > [...] > ld warning: in xs/Attribute.o, file is not of required architecture > ld warning: in xs/Class.o, file is not of required architecture > ld warning: in xs/Method.o, file is not of required architecture > ld warning: in xs/MOP.o, file is not of required architecture > ld warning: in xs/Package.o, file is not of required architecture > ld warning: in mop.o, file is not of required architecture > [...] > > ...which do not occur for a make on 0.81 which I tried today (the 0.80 > was installed via cpan -i) > > If this information is insufficient and you still want the files you > requested, just contact me.
This was caused by our Makefile.PL not including the default ccflags from the perl configuration. That has recently been fixed by Vincent Pitt and is, afaik, part of the latest release on cpan. -- BOFH excuse #85: Windows 95 undocumented "feature"
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.