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

Problem building perl 5.8.0 on Solaris 9 #6359

Closed
p5pRT opened this issue Mar 7, 2003 · 11 comments
Closed

Problem building perl 5.8.0 on Solaris 9 #6359

p5pRT opened this issue Mar 7, 2003 · 11 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 7, 2003

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

Searchable as RT21488$

@p5pRT
Copy link
Author

p5pRT commented Sep 6, 2002

From jehalter@uncc.edu

During make, I get the following error​:

Can't find ../../lib/ExtUtils/typemap in /afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader
gmake[1]​: *** [DynaLoader.o] Error 29
gmake[1]​: Leaving directory `/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake​: *** [lib/auto/DynaLoader/DynaLoader.a] Error 2

Which I think is strange, given that I can find it​:

% file /afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader/../../lib/ExtUtils/typemap
/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader/../../lib/ExtUtils/typemap​: ascii text

% ./myconfig
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration​:
  Platform​:
  osname=solaris, osvers=2.8, archname=sun4-solaris
  uname='sunos ws322 5.8 generic_108528-11 sun4u sparc sunw,sun-blade-1000 '
  config_args='-Dprefix=/afs/uncc.edu/coe/unix/opt/gnu/perl58 -Dcc=gcc -des'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef 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 ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O',
  cppflags='-fno-strict-aliasing'
  ccversion='', gccversion='3.1', gccosandvers='solaris2.8'
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
  alignbytes=8, prototype=define
  Linker and Libraries​:
  ld='gcc', ldflags =' -L/usr/local/lib '
  libpth=/usr/local/lib /usr/lib /usr/ccs/lib
  libs=-lsocket -lnsl -ldl -lm -lc
  perllibs=-lsocket -lnsl -ldl -lm -lc
  libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version=''
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

@p5pRT
Copy link
Author

p5pRT commented Mar 7, 2003

From jehalter@uncc.edu

Here is the error I get when trying to build perl 5.8.0 on Solaris 9​:

  Making DynaLoader (static)
Writing Makefile for DynaLoader
gmake[1]​: Entering directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake[1]​: Leaving directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake[1]​: Entering directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
/usr/bin/perl "-I../../lib" "-I../../lib" "-I../../lib" "-I../../lib"
DynaLoader_pm.PL DynaLoader.pm
Perl lib version (v5.8.0) doesn't match executable version (v5.6.1) at
../../lib/Config.pm line 21.
Compilation failed in require at DynaLoader_pm.PL line 1.
BEGIN failed--compilation aborted at DynaLoader_pm.PL line 1.
gmake[1]​: *** [DynaLoader.pm] Error 255
gmake[1]​: Leaving directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake​: *** [lib/auto/DynaLoader/DynaLoader.a] Error 2

perl 5.6.1 came packaged with Solaris 9, and lives in /usr/bin. If I remove
perl 5.6.1 from the path, I then get the following error​:

  Making DynaLoader (static)
Unable to find a perl 5 (by these names​: ../../miniperl miniperl perl perl5
perl5.8.0, in these dirs​: ../.. /usr/bin /usr/sbin /usr/ccs/bin
/usr/afsws/bin /usr/dt/bin /usr/openwin/bin /usr/local/bin /usr/local/sbin
/usr/local/krb5/bin /apps/coe/bin /apps/coe-old/bin /apps/cas/bin
/apps/coit/bin /afs/uncc/coe/userdb/tools/bin /usr/afsws/etc
/afs/uncc.edu/coe/unix/opt/gnu/perl58/bin)
sh​: 0​: not found
Running '0 "-I../../lib" ../../lib/ExtUtils/xsubpp -v 2>&1' exits with
status 1 at ../../lib/ExtUtils/MM_Unix.pm line 3826.
Running '0 ../../lib/ExtUtils/xsubpp temp000 2>&1' exits with status
16777215 at ../../lib/ExtUtils/MM_Unix.pm line 3852.
Writing Makefile for DynaLoader
gmake[1]​: Entering directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
/bin/sh​: 0​: not found
gmake[1]​: *** [../../lib/.exists] Error 1
gmake[1]​: Leaving directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake config failed, continuing anyway...
gmake[1]​: Entering directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
/bin/sh​: 0​: not found
gmake[1]​: *** [../../lib/.exists] Error 1
gmake[1]​: Leaving directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake​: *** [lib/auto/DynaLoader/DynaLoader.a] Error 2

Here is the output to myconfig​:

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration​:
  Platform​:
  osname=solaris, osvers=2.9, archname=sun4-solaris
  uname='sunos ws50 5.9 generic_112233-03 sun4u sparc sunw,sun-blade-100 '
  config_args='-ds -e -Dprefix=/afs/uncc.edu/coe/unix/opt/gnu/perl58
-Dcc=gcc -Dcc=gcc'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef 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 ='-fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
  optimize='-O',
  cppflags='-fno-strict-aliasing'
  ccversion='', gccversion='3.2.2', gccosandvers='solaris2.9'
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
  alignbytes=8, prototype=define
  Linker and Libraries​:
  ld='gcc', ldflags =' -L/usr/local/lib '
  libpth=/usr/local/lib /usr/lib /usr/ccs/lib
  libs=-lsocket -lnsl -ldl -lm -lc
  perllibs=-lsocket -lnsl -ldl -lm -lc
  libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version=''
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Any help would be much appreciated.

Thanks,
-jonathan

@p5pRT
Copy link
Author

p5pRT commented Aug 4, 2004

From @doughera88

This appears to be quite similar to ticket 21488.

@p5pRT
Copy link
Author

p5pRT commented Aug 4, 2004

@doughera88 - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Aug 4, 2004

From @doughera88

[jehalter@​uncc.edu - Thu Mar 06 16​:54​:03 2003]​:

Here is the error I get when trying to build perl 5.8.0 on Solaris 9​:

    Making DynaLoader \(static\)

Writing Makefile for DynaLoader
gmake[1]​: Entering directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake[1]​: Leaving directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
gmake[1]​: Entering directory
`/afs/uncc.edu/coe/unix/opt/gnu/perl58/src/perl-5.8.0/ext/DynaLoader'
/usr/bin/perl "-I../../lib" "-I../../lib" "-I../../lib" "-I../../lib"
DynaLoader_pm.PL DynaLoader.pm
Perl lib version (v5.8.0) doesn't match executable version (v5.6.1) at
../../lib/Config.pm line 21.

