Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make test or make install perl #7318

Closed
p5pRT opened this issue May 28, 2004 · 8 comments
Closed

Unable to make test or make install perl #7318

p5pRT opened this issue May 28, 2004 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented May 28, 2004

Migrated from rt.perl.org#29935 (status was 'rejected')

Searchable as RT29935$

@p5pRT
Copy link
Author

p5pRT commented May 28, 2004

From v.haisman@sh.cvut.cz

Created by wilx@logout.sh.cvut.cz

I am unable to install or test either perl 5.8.3 or .4.
Both die with similar error as shown bellow. Always unexpected "(".

make[1]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4/ext/threads/shared'
PERL=./perl make _test_prep
make[1]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
cd t && (rm -f ./perl; /home/4/wilx/bin/ln -s .././perl ./perl)
make[1]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4'
PERL=./perl make _test
make[1]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
if (true </dev/tty) >/dev/null 2>&1; then \
  make TEST_ARGS= TESTFILE=TEST _test_tty ; \
else \
  make TEST_ARGS= TESTFILE=TEST _test_notty ; \
fi
make[2]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
cd t && ./perl TEST </dev/tty
./perl​: 1​: Syntax error​: "(" unexpected
make[2]​: *** [_test_tty] Error 2
make[2]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4'
make[1]​: *** [_test] Error 2
make[1]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4'
make​: *** [test] Error 2

The info bellow is from my working perl, not the one I've tryed to install.
But the configuration should be the same. Threads, 64bit ints etc.

Perl Info

Flags:
    category=install
    severity=high

Site configuration information for perl v5.8.2:

Configured by wilx at Fri Nov 21 23:14:00 CET 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=freebsd, osvers=4.9-prerelease, archname=i386-freebsd-thread-multi-64int
    uname='freebsd logout 4.9-prerelease freebsd 4.9-prerelease #1: sat i386 unknown '
    config_args=''
    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=define use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include',
    optimize='-O2 -march=i686',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.4 20031119 (experimental)', gccosandvers='freebsd4.9'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-pthread -Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc_r
    perllibs=-lm -lcrypt -lutil -lc_r
    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 -shared', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    


@INC for perl v5.8.2:
    /home/4/wilx/lib/perl5/5.8.2/i386-freebsd-thread-multi-64int
    /home/4/wilx/lib/perl5/5.8.2
    /home/4/wilx/lib/perl5/i386-freebsd-thread-multi-64int
    /home/4/wilx/lib/perl5
    /home/4/wilx/lib/perl5/5.8.2/i386-freebsd-thread-multi-64int
    /home/4/wilx/lib/perl5/5.8.2
    /home/4/wilx/lib/perl5/site_perl/5.8.2/i386-freebsd-thread-multi-64int
    /home/4/wilx/lib/perl5/site_perl/5.8.2
    /home/4/wilx/lib/perl5/site_perl
    .


Environment for perl v5.8.2:
    HOME=/home/4/wilx
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/home/4/wilx/lib:/home/4/wilx/lib/gcc-lib/i386-unknown-freebsd4.9/3.4:/home/4/wilx/lib/gcc/i386-unknown-freebsd4.9/3.4:/home/4/wilx/lib:/home/4/wilx/lib/gcc/i386-unknown-freebsd4.10/3.5.0::/usr/local/lib:/usr/X11R6/lib:/usr/local/lib:/usr/X11R6/lib
    LOGDIR (unset)
    PATH=/home/4/wilx/bin:/home/4/wilx/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/4/wilx/bin:/sbin:/usr/sbin:/sbin:/usr/sbin
    PERL5LIB=/home/4/wilx/lib/perl5
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/zsh

@p5pRT
Copy link
Author

p5pRT commented May 28, 2004

From service-clientele@fnac.com

Chère Cliente, Cher Client,

Merci de nous avoir contactés.

Vous venez d'envoyer un message à une adresse ne permettant pas
de recevoir d'e-mail.

