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+

August 21, 2008 00:29
[perl #58180] [BUG perl 5.10.0] Permission denied when building as non-root user on FreeBSD 6.2+
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #58180]
# 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.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.


- 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
`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.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/ line 478
opendir(./../../../../..): Permission denied at ../../lib/File/Spec/ line 478
Writing Makefile for DynaLoader
==> Your Makefile has been rebuilt. <==
==> Please rerun the make command.  <==
*** 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]
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:
    osname=freebsd, osvers=6.2-release-p1, archname=i386-freebsd
    uname='freebsd 6.2-release-p1 freebsd 6.2-release-p1 #1: mon may 7 14:30:09 edt 2007 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
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
    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
  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:

Environment for perl 5.10.0:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About