Ultimately, the problem is that the build process changes directories
to ext/DynaLoader, but can't find ../../miniperl.

I can't reproduce this problem, but I don't have /afs. I strongly
suspect some afs-related issue, but I can't say exactly what that
might be since I only have the vaguest awareness of afs. If it is
possible to build outside of afs, I'd try that.

One other thing​: I note that you are using GNU make. That's not
actually necessary -- the make supplied by Sun in /usr/ccs/bin/ works
just fine. Here's what README.solaris advised about GNU make​:
  If you wish to use GNU make, be sure that the set-group-id bit is
  not set. If it is, then arrange your PATH so that
  /usr/ccs/bin/make is before GNU make or else have the system
  administrator disable the set-group-id bit on GNU make.
I don't know what the actual problem is, nor whether it's relevant on
afs, but what happens if you try it with Solaris make?

  Andy Dougherty doughera@​lafayette.edu

@p5pRT
Copy link
Author

p5pRT commented Sep 7, 2005

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

@p5pRT
Copy link
Author

p5pRT commented Jun 24, 2012

From @doy

Unless we get more feedback on building outside of AFS, or using Solaris
make, or trying a newer version of perl, I think this ticket can be closed.

@p5pRT
Copy link
Author

p5pRT commented Jun 24, 2012

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

@p5pRT
Copy link
Author

p5pRT commented Aug 2, 2012

From @doughera88

Absent further feedback from the original poster (who has undoubtedly
moved on and found another way to work around this issue rather than
waiting for us for 8 years!) there's nothing further we can do here.
I'm closing this ticket. If the problem re-appears, a new ticket can be
opened.

@p5pRT
Copy link
Author

p5pRT commented Aug 2, 2012

From [Unknown Contact. See original ticket]

Absent further feedback from the original poster (who has undoubtedly
moved on and found another way to work around this issue rather than
waiting for us for 8 years!) there's nothing further we can do here.
I'm closing this ticket. If the problem re-appears, a new ticket can be
opened.

@p5pRT
Copy link
Author

p5pRT commented Aug 2, 2012

@doughera88 - Status changed from 'open' to 'resolved'

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