Pour trouver les réponses à vos questions sur vos commandes, sur
les produits, sur le site, consultez nos pages d'aide en ligne
en cliquant sur :
http​://www.fnac.com/Help/A01.asp

Vous pouvez également suivre en direct l'évolution de vos commandes
en cours, en consultant la rubrique "Vos Commandes en un clin d'oeil"
en cliquant sur :
https://www.fnac.com/Account/Profil/default.asp

Nous espérons que ces pages vous apporteront toutes les informations
nécessaires. Dans le cas contraire, vous pouvez nous contacter par
e-mail en cliquant sur le lien :
http​://www.fnac.com/Service_Client/FnacSUGG.asp

Merci de votre fidélité a www.fnac.com

Très cordialement,

L'équipe Fnac.com

@p5pRT
Copy link
Author

p5pRT commented May 28, 2004

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented May 28, 2004

From @iabyn

On Fri, May 28, 2004 at 05​:16​:05PM -0000, V. Haisman @​ sh. cvut. cz wrote​:

cd t && ./perl TEST </dev/tty
./perl​: 1​: Syntax error​: "(" unexpected

This implies that the symbolic link in the 't' subdirectory called 'perl',
which is supposed to point to the perl binary in the parent directory,
in in fact not a binary but a shell script. Which is odd. However,
earlier in your output we see​:

cd t && (rm -f ./perl; /home/4/wilx/bin/ln -s .././perl ./perl)

which implies that when 'make test' was trying to create this symbolic
link, it used the 'ln' executable under your home directory rather than
the system 'ln' command, and presumably the former behaves differently to
the latter.

So I'd recommend either removing /home/4/wilx/bin from your path, or
removing ln from /home/4/wilx/bin. Then you're probably best off removing
the whole src tree and unpacking and rebuilding from scratch.

Regards,

Dave.

--
The perl5 internals are a complete mess. It's like Jenga - to get the
perl5 tower taller and do something new you select a block somewhere in
the middle, with trepidation pull it out slowly, and then carefully
balance it somewhere new, hoping the whole edifice won't collapse as a
result.
  - Nicholas Clark, based on an original by Simon Cozens.

@p5pRT
Copy link
Author

p5pRT commented Jun 14, 2004

From v.haisman@sh.cvut.cz

The non-native (GNU) ln shouldn't be a problem, I have this setup for a long
time and I've successfuly built perl before with it. Also neither t/perl nor
perl is a script​:

Vaclav Haisman

[...]
make[1]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4/ext/threads/shared'
PERL=./perl make _test_prep
make[1]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
cd t && (rm -f ./perl; /home/4/wilx/bin/ln -s .././perl ./perl)
make[1]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4'
PERL=./perl make _test
make[1]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
if (true </dev/tty) >/dev/null 2>&1; then \
  make TEST_ARGS= TESTFILE=TEST _test_tty ; \
else \
  make TEST_ARGS= TESTFILE=TEST _test_notty ; \
