develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [david@davidfavor.com: Building ExtUtils-ParseXS-2.05 badly broken]

Thread Previous | Thread Next
From:
Ken Williams
Date:
October 30, 2003 05:52
Subject:
Re: [david@davidfavor.com: Building ExtUtils-ParseXS-2.05 badly broken]
Message ID:
4265D0E6-0AE0-11D8-9A36-003065F6D85A@mathforum.org
Hi David,

Jarkko forwarded your message to p5p, and Schwern forwarded it to me.

The problem is that the $(PERL_INC) and $(BASEEXT) variables appear in  
$Config{ld}, but doing so ensures that they will only ever work inside  
a Makefile generated by ExtUtils::MakeMaker.  The test script for  
ExtUtils::ParseXS uses $Config{ld} in a system() call, which of course  
won't work.

Maybe you can just edit your Config.pm and replace those variables with  
their proper values?

In any case, ExtUtils::ParseXS seems to build fine on your system but  
can't be adequately tested by the test scripts.

  -Ken

On Thursday, October 30, 2003, at 01:35  AM, Michael G Schwern wrote:

> ----- Forwarded message from Jarkko Hietaniemi <jhi@iki.fi> -----
>
> From: Jarkko Hietaniemi <jhi@iki.fi>
> Date: Thu, 30 Oct 2003 08:52:48 +0200
> To: perl5-porters@perl.org
> Subject: [david@davidfavor.com: Building ExtUtils-ParseXS-2.05 badly  
> broken]
> Delivered-To: schwern@localhost.schwern.org
> Delivered-To: schwern@pobox.com
> Mailing-List: contact perl5-porters-help@perl.org; run by ezmlm
> Precedence: bulk
> list-help: <mailto:perl5-porters-help@perl.org>
> list-unsubscribe: <mailto:perl5-porters-unsubscribe@perl.org>
> list-post: <mailto:perl5-porters@perl.org>
> X-List-Archive: <http://nntp.perl.org/group/perl.perl5.porters/84349>
> Delivered-To: mailing list perl5-porters@perl.org
> Delivered-To: perl5-porters@perl.org
> Reply-To: perl5-porters@perl.org
> User-Agent: Mutt/1.4i
> X-RAVMilter-Version: 8.4.3(snapshot 20030212) (smtp-1.hut.fi)
> X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/
> X-PMX-Version: 4.0.3.74897
> X-MIME-Autoconverted: from quoted-printable to 8bit by ttul.org id  
> h9U6rLkS023874
>
> ----- Forwarded message from David Favor <david@davidfavor.com> -----
>
> Subject: Building ExtUtils-ParseXS-2.05 badly broken
> From: David Favor <david@davidfavor.com>
> Date: Wed, 29 Oct 2003 05:47:20 -0600
> Message-ID: <3F9FA8C8.5010602@davidfavor.com>
> To: jhi@iki.fi
> User-Agent: Mozilla/5.0 (X11; U; AIX 000D86BD4C00; en-US; rv:1.5)  
> Gecko/20030929
>
> Something appears to be badly broken building this module. The variable
> $lddflags contains $(PERL_INC) and ($BASEEXT). These get setup in this
> modules Makefile, however never get passed on the actual link line.
>
> Suggestions?
>
> Thanks.
>
>
> --  
> www.RadicalHealth.com - subscribe@radicalhealth.com
> Simple ways to look, feel and live your best ever!
>
> Script command is started on Wed Oct 29 05:32:05 CST 2003.
>
> which perl
> /usr/local/perl-5.8.1-RC5/bin/perl
>
> perl -V
> Summary of my perl5 (revision 5.0 version 8 subversion 1)  
> configuration:
>   Platform:
>     osname=aix, osvers=5.1.0.0, archname=aix-thread-multi
>     uname='aix aasc24 1 5 000d86bd4c00 '
>     config_args='-Dprefix=/usr/local/perl-5.8.1-RC5 -des -Dusedevel  
> -Doptimize=-O2 -Duseshrplib -Dusenm -Dusethreads'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=define use5005threads=undef useithreads=define  
> usemultiplicity=define
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE  
> -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN  
> -DNEED_PTHREAD_INIT -I/usr/local/include -q32 -D_LARGE_FILES  
> -qlonglong',
>     optimize='-O2',
>     cppflags=''
>     ccversion='6.0.0.4', gccversion='', gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',  
> lseeksize=8
>     alignbytes=8, prototype=define
>   Linker and Libraries:
>     ld='ld', ldflags =' -brtl -L/usr/local/lib -b32'
>     libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
>     libs=-lbind -lnsl -lgdbm -ldbm -ldb -ldl -lld -lm -lcrypt  
> -lpthreads -lc_r -lbsd
>     perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc_r -lbsd
>     libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a
>     gnulibc_version=''
>   Dynamic Linking:
>     dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='   
> -bE:/usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi/CORE/> perl.exp'
>     cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE  
> -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r  
> -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES  
> PERL_IMPLICIT_CONTEXT
>   Locally applied patches:
>   	RC5
>   Built under aix
>   Compiled at Sep 24 2003 06:38:14
>   %ENV:
>     PERL5LIB="/data/dfavor/filter/perl"
>   @INC:
>     /data/dfavor/filter/perl
>     /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi
>     /usr/local/perl-5.8.1-RC5/lib/5.8.1
>     /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi
>     /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1
>     /usr/local/perl-5.8.1-RC5/lib/site_perl
>     .
> # pperl Makefile.PL
> Writing Makefile for ExtUtils::ParseXS
> # eegrep 'PERL_INC|BASEEXT' Makefile
> LDDLFLAGS = -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp  
> -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc_r -L/usr/local/lib
> PERL_INC = /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi/CORE
> # BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg  
> Oracle)
> # PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar)
> # DLBASE  = Basename part of dynamic library. May be just equal  
> BASEEXT.
> BASEEXT = ParseXS
> DLBASE = $(BASEEXT)
> CONFIGDEP = $(PERL_ARCHLIB)$(DIRFILESEP)Config.pm  
> $(PERL_INC)$(DIRFILESEP)config.h
> 	-$(RM_RF) t/XSTest.c t/XSTest.o t/XSTest.so ./blib $(MAKE_APERL_FILE)  
> $(INST_ARCHAUTODIR)/extralibs.all $(INST_ARCHAUTODIR)/extralibs.ld  
> perlmain.c tmon.out mon.out so_locations pm_to_blib *$(OBJ_EXT)  
> *$(LIB_EXT) perl.exe perl perl$(EXE_EXT) $(BOOTSTRAP) $(BASEEXT).bso  
> $(BASEEXT).def lib$(BASEEXT).def $(BASEEXT).exp $(BASEEXT).x core  
> core.*perl.*.? *perl.core core.[0-9] core.[0-9][0-9]  
> core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9]  
> core.[0-9][0-9][0-9][0-9][0-9]
>
> gmake
> Manifying blib/man3/ExtUtils::ParseXS.3
>
> gmake test
> PERL_DL_NONLAZY=1 /usr/local/perl-5.8.1-RC5/bin/perl  
> "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',  
> 'blib/arch')" t/*.t
> t/basic....
> t/basic....ok 1/9                                                       
>                        t/basic....ok 2/9                                
>                                               t/basic....ok 3/9         
>                                                                       
> t/basic....ok 4/9                                                       
>                        t/basic....ok 5/9sh: PERL_INC:  not found.
> sh: BASEEXT:  not found.
> ld: 0706-003 Cannot find or read import file: /perl.exp
> 	ld:accessx(): A file or directory in the path name does not exist.
> ld: 0706-004 Cannot find or read export file: .exp
> 	ld:accessx(): A file or directory in the path name does not exist.
> # Failed test 6 in t/basic.t at line 43
> #  t/basic.t line 43 is:   ok do_link( $module );
>                                                                         
>       t/basic....NOK 6# Test 7 got: 'Can't locate loadable object for  
> module XSTest in @INC (@INC contains:  
> /data/dfavor/.cpan/build/ExtUtils-ParseXS-2.05/blib/lib  
> /data/dfavor/.cpan/build/ExtUtils-ParseXS-2.05/blib/arch  
> /data/dfavor/filter/perl  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl .  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl .) at t/basic.t line 45
> Compilation failed in require at t/basic.t line 45, <File0000> line  
> 134.
> ' (t/basic.t at line 46)
> #   Expected: ''
> #  t/basic.t line 46 is:   ok $@, '';
> Use of inherited AUTOLOAD for non-method XSTest::is_even() is  
> deprecated at t/basic.t line 47, <File0000> line 134.
>                                                                         
>       t/basic....NOK 7Can't locate auto/XSTest/is_even.al in @INC  
> (@INC contains:  
> /data/dfavor/.cpan/build/ExtUtils-ParseXS-2.05/blib/lib  
> /data/dfavor/.cpan/build/ExtUtils-ParseXS-2.05/blib/arch  
> /data/dfavor/filter/perl  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl .  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1/aix-thread-multi  
> /usr/local/perl-5.8.1-RC5/lib/site_perl/5.8.1  
> /usr/local/perl-5.8.1-RC5/lib/site_perl .) at t/basic.t line 47
>                                                                         
>       t/basic....dubious
> 	Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 6-9
> 	Failed 4/9 tests, 55.56% okay
> Failed Test Stat Wstat Total Fail  Failed  List of Failed
> ----------------------------------------------------------------------- 
> --------
> t/basic.t      2   512     9    6  66.67%  6-9
> Failed 1/1 test scripts, 0.00% okay. 4/9 subtests failed, 55.56% okay.
> gmake: *** [test_dynamic] Error 2
>
> Script command is complete on Wed Oct 29 05:33:44 CST 2003.
>
>
> ----- End forwarded message -----
>
> -- 
> Jarkko Hietaniemi <jhi@iki.fi> http://www.iki.fi/jhi/ "There is this  
> special
> biologist word we use for 'stable'.  It is 'dead'." -- Jack Cohen
>
>
> ----- End forwarded message -----
>
> -- 
> Michael G Schwern        schwern@pobox.com   
> http://www.pobox.com/~schwern/
> Do not try comedy at home!  Milk & Cheese are advanced experts!   
> Attempts at
> comedy can be dangerously unfunny!


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About