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

[perl #58180] [BUG perl 5.10.0] Permission denied when building as non-root user on FreeBSD 6.2+

From:
perlbug-followup
Date:
August 21, 2008 00:29
Subject:
[perl #58180] [BUG perl 5.10.0] Permission denied when building as non-root user on FreeBSD 6.2+
Message ID:
rt-3.6.HEAD-29759-1219266908-1270.58180-75-0@perl.org
# New Ticket Created by  italpro@qs1213.pair.com 
# Please include the string:  [perl #58180]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58180 >



This is a bug report for perl from italpro@qs1213.pair.com,
generated with the help of perlbug 1.36 running under perl 5.10.0.


-----------------------------------------------------------------
[Please enter your report here]

When building Perl 5.10.0 under FreeBSD 6.2 (and I think more recent
versions) as well as a non-root (unprivilged user).

This happens because recent FreeBSD releases make /usr/home unreadable
by regular users, and for some reasons perl installation fails if it
cannon opendir() that directory - and it probably shouldn't fail.
I asked the superuser to make that directory readable to me and perl
built and installed regularly.

==> HOW TO REPRODUCE

- Login as unprivileged user
- Unpack the perl 5.10 distribution
# sh Configure -de -Dprefix=/your/local/directory
# make

==> ERROR (reporting the last part of "make" output)

cd lib/unicore &&   ../../miniperl -I../../lib mktables -w
touch uni.data
`sh  cflags "optimize='-O'" perlmain.o`  perlmain.c
      CCCMD =  cc -DPERL_CORE -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include  -std=c89 -O
+-Wall -ansi   -W -Wextra -Wdeclaration-after-statement -Wendif-labels

    Making DynaLoader (static)
Makefile out-of-date with respect to ../../lib/Config.pm ../../config.h
Cleaning current config before rebuilding Makefile...
make -f Makefile.old clean > /dev/null 2>&1
../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=perl" "INSTALLMAN3DIR=none" "PERL_CORE=1" "LIBPERL_A=libperl.a"
opendir(./../../../../..): Permission denied at ../../lib/File/Spec/Unix.pm line 478
opendir(./../../../../..): Permission denied at ../../lib/File/Spec/Unix.pm line 478
Writing Makefile for DynaLoader
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
false
*** Error code 1

Stop in /usr/home/italpro/soft/perl-5.10.0/ext/DynaLoader.
make config failed, continuing anyway...
/miniperl: not found
*** Error code 127

Stop in /usr/home/italpro/soft/perl-5.10.0/ext/DynaLoader.
*** Error code 1


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=medium
---
Site configuration information for perl 5.10.0:

Configured by italpro at Wed Aug 20 16:57:09 EDT 2008.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=freebsd, osvers=6.2-release-p1, archname=i386-freebsd
    uname='freebsd qs1213.pair.com 6.2-release-p1 freebsd 6.2-release-p1 #1: mon may 7 14:30:09 edt 2007 mlehner@mayon.pair.com:usrobjusrsrcsys6pairc-smp i386 '
    config_args='-de -Dprefix=/usr/home/italpro/localperl -Dinstallscript=/usr/home/italpro/localperl/scripts'
    hint=previous, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='3.4.6 [FreeBSD] 20060305', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl 5.10.0:
    /usr/home/italpro/localperl/lib/5.10.0/i386-freebsd
    /usr/home/italpro/localperl/lib/5.10.0
    /usr/home/italpro/localperl/lib/site_perl/5.10.0/i386-freebsd
    /usr/home/italpro/localperl/lib/site_perl/5.10.0
    .

---
Environment for perl 5.10.0:
    HOME=/usr/home/italpro
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=en_US.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/italpro/bin:/home/italpro/localperl/bin:/home/italpro/localperl/scripts:/home/italpro/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/home/italpro/bin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash




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