fi
make[2]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
cd t && ./perl TEST </dev/tty
./perl​: 1​: Syntax error​: "(" unexpected
make[2]​: *** [_test_tty] Error 2
make[2]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4'
make[1]​: *** [_test] Error 2
make[1]​: Leaving directory `/home/4/wilx/tmp/perl-5.8.4'
make​: *** [test] Error 2
logout ~/tmp/perl-5.8.4>cd t
logout ~/tmp/perl-5.8.4/t>ls -l
total 68
-r--r--r-- 1 wilx users 1472 Apr 14 2003 README
-r-xr-xr-x 1 wilx users 14424 Mar 6 16​:54 TEST
-r--r--r-- 1 wilx users 686 Aug 14 2003 TestInit.pm
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 base
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 cmd
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 comp
-r--r--r-- 1 wilx users 2920 May 31 2002 harness
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 io
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 japh
drwxr-xr-x 13 wilx users 512 Apr 21 21​:58 lib
drwxr-xr-x 2 wilx users 2560 Apr 21 21​:58 op
lrwxr-xr-x 1 wilx users 9 Jun 14 01​:27 perl -> .././perl
-r--r--r-- 1 wilx users 483 Aug 23 2003 perl.supp
drwxr-xr-x 3 wilx users 1024 Apr 21 21​:58 pod
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 run
-r-xr-xr-x 1 wilx users 15966 Dec 24 00​:25 test.pl
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 uni
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 win32
drwxr-xr-x 2 wilx users 512 Apr 21 21​:58 x2p
logout ~/tmp/perl-5.8.4/t>file perl
perl​: symbolic link to .././perl
logout ~/tmp/perl-5.8.4/t>file .././perl
.././perl​: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD),
not stripped

----- Original Message -----
From​: "Dave Mitchell via RT" <perlbug-followup@​perl.org>
To​: <V.Haisman@​sh.cvut.cz>
Sent​: Saturday, May 29, 2004 12​:53 AM
Subject​: Re​: [perl #29935] Unable to make test or make install perl

On Fri, May 28, 2004 at 05​:16​:05PM -0000, V. Haisman @​ sh. cvut. cz wrote​:

cd t && ./perl TEST </dev/tty
./perl​: 1​: Syntax error​: "(" unexpected

This implies that the symbolic link in the 't' subdirectory called 'perl',
which is supposed to point to the perl binary in the parent directory,
in in fact not a binary but a shell script. Which is odd. However,
earlier in your output we see​:

cd t && (rm -f ./perl; /home/4/wilx/bin/ln -s .././perl ./perl)

which implies that when 'make test' was trying to create this symbolic
link, it used the 'ln' executable under your home directory rather than
the system 'ln' command, and presumably the former behaves differently to
the latter.

So I'd recommend either removing /home/4/wilx/bin from your path, or
removing ln from /home/4/wilx/bin. Then you're probably best off removing
the whole src tree and unpacking and rebuilding from scratch.

Regards,

Dave.

@p5pRT
Copy link
Author

p5pRT commented Jun 14, 2004

From @doughera88

On Mon, 14 Jun 2004, Vaclav Haisman wrote​:

make[2]​: Entering directory `/home/4/wilx/tmp/perl-5.8.4'
cd t && ./perl TEST </dev/tty
./perl​: 1​: Syntax error​: "(" unexpected

logout ~/tmp/perl-5.8.4/t>file perl
perl​: symbolic link to .././perl
logout ~/tmp/perl-5.8.4/t>file .././perl
.././perl​: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD),
not stripped

Can you run perl at all? That is, from the main build directory, can
you run simple commands like

  ./perl v
  ./perl -Ilib -V

What about the TEST file? The first few lines should look like this​:

  #!./perl

  # This is written in a peculiar style, since we're trying to avoid
  # most of the constructs we'll be testing for.

  $| = 1;

The error message
  > ./perl​: 1​: Syntax error​: "(" unexpected
sure looks like a /bin/sh error message to me. If I try to execute
t/TEST with /bin/sh on Solaris, here are the error messages I get​:

  TEST​: $​: not found
  TEST​: =​: not found
  TEST​: /home/doughera/.kshrc{PERL_CORE}​: not found
  TEST​: syntax error at line 13​: `(' unexpected

It's not exactly the same as what you see, but the closest thing
I can think of.

Further, your error message is preceded by a './perl​:' token.
Perl generally doesn't include it's name in the error message,
so I don't think that message is really coming from perl.

--
  Andy Dougherty doughera@​lafayette.edu

@p5pRT
Copy link
Author

p5pRT commented Sep 8, 2004

@iabyn - Status changed from 'open' to 'stalled'

@p5pRT
Copy link
Author

p5pRT commented May 31, 2008

p5p@spam.wizbit.be - Status changed from 'stalled' to 'rejected'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant