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 build Perl under Irix with '-Duseshrplib' #8519

Closed
p5pRT opened this issue Jul 12, 2006 · 6 comments
Closed

Unable to build Perl under Irix with '-Duseshrplib' #8519

p5pRT opened this issue Jul 12, 2006 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Jul 12, 2006

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

Searchable as RT39797$

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2006

From P.Schaffnit@access.rwth-aachen.de

Hi!

This somehow *has to* be linked to our local setup here, but I can't
figure out how, and even less how to go around it...

I've been trying to build perl 5.8.8 under Irix, but it fails when I try
to use '-Duseshrplib'.

Here's what I'm doing, and what I get from it​:

bash Configure -Dprefix=/USER/philippe/Irix/Perl
-Dhtml1dir=/USER/philippe/Irix/Perl/html
-Dhtml3dir=/USER/philippe/Irix/Perl/html
-Dcf_email=Philippe.Schaffnit@​ACCESS.RWTH-Aachen.de -Dcc='gcc -mabi=64'
-Duseshrplib -d -e
[...]
make test
[...]
  Making B (dynamic)
opendir(./../../../../../../../..)​: Permission denied at
../../lib/File/Find.pm line 604
Use of chdir('') or chdir(undef) as chdir() is deprecated at
../../lib/File/Find.pm line 751.
Couldn't change to directory /usr/people/philippe/C​: No such file or
directory at Makefile.PL line 18
Writing Makefile for B
Warning​: No Makefile!
UX​:make​: ERROR​: don't know how to make config (bu42).
make config failed, continuing anyway...
UX​:make​: ERROR​: don't know how to make all (bu42).
*** Error code 1 (bu21)

Any hints would be greatly appreciated!

Thanks!

Philippe

@p5pRT
Copy link
Author

p5pRT commented Jul 13, 2006

From @doughera88

On Wed, 12 Jul 2006, Philippe Schaffnit wrote​:

# New Ticket Created by Philippe Schaffnit
# Please include the string​: [perl #39797]
# in the subject line of all future correspondence about this issue.
# <URL​: http​://rt.perl.org/rt3/Ticket/Display.html?id=39797 >

Hi!

This somehow *has to* be linked to our local setup here, but I can't
figure out how, and even less how to go around it...

I've been trying to build perl 5.8.8 under Irix, but it fails when I try
to use '-Duseshrplib'.

Here's what I'm doing, and what I get from it​:

bash Configure -Dprefix=/USER/philippe/Irix/Perl
-Dhtml1dir=/USER/philippe/Irix/Perl/html
-Dhtml3dir=/USER/philippe/Irix/Perl/html
-Dcf_email=Philippe.Schaffnit@​ACCESS.RWTH-Aachen.de -Dcc='gcc -mabi=64'
-Duseshrplib -d -e
[...]
make test
[...]
Making B (dynamic)
opendir(./../../../../../../../..)​: Permission denied at
../../lib/File/Find.pm line 604
Use of chdir('') or chdir(undef) as chdir() is deprecated at
../../lib/File/Find.pm line 751.

This is usually a sign that something's quite wrong with miniperl.
Since you mention -Duseshrplib, my initial suspicion is that you're
picking up a shared libperl.so from another build somehow. See the
section 'Building a shared Perl library' in the INSTALL file, especially
the last few paragraphs, where it talks about the problems of multiple
"flavors".

If that's not the problem, can you test if the same problem is still there
without -Duseshrplib? If that doesn't fix it, can you run

  make minitest

that will give more information on the state of miniperl. I vaguely
recall similar-looking errors owing to apparent mis-optimizations in the
regex code in the past.

Good luck, and let us know what happens.

--
  Andy Dougherty doughera@​lafayette.edu

@p5pRT
Copy link
Author

p5pRT commented Jul 13, 2006

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

@p5pRT
Copy link
Author

p5pRT commented Oct 30, 2006

From P.Schaffnit@access.rwth-aachen.de

Hi!

Erm.. sorry for not replying sooner, but somehow I only got your
comments today (via a web search for something completely unrelated!).
Contrary to what you could guess, I'm still interested, and willing to
try things!

Well... this happens only with '-Duseshrplib' otherwise everything works
quite fine!

Setting manually LD_LIBRARY_PATH doesn't help...

Here's what 'make minitest' reports (well, the summuary...)​:
Failed 1 test script out of 205, 99.51% okay.
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
### ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory​:
### setenv LD_LIBRARY_PATH `pwd`​:$LD_LIBRARY_PATH; cd t; ./perl
harness
### LD_LIBRARY_PATH=`pwd`​:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd
t; ./perl harness
### export LD_LIBRARY_PATH=`pwd`​:$LD_LIBRARY_PATH; cd t; ./perl
harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=3.55 s=1.05 cu=124.10 cs=19.93 scripts=205 tests=59581
*** Error code 1 (bu21) (ignored)

Note that I have already set LD_LIBRARY_PATH before running that...

Any idea?

Thanks!

Philippe

@p5pRT
Copy link
Author

p5pRT commented Oct 28, 2015

From @jhi

Several years and several Perl releases later...

I just tested -Duseshrplib in IRIX 6.5, with the latest "bleadperl", and the -Duseshrplib seems to work. (One does need to set the env var LD_LIBRARYN32_PATH appropriately for the libperl.so to be found, of course.)

So marking this as resolved.

@p5pRT
Copy link
Author

p5pRT commented Oct 28, 2015

@jhi - 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