Skip Menu |

This queue is for tickets about the Alien-Tidyp CPAN distribution.

Report information
The Basics
Id: 66382
Status: resolved
Priority: 0/
Queue: Alien-Tidyp

People
Owner: Nobody in particular
Requestors: nanis [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: v1.4.5
Fixed in: (no value)



Subject: 20-compile.t fails on Max OS X 10.6.6
Trying to install Alien::Tidyp via the Build.PL on Mac OS X 10.6.6 with the stock perl 5.10.0 results in errors in the test 20-compile.t. I get the same errors using cpanm to install it as well. I am attaching the output of perl Build test and perl -V with this message. To be honest, I am not 100% sure the problem is with Alien::Tidyp. It could also lie with the configure script for tidyp and I do not have much experience with OS X to be able to tell exactly where things are going wrong. Linking from the command line seems to work: [sinan@macardy] ~/tmp/Alien-Tidyp-v1.4.5/sharedir/v1.4.5 $ cat t.c #include <tidyp.h> #include <stdio.h> int main(void) { printf("Tidy Version: %s\n", tidyVersion()); return 0; } [sinan@macardy] ~/tmp/Alien-Tidyp-v1.4.5/sharedir/v1.4.5 $ gcc t.c -o t -I./include/tidyp -L./lib -ltidyp -Wall [sinan@macardy] ~/tmp/Alien-Tidyp-v1.4.5/sharedir/v1.4.5 $ ./t Tidy Version: 1.04
Subject: perl-V.log
Download perl-V.log
application/octet-stream 3.1k

Message body not shown because it is not plain text.

Subject: test.log
Download test.log
application/octet-stream 2.3k

Message body not shown because it is not plain text.

On Fri Mar 04 13:12:35 2011, NANIS wrote:
Show quoted text
> ...
> Linking from the command line seems to work:
> ...

In that case simply try to force install Alien::Tidyp and after that try to install HTML::Tidy (it should work)

Looking at your perl -V output I think that the troubles are caused by your $Config{ldflags} value

$Config{ccflags} ='-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
$Config{ldflags} ='-arch x86_64 -arch i386 -arch ppc -L/usr/local/lib'

I do not know what are the correct values but the failure of 20-compile.t is definitely caused by this as the test uses ExtUtils::CBuilder which uses $Config{ldflags} + $Config{ccflags} values as linker/compiler parameters.

Looking at other MacOSX cpantesters results the right value is something like:
ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include'
ldflags =' -L/usr/local/lib'

I guess that with your configuration you can expect troubles not only with Alien::Tidyp but with other modules using ExtUtils::CBuilder.

--
kmx
On Sat Mar 05 08:04:38 2011, KMX wrote: Show quoted text
> On Fri Mar 04 13:12:35 2011, NANIS wrote:
> > ... Linking from the command line seems to work: ...
> > In that case simply try to force install Alien::Tidyp and after > that try to install HTML::Tidy (it should work) > > Looking at your perl -V output I think that the troubles are > caused by your $Config{ldflags} value > > $Config{ccflags} ='-arch x86_64 -arch i386 -arch ppc -g -pipe > -fno-common -DPERL_DARWIN -fno-strict-aliasing > -I/usr/local/include', $Config{ldflags} ='-arch x86_64 -arch > i386 -arch ppc -L/usr/local/lib' >
... Show quoted text
> I guess that with your configuration you can expect troubles not > only with Alien::Tidyp but with other modules using > ExtUtils::CBuilder.
I have to develop for the Perl distributions that come with the OS. That is the Config value for the perl 5.10.0 that comes with the OS. So, I am inclined to believe it is correct in some sense while I really have no idea what I am talking about when comes to Macs. Thanks. -- Sinan
On Sat Mar 05 08:28:00 2011, NANIS wrote:
Show quoted text
> On Sat Mar 05 08:04:38 2011, KMX wrote:
> > On Fri Mar 04 13:12:35 2011, NANIS wrote:
> > > ... Linking from the command line seems to work: ...
> >
> > In that case simply try to force install Alien::Tidyp and after
> > that try to install HTML::Tidy (it should work)
> >
> > Looking at your perl -V output I think that the troubles are
> > caused by your $Config{ldflags} value
> >
> > $Config{ccflags} ='-arch x86_64 -arch i386 -arch ppc -g -pipe
> > -fno-common -DPERL_DARWIN -fno-strict-aliasing
> > -I/usr/local/include', $Config{ldflags} ='-arch x86_64 -arch
> > i386 -arch ppc -L/usr/local/lib'
> >
> ...
>
> > I guess that with your configuration you can expect troubles not
> > only with Alien::Tidyp but with other modules using
> > ExtUtils::CBuilder.
>
> I have to develop for the Perl distributions that come with the
> OS. That is the Config value for the perl 5.10.0 that comes with
> the OS.

so try to compile your example with compiler/linker options from %Config

1/ compile like this:

gcc-4.2 test.c -c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I~/tmp/Alien-Tidyp-v1.4.5/sharedir/v1.4.5/include/tidyp

2/ link like this:

gcc-4.2 -mmacosx-version-min=10.6 test.o -o t -arch x86_64 -arch i386 -arch ppc -L/usr/local/lib -L~/tmp/Alien-Tidyp-v1.4.5/sharedir/v1.4.5/lib -ltidyp

Show quoted text
> So, I am inclined to believe it is correct in some sense
> while I really have no idea what I am talking about when comes to
> Macs.

Unfortunately I have zero experience with MacOSX.

--
kmx

Hi,

I think I might have found a fix for your issue.

Could you please try to install the latest github version from https://github.com/kmx/alien-tidyp/tarball/master ?

--
kmx

On Mon Mar 07 17:35:44 2011, KMX wrote: Show quoted text
> Could you please try to install the latest github version from > https://github.com/kmx/alien-tidyp/tarball/master ?
It worked. Thank you. -- Sinan
Show quoted text
> It worked. Thank you.

I have just released version 1.4.6.

Thanks for reporting.

--
kmx