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

Perl -V #999

Closed
p5pRT opened this issue Dec 28, 1999 · 2 comments
Closed

Perl -V #999

p5pRT opened this issue Dec 28, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 28, 1999

Migrated from rt.perl.org#1949 (status was 'resolved')

Searchable as RT1949$

@p5pRT
Copy link
Author

p5pRT commented Dec 28, 1999

From TTran@tacintel.com

My platform​: Sun Ultra 250, Solaris 5.6 Generic_105181-17 sun4u sparc SUNW,
Ultra-250

I followed instruction, using all default options at prompt.

rm -r config.sh
sh Configure
make
make install

Error​:

[root@​grumpy/perl-5.005.02]> make install
make​: Warning​: Both `makefile' and `Makefile' exist
`sh cflags libperl.a miniperlmain.o` miniperlmain.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a perl.o` perl.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a gv.o` gv.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a toke.o` toke.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a perly.o` perly.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a op.o` op.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a regcomp.o` regcomp.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a dump.o` dump.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a util.o` util.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a mg.o` mg.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a byterun.o` byterun.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a hv.o` hv.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a av.o` av.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a run.o` run.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a pp_hot.o` pp_hot.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a sv.o` sv.c
  CCCMD = cc -DPERL_CORE -c -O
"sv.c", line 2100​: warning​: non-constant initializer​: op "++"
`sh cflags libperl.a pp.o` pp.c
  CCCMD = cc -DPERL_CORE -c -O
"pp.c", line 775​: warning​: non-constant initializer​: op "++"
"pp.c", line 2536​: warning​: non-constant initializer​: op "++"
"pp.c", line 2552​: warning​: non-constant initializer​: op "++"
"pp.c", line 2758​: warning​: non-constant initializer​: op "++"
"pp.c", line 2813​: warning​: non-constant initializer​: op "++"
"pp.c", line 3759​: warning​: non-constant initializer​: op "++"
`sh cflags libperl.a scope.o` scope.c
  CCCMD = cc -DPERL_CORE -c -O
"scope.c", line 111​: warning​: non-constant initializer​: op "--"
`sh cflags libperl.a pp_ctl.o` pp_ctl.c
  CCCMD = cc -DPERL_CORE -c -O
"pp_ctl.c", line 272​: warning​: non-constant initializer​: op "++"
`sh cflags libperl.a pp_sys.o` pp_sys.c
  CCCMD = cc -DPERL_CORE -c -O
"pp_sys.c", line 3219​: warning​: non-constant initializer​: op "++"
"pp_sys.c", line 3252​: warning​: non-constant initializer​: op "++"
`sh cflags libperl.a doop.o` doop.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a doio.o` doio.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a regexec.o` regexec.c
  CCCMD = cc -DPERL_CORE -c -O
"regexec.c", line 144​: warning​: non-constant initializer​: op "--"
`sh cflags libperl.a taint.o` taint.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a deb.o` deb.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a universal.o` universal.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a globals.o` globals.c
  CCCMD = cc -DPERL_CORE -c -O
`sh cflags libperl.a perlio.o` perlio.c
  CCCMD = cc -DPERL_CORE -c -O
rm -f libperl.a
ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o dump.o
util.o mg.o byterun.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o
pp_sys.o doop.o doio.o regexec.o taint.o deb.o universal.o globals.o
perlio.o
cc -L/usr/local/lib -o miniperl miniperlmain.o libperl.a -lsocket -lnsl
-ldl -lm -lc -lcrypt
Undefined first referenced
symbol in file
PL_thrsv libperl.a(malloc.o)
PL_malloc_mutex libperl.a(malloc.o)
PL_thr_key libperl.a(malloc.o)
PL_threadnum libperl.a(malloc.o)
ld​: fatal​: Symbol referencing errors. No output written to miniperl
*** Error code 1
make​: Fatal error​: Command failed for target `miniperl'

#!/bin/sh

# This script is designed to provide a handy summary of the configuration
# information being used to build perl. This is especially useful if you
# are requesting help from comp.lang.perl.misc on usenet or via mail.

if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
  echo "Can't find the perl config.sh file produced by Configure";
exit 1
fi
. $TOP/config.sh

# Note that the text lines /^Summary of/ .. /^\s*$/ are copied into
Config.pm.

$spitshell <<!GROK!THIS!
Summary of my $package ($baserev patchlevel $PATCHLEVEL subversion
$SUBVERSION) configuration​:
  Platform​:
  osname=$osname, osvers=$osvers, archname=$archname
  uname='$myuname'
  hint=$hint, useposix=$useposix, d_sigaction=$d_sigaction
:q
[root@​grumpy/perl-5.005.02]>

Can you provide any help ?

John Tran
This email may not reflect MRJ or WIM project's view
Web Master & Unix System Administrator, WIM Project Office
(v) (407) 737-8059 (f)(407) 737-8130 (e)> ttran@​tacintel.com

@p5pRT
Copy link
Author

p5pRT commented Jan 4, 2000

From [Unknown Contact. See original ticket]

TTran@​tacintel.com writes​:

Enclosed is myconfig file and the error message.

My platform​: Sun Ultra 250, Solaris 5.6 Generic_105181-17 sun4u sparc SUNW,
Ultra-250

I followed instruction, using all default options at prompt.

rm -r config.sh
sh Configure
make
make install

Apparently, you read README. Do not. It is buggy.

The correct incantation is

  sh Configure -des

(I sent a patch, but it was rejected.)

cc -L/usr/local/lib -o miniperl miniperlmain.o libperl.a -lsocket -lnsl
-ldl -lm -lc -lcrypt
Undefined first referenced
symbol in file
PL_thrsv libperl.a(malloc.o)
PL_malloc_mutex libperl.a(malloc.o)
PL_thr_key libperl.a(malloc.o)
PL_threadnum libperl.a(malloc.o)
ld​: fatal​: Symbol referencing errors. No output written to miniperl
*** Error code 1
make​: Fatal error​: Command failed for target `miniperl'

I think you managed to provide some contradictory Configure answers
(though I do not know how exactly)​: malloc.c thinks it is a threaded
build, while the rest is not threaded.

Please report.

Ilya

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