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

failing to build 5.6.0 #1796

Closed
p5pRT opened this issue Apr 7, 2000 · 3 comments
Closed

failing to build 5.6.0 #1796

p5pRT opened this issue Apr 7, 2000 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 7, 2000

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

Searchable as RT3055$

@p5pRT
Copy link
Author

p5pRT commented Apr 7, 2000

From lkarrer@stinky.trash.net

Created by lkarrer@trash.net

This is a bug report for perl from lkarrer@​trash.net,
generated with the help of perlbug 1.26 running under perl 5.00503.

-----------------------------------------------------------------
Hi,

I am having problems building perl 5.6.0 with my current environment.

sh Configure -Dprefix=/sw/pkgs/perl-5.6.0 -Dcc=gcc -des

on a vanilla downloaded distribution yields an error​:

.............
What extensions do you wish to load statically? [none]
Stripping down executable paths...
Creating config.sh...
Configure​: syntax error at line 590​: `do' unexpected

Any help is appreciated... I will be more than willing to send more info

Thanks very much

Lukas Karrer

Perl Info


Site configuration information for perl 5.00503:

Configured by root at Mon Oct 11 11:45:10 MET DST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos new-stinky 5.7 generic_106541-04 sun4u sparc sunw,ultra-5_10 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=2.95.1 19990816 (release)
    cppflags='-I/usr/local/include'
    ccflags ='-I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.00503:
    /a1/perl-5.005_03/lib/5.00503/sun4-solaris
    /a1/perl-5.005_03/lib/5.00503
    /a1/perl-5.005_03/lib/site_perl/5.005/sun4-solaris
    /a1/perl-5.005_03/lib/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=/home/lkarrer
    LANG (unset)
    LANGUAGE (unset)
    LC_COLLATE=en_US
    LC_CTYPE=en_US
    LC_MESSAGES=C
    LC_MONETARY=en_US
    LC_NUMERIC=en_US
    LC_TIME=en_US
    LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/lib:/usr/ucblib:/a1/lib
    LOGDIR (unset)
    PATH=/sw/bin:/a1/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb:.:/a1/sbin:/home/root/bin
    PERL_BADLANG (unset)
    SHELL=/a1/bin/tcsh


@p5pRT
Copy link
Author

p5pRT commented Apr 7, 2000

From [Unknown Contact. See original ticket]

At 10​:26 +0200 2000-04-07, Lukas Karrer wrote​:

Creating config.sh...
Configure​: syntax error at line 590​: `do' unexpected

Weird. Apart from anything else, there's no `do' on or near that
line of Configure or config_h.sh. I don't know what's up, but here
are a few random thoughts (from a non-Sun user)​:

1. Maybe Configure picked up an old config.sh and/or Policy.sh which
confused it. Try rerunning Configure after deleting any files with
these names from the source directory.

2. Maybe something's corrupted or truncated. Here are the MD5
checksums of some suspects on my system​:

$ md5sum Configure *.SH
2129e17b572a5652021155a457f2c376 b Configure
659e958aba04136850c7fd8cccceb373 b Makefile.SH
488b5b40239b8d1e918a56b0a0e4b93f b Policy_sh.SH
68389c0a83934b408116730c75df756c b cflags.SH
a693de7093e98933c51460f94bcc0b3b b config_h.SH
a7ac59ee32d0936b5b506d18f073dfa7 b makeaperl.SH
94b9af9121fde66e3298f9c2b21ba4cf b makedepend.SH
808876092fcc169f0970ef9ff550383d b makedir.SH
c5e076b2fe93555c9b0ffcae1ca8a5a3 b myconfig.SH
378a80b1cbed1905a9d4d38f46a311bc b writemain.SH

3. Maybe your shell is the problem. You could try saying bash Configure ...
(or (ksh, or zsh -- whatever you have to hand) to see if that makes
the problem go away. That said, it would be odd if the shell were at
fault​: we've had a report of a successful build on a configuration
which differs only very slightly from yours (assuming you're still
using the box on which you built the 5.005_03 perl you used to submit
the problem report)​:

Yours​:
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
  Platform​:

  osname=solaris, osvers=2.7, archname=sun4-solaris
  uname='sunos new-stinky 5.7 generic_106541-04 sun4u sparc sunw,ultra-5_10 '

Theirs​:
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration​:
  Platform​:

  osname=solaris, osvers=2.7, archname=sun4-solaris
  uname='sunos husar 5.7 generic_106541-05 sun4u sparc
sunw,ultra-enterprise '

(See
http​://www.xray.mpe.mpg.de/cgi-bin/w3glimpse2html/perl5-porters/2000-04/msg00186.html?41#mfs
for the full report.)

4. To see waht happened just before sh choked, you can try saying
sh -c Configure ... >configure.out2 2>&1
or sh -x Configure ... . (Both are useful. Depends on the bug.)
Redirect STDOUT and STDERR To a file as shown, then look at the
voluminous debris later.

So, please try poking around some more, and tell us what you find.

@p5pRT
Copy link
Author

p5pRT commented Apr 7, 2000

From [Unknown Contact. See original ticket]

On Fri, 7 Apr 2000, Dominic Dunlop wrote​:

Hi Dominic,

thanks for your quick help!!!

At 10​:26 +0200 2000-04-07, Lukas Karrer wrote​:

Creating config.sh...
Configure​: syntax error at line 590​: `do' unexpected

Weird. Apart from anything else, there's no `do' on or near that
line of Configure or config_h.sh. I don't know what's up, but here
are a few random thoughts (from a non-Sun user)​:

Yep...

1. Maybe Configure picked up an old config.sh and/or Policy.sh which

no.. I removed them with rm -f config.sh Policy.sh as stated in INSTALL

2. Maybe something's corrupted or truncated. Here are the MD5
checksums of some suspects on my system​:

been there, done that..

4. To see waht happened just before sh choked, you can try saying
sh -c Configure ... >configure.out2 2>&1

sh -x ..... results in

[SNIP]
+ echo
+ sed -e s/'/'"'"'/g -e s/^/sitescript='/ -e s/$/'/
+ : Finish up by extracting the .SH files
+ : if this fails, just run all the .SH files by hand
+ . ./config.sh
Configure​: syntax error at line 590​: `do' unexpected

in config.sh, line 590, you can see​: (output starts at 585)

multiarch='undef'
mv=''
myarchname='Rebuild a list's archive.

Use this command to rebuild the archives for a mailing list. You may want
to do this if you edit some messages in an archive, or remove some
messages from an archive.

Usage​: /a1/bin/arch <listname> <mbox> [-h]

Where <mbox> is the path to a list's complete mbox archive. Usually this
will be some path in the archives/private directory. For example​:

% bin/arch mylist archives/private/mylist.mbox/mylist.mbox

listname and/or mbox file is missing-solaris'
mydomain='.trash.net'
myhostname='stinky'

Here is the Problem.... I have installed Mailman, the gnu mailinglist
software from www.list.org.

Unfortunately, they provide a program called arch. /a1/bin/arch is first
in my path, followed by /usr ... so, no wonder sh chokes....

I guess, it is not such a good idea, to have /usr/bin/ last in my path. (I
want my people to use gtar as /a1/bin/tar instead of /usr/bin/tar )

Well, thanks alot for pointing me in the right direction!!! All is well
for me now!

THANKS FOR YOUR GOOD WORK WITH PERL

have a nice day

Lukas

+---------------------------------------------------------------------+
  Lukas Karrer Email​: lkarrer@​trash.net
  Sysadmin WWW​: http​://www.trash.net/
+---------------------------------------------------------------------+
Check out the stinkiest site on the web! Get a sniff from www.trash.net
  t r a s h . n e t - free UNIX Shellaccounts for Switzerland

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