develooper Front page | perl.perl5.porters | Postings from May 2008

[perl #54952] Building 5.6.2 Fails with -Duseshrplib on Leopard

Thread Previous | Thread Next
David Wheeler
May 28, 2008 04:17
[perl #54952] Building 5.6.2 Fails with -Duseshrplib on Leopard
Message ID:
# New Ticket Created by  David Wheeler 
# Please include the string:  [perl #54952]
# in the subject line of all future correspondence about this issue. 
# <URL: >


This is a bug report for perl from,
generated with the help of perlbug 1.34 running under perl v5.6.2.

I tried to build 5.6.2 on Mac OS X 10.5.2 with this configuration:

  sh Configure -des -Duseshrplib -Dprefix=/usr/local/perl-5.6.2

It failed during `make` with these errors:

YLD_LIBRARY_PATH=/usr/local/src/perl-5.6.2 cc -L/usr/local/lib -o miniperl \
	    miniperlmain.o opmini.o libperl.dylib -ldl -lm -lc -lutil 
DYLD_LIBRARY_PATH=/usr/local/src/perl-5.6.2 ./miniperl -w -Ilib -MExporter -e '<?>' || make minitest
Can't locate File/ in @INC (@INC contains: lib /usr/local/perl-5.6.2/lib/5.6.2/darwin /usr/local/perl-5.6.2/lib/5.6.2 /usr/local/perl-5.6.2/lib/site_perl/5.6.2/darwin /usr/local/perl-5.6.2/lib/site_perl/5.6.2 /usr/local/perl-5.6.2/lib/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
rm -f lib/
cat ext/re/ > lib/
You may see some irrelevant test failures if you have been unable
to build lib/
cd t && (rm -f perl; /bin/ln -s ../miniperl perl) \
		&& DYLD_LIBRARY_PATH=/usr/local/src/perl-5.6.2 ./perl TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t pragma/*.t </dev/tty
t/base/term.............Can't locate in @INC (@INC contains: ../lib) at base/term.t line 10.
BEGIN failed--compilation aborted at base/term.t line 10.
FAILED at test 0
Failed a basic test--cannot continue.
make[1]: [minitest] Error 2 (ignored)
make: [extra.pods] Error 1 (ignored)
DYLD_LIBRARY_PATH=/usr/local/src/perl-5.6.2 ./miniperl configpm configpm.tmp
sh mv-if-diff configpm.tmp lib/
	AutoSplitting perl library
DYLD_LIBRARY_PATH=/usr/local/src/perl-5.6.2 ./miniperl -Ilib -e 'use AutoSplit; \
		autosplit_lib_modules(@ARGV)' lib/*.pm lib/*/*.pm
AutoSplitting lib/Getopt/ (lib/auto/Getopt/Long)
DYLD_LIBRARY_PATH=/usr/local/src/perl-5.6.2 ./miniperl > minimod.tmp
sh mv-if-diff minimod.tmp lib/ExtUtils/
`sh  cflags libperl.dylib perlmain.o`  perlmain.c
	  CCCMD =  cc -DPERL_CORE -c -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -O3 

	Making DynaLoader (static)
Writing Makefile for DynaLoader
Can't locate File/ in @INC (@INC contains: ../../lib ../../lib /usr/local/perl-5.6.2/lib/5.6.2/darwin /usr/local/perl-5.6.2/lib/5.6.2 /usr/local/perl-5.6.2/lib/site_perl/5.6.2/darwin /usr/local/perl-5.6.2/lib/site_perl/5.6.2 /usr/local/perl-5.6.2/lib/site_perl .) at ../../lib/ExtUtils/ line 57.
BEGIN failed--compilation aborted at ../../lib/ExtUtils/ line 57.
Compilation failed in require.
BEGIN failed--compilation aborted.
make[1]: *** [../../lib/.exists] Error 2
make config failed, continuing anyway...
Can't locate File/ in @INC (@INC contains: ../../lib ../../lib /usr/local/perl-5.6.2/lib/5.6.2/darwin /usr/local/perl-5.6.2/lib/5.6.2 /usr/local/perl-5.6.2/lib/site_perl/5.6.2/darwin /usr/local/perl-5.6.2/lib/site_perl/5.6.2 /usr/local/perl-5.6.2/lib/site_perl .) at ../../lib/ExtUtils/ line 57.
BEGIN failed--compilation aborted at ../../lib/ExtUtils/ line 57.
Compilation failed in require.
BEGIN failed--compilation aborted.
make[1]: *** [../../lib/.exists] Error 2
make: *** [lib/auto/DynaLoader/DynaLoader.a] Error 2

When I tried again without -Duseshrplib, the build succeeded (hence the
configuration information below is about a static Perl).

Site configuration information for perl v5.6.2:

Configured by david at Thu May  1 17:46:47 PDT 2008.

Summary of my perl5 (revision 5.0 version 6 subversion 2) configuration:
    osname=darwin, osvers=9.2.2, archname=darwin
    uname='darwin benedict.local 9.2.2 darwin kernel version 9.2.2: tue mar 4 21:17:34 pst 2008; root:xnu-1228.4.31~1release_i386 i386 '
    config_args='-des -Dprefix=/usr/local/perl-5.6.2'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    cc='cc', ccflags ='-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
    cppflags='-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lc -lutil
    perllibs=-ldl -lm -lc -lutil
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.6.2:

Environment for perl v5.6.2:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About