Re: Parrot: Patch + Problem
[email protected] (Shlomi Fish) Sat, 23 Jul 2005 14:08:31 +0300
| Newsgroups | perl.ponie.dev |
|---|---|
| Message-ID | <[email protected]> |
On Friday 22 July 2005 19:33, you wrote:
> On Fri, Jul 22, 2005 at 03:43:41PM +0300, Shlomi Fish wrote:
> > Hi!
> >
> > I'm including here a patch that allows to append extra arguments to the
> > Perl 5 "Configure" script. I fixed it because my Perl was compiled with
> > suidperl, which caused PONIE to compile suidperl too, and then I couldn't
> > install it as a regular user.
>
> Thanks, applied
>
Thanks.
> > Otherwise, I'm encountering a problem in the Parrot "make install" phase.
> > The dump is:
> >
> > ./perl installperl --destdir=
> > /home/shlomi/apps/perl/ponie/bin/ponie5.9.2
> > mkdir /usr/lib/site_perl: Permission denied at installperl line 47
> > make[2]: *** [install.perl] Error 255
> > make[2]: Leaving directory
> > `/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/perl'
> > make[1]: *** [install] Error 2
> > make[1]: Leaving directory
> > `/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/perl'
> > make: *** [install] Error 2
> >
> >
> > What can I do to correct it? I configured PONIE like that:
> >
> > <<<
> > perl Configure.pl --prefix=$HOME/apps/perl/ponie/ --addarg="-Ud_dosuid"
> >
> >
> > I'm using the PONIE from the Subversion trunk.
>
> Offhand I don't know. It looks like the code in Configure.pl isn't removing
> all the prefix related options from the %Config of the perl running
> Configure.pl. So the existing perl's install tree is partly being used by
> ponie, rather than the prefix you specified on the Configure.pl command
> line.
>
After I investigated a little bit, I found out the following lines in
perl/lib/Config_heavy.pl:
<<<<<<<<<<<<
installsitearch='/usr/lib/site_perl/5.9.2/i386-linux-thread'
installsitebin='/usr/bin'
installsitehtml1dir=''
installsitehtml3dir=''
installsitelib='/usr/lib/site_perl/5.9.2'
installsiteman1dir='/usr/man/man1'
installsiteman3dir='/usr/man/man3'
installsitescript='/usr/bin'
installstyle='lib'
installusrbinperl='undef'
installvendorarch='/usr/lib/vendor_perl/5.9.2/i386-linux-thread'
installvendorbin='/usr/bin'
installvendorhtml1dir=''
installvendorhtml3dir=''
installvendorlib='/usr/lib/vendor_perl/5.9.2'
installvendorman1dir='/usr/man/man1'
installvendorman3dir='/usr/man/man3'
installvendorscript='/usr/bin'
>>>>>>>>>>>>
So all the installsite and installvendor are wrong.
> If you change into the perl subdirectory and run
>
> ./perl -Ilib -V
>
> what's the output?
>
<<<<<<<<<<<<<<<<<<<<<
Summary of my perl5 (revision 5 version 9 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.13-rc3, archname=i386-linux-thread
uname='linux localhost.localdomain 2.6.13-rc3 #1 smp thu jul 14 14:59:56
idt 2005 i686 intel(r) pentium(r) 4 cpu 2.40ghz unknown gnulinux '
config_args='-Dinc_version_list=5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1
5.6.0 -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2 -fomit-frame-pointer
-pipe -march=i586 -mtune=pentiumpro -Dprefix=/usr -Dvendorprefix=/usr
-Dsiteprefix=/usr-Dman3ext=3pm -Dcf_by=Mandrakesoft -Dmyhostname=localhost
-Dperladmin=root@localhost -Dcf_email=root@localhost -Dd_dosuid -Ud_csh
-Accflags=-DPERL_DISABLE_PMC -Ud_dosuid -Dnoextensions=ByteLoader -d -E
-Dusedevel -Dusethreads -Uuseithreads-Uuse5005threads -Doptimize='-g'
-Dprefix=/home/shlomi/apps/perl/ponie/ -Dversiononly=n -Dlink=c++'
hint=recommended, useposix=true, d_sigaction=define
usethreads=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='gcc', ccflags ='
-I/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/parrot/include
-I/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/src/pmc -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DPERL_DISABLE_PMC
-DDEBUGGING-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-g',
cppflags='
-I/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/parrot/include
-I/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/src/pmc -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DPERL_DISABLE_PMC -DDEBUGGING
-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)',
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='gcc', ldflags ='
-L/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/parrot/blib/lib
-L/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/src/pmc
-L/usr/local/lib'
libpth=/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/parrot/blib/lib /home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/src/pmc /usr/local/lib/lib /usr/lib
libs=-lparrot -lponie -lgmp -lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil
-lpthread -lc
perllibs=-lparrot -lponie -lgmp -lnsl -ldl -lm -lcrypt -lutil -lpthread
-lc
libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='
-L/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/parrot/blib/lib
-L/home/shlomi/Download/unpack/perl/ponie/From-SVN/trunk/src/pmc -shared
-L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING USE_LARGE_FILES
Built under linux
Compiled at Jul 22 2005 13:55:43
@INC:
lib
/home/shlomi/apps/perl/ponie/lib/5.9.2/i386-linux-thread
/home/shlomi/apps/perl/ponie/lib/5.9.2
/usr/lib/site_perl/5.9.2/i386-linux-thread
/usr/lib/site_perl/5.9.2
/usr/lib/site_perl
/usr/lib/vendor_perl/5.9.2/i386-linux-thread
/usr/lib/vendor_perl/5.9.2
/usr/lib/vendor_perl
.
>>>>>>>>>>>>>>>>>>>>>
> Also, if you don't mind, could you Cc [email protected] on the reply, as
> it's useful for things to be publicly archived and searchable.
Done.
> Although I'm
> not sure how many repeat problems there have been so far.
>
> Nicholas Clark
Regards,
Shlomi Fish
---------------------------------------------------------------------
Shlomi Fish [email protected]
Homepage: http://www.shlomifish.org/
Tcl is LISP on drugs. Using strings instead of S-expressions for closures
is Evil with one of those gigantic E's you can find at the beginning of
paragraphs.