Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.98k stars 560 forks source link

problems configuring latest 5.7.0 rsync #3546

Closed p5pRT closed 20 years ago

p5pRT commented 23 years ago

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

Searchable as RT6000$

p5pRT commented 23 years ago

From lvirden@cas.org

Today I did an rsync and attempted to do a fresh configure... the bottom of this report is NOT from this configure\, due to the fact that I had an amazing amount of problems. I had problems with Configure using only a portion of the -L and -R flags that I typed in at the appropriate places\, etc.

Anyways\, eventually I got through configure and make depend and started the compiles. I eventually ended up with this link error​:   miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ld​: warning​: file /vol/SUNWspro/WS6/lib/libm.a(floor.o)​: wrong ELF class​: ELFCLASS32 ld​: warning​: file /vol/SUNWspro/WS6/lib/libsunmath.a(atan2l.o)​: wrong ELF class​: ELFCLASS32 Undefined first referenced symbol in file sqrtl libperl.a(pp.o) floorl libperl.a(pp.o) logl libperl.a(pp.o) sinl libperl.a(pp.o) expl libperl.a(pp.o) fmodl libperl.a(pp.o) floor libperl.a(pp.o) atan2l libperl.a(pp.o) powl libperl.a(pp.o) isnanl libperl.a(pp.o) cosl libperl.a(pp.o) ld​: fatal​: Symbol referencing errors. No output written to miniperl make​: *** [miniperl] Error 1

Note that this is a SPARC Solaris 8 with 64 bit support environment. I'm uncertain what's going wrong. I can email someone the config.sh file if that would be useful.

Perl Info ``` Flags: category=core severity=critical Site configuration information for perl v5.7.0: Configured by lwv26 at Wed Jan 17 10:39:22 EST 2001. Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris-64all uname='sunos lwv26awu 5.8 generic sun4u sparc sunw,ultra-5_10 ' config_args='' hint=previous, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef Compiler: cc='cc', ccflags ='-DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/vol/SUNWspro/include -I/usr/ccs/include -I/volws/lwv26/ldatae/include -I/projects/gnu/sparc-sun-solaris8/include -I/usr/dt/include -I/usr/openwin/include -I/projects/intranet/include -I/usr/tcl83/include -DPERL_POLLUTE', optimize='-g', cppflags='-DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/vol/SUNWspro/include -I/usr/ccs/include -I/volws/lwv26/ldatae/include -I/projects/gnu/sparc-sun-solaris8/include -I/usr/dt/include -I/usr/openwin/include -I/projects/intranet/include -I/usr/tcl83/include -DPERL_POLLUTE' ccversion='WorkShop Compilers 5.0 98/12/15 C 5.0', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='cc', ldflags ='-L/vol/SUNWspro/lib -L/usr/ccs/lib -L/volws/lwv26/ldatae/lib -L/projects/gnu/sparc-sun-solaris8/lib -L/usr/dt/lib -L/usr/openwin/lib -L/projects/intranet/lib -L/usr/tcl83/lib -R/vol/SUNWspro/lib:/usr/ccs/lib:/volws/lwv26/ldatae/lib:/projects/gnu/sparc-sun-solaris8/lib:/usr/dt/lib:/usr/openwin/lib:/projects/intranet/lib:/usr/tcl83/lib -L/usr/lib' libpth=/usr/lib /vol/SUNWspro/lib /usr/ccs/lib /volws/lwv26/ldatae/lib /projects/gnu/sparc-sun-solaris8/lib /usr/dt/lib /usr/openwin/lib /projects/intranet/lib /usr/tcl83/lib libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt -lsec perllibs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/vol/SUNWspro/lib -L/usr/ccs/lib -L/volws/lwv26/ldatae/lib -L/projects/gnu/sparc-sun-solaris8/lib -L/usr/dt/lib -L/usr/openwin/lib -L/projects/intranet/lib -L/usr/tcl83/lib -R/vol/SUNWspro/lib:/usr/ccs/lib:/volws/lwv26/ldatae/lib:/projects/gnu/sparc-sun-solaris8/lib:/usr/dt/lib:/usr/openwin/lib:/projects/intranet/lib:/usr/tcl83/lib -L/usr/lib' Locally applied patches: DEVEL9021 @INC for perl v5.7.0: /home/lwv26/lib/perl5/ /projects/sprs_lwv/lib/perl5/ /volws/lwv26/ldatae/lib/perl5/5.6.0/sun4-solaris /volws/lwv26/ldatae/lib/perl5/5.6.0 /volws/lwv26/ldatae/lib/perl5/site_perl/5.6.0/sun4-solaris /volws/lwv26/ldatae/lib/perl5/site_perl/5.6.0 /volws/lwv26/ldatae/lib/perl5/site_perl/5.6.0 . Environment for perl v5.7.0: HOME=/home/lwv26 LANG=C LANGUAGE (unset) LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:/usr/lib:/opt/sfw/lib:/cas/lib/sun4 LOGDIR (unset) PATH=/vol/SUNWspro/bin:/ldatae/bin:/projects/sprs_lwv/sol26/bin:/projects/sprs_lwv/sol26/bin/mime:/projects/sprs_lwv/sol2/bin:/projects/sprs_lwv/bin:/projects/sprs_lwv/bin/mime:/home/lwv26/bin/D.news:/usr/perl5/bin:/projects/gnu/sparc-sun-solaris2.8/bin:/usr/tcl84/bin:/usr/tcl83/bin:/projects/xopsrc/sun4/bin:/projects/xopsrc/bin:/usr/atria/bin:/projects/intranet/bin:/projects/clearcase/bin:/ldata2/teTeX/bin/sparc-sun-solaris2.6:/vol/adobe/Acrobat4.05/bin:/usr/perl5/lib/site_perl/5.005/sun4-solaris/auto/Image/Magick/bin:/ldata/bin:/home/lwv26/bin/D.aws:/home/lwv26/bin/sol2:/home/lwv26/bin/D.frontend:/home/lwv26/bin/D.ksh:/cas/test/bin/sun4:/projects/sprs_lwv/bin/sol2:/usr/java1.2/bin:/home/lwv26/bin/sun4:/usr/local/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/opt/sfw/bin:/cas/bin/sun4:/cas/abin/sun4:/cas/X11/sun4/bin:/usr/ccs/bin:/lprod/bin:/usr/sbin:/usr/ucb:/cas/tools/bin/sun4:/cas/X11/sun4/tools/bin:/home/lwv26/bin:/cas/tools/pdbin/sun4:/home/lwv26/bin/D.mistypes:/home/lwv26/b! in/D.toys:/home/lwv26/bin/D.tools:/projects/npd/npdweb/bin-sol2:/vol/tclsrcsol/TclPro/solaris-sparc/bin:/projects/gnu/sparc-sun-solaris2.6/bin PERL5LIB=/home/lwv26/lib/perl5/:/projects/sprs_lwv/lib/perl5/: PERLDOC=-t PERLLIB=/home/lwv26/lib/perl:/projects/sprs_lwv/lib/perl: PERL_BADLANG (unset) SHELL=/bin/ksh ```
p5pRT commented 23 years ago

From @JohnPeacock

Well\, the obvious first question is did you​:

  rm -f config.sh Policy.sh   sh Configure -desDusedevel

or what\, exactly\, did you tell Configure. Without that\, there is no way to reproduce what went wrong.

HTH

John Peacock

lvirden@​cas.org wrote​:

This is a bug report for perl from lvirden@​cas.org\, generated with the help of perlbug 1.33 running under perl v5.7.0.

----------------------------------------------------------------- [Please enter your report here] Today I did an rsync and attempted to do a fresh configure... the bottom of this report is NOT from this configure\, due to the fact that I had an amazing amount of problems. I had problems with Configure using only a portion of the -L and -R flags that I typed in at the appropriate places\, etc.

Anyways\, eventually I got through configure and make depend and started the compiles. I eventually ended up with this link error​: miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ld​: warning​: file /vol/SUNWspro/WS6/lib/libm.a(floor.o)​: wrong ELF class​: ELFCLASS32 ld​: warning​: file /vol/SUNWspro/WS6/lib/libsunmath.a(atan2l.o)​: wrong ELF class​: ELFCLASS32 Undefined first referenced symbol in file sqrtl libperl.a(pp.o) floorl libperl.a(pp.o) logl libperl.a(pp.o) sinl libperl.a(pp.o) expl libperl.a(pp.o) fmodl libperl.a(pp.o) floor libperl.a(pp.o) atan2l libperl.a(pp.o) powl libperl.a(pp.o) isnanl libperl.a(pp.o) cosl libperl.a(pp.o) ld​: fatal​: Symbol referencing errors. No output written to miniperl make​: *** [miniperl] Error 1

Note that this is a SPARC Solaris 8 with 64 bit support environment. I'm uncertain what's going wrong. I can email someone the config.sh file if that would be useful.

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

Yes\, I did a rm -f config.sh Policy.sh and then a $PWD/Configure with no flags. As for what I answered all of Configure's questions - I didn't know I needed to write down all the answers\, so I didn't...

p5pRT commented 23 years ago

From @doughera88

On Fri\, 9 Mar 2001\, Larry W. Virden wrote​:

Today I did an rsync and attempted to do a fresh configure... the bottom of this report is NOT from this configure\, due to the fact that I had an amazing amount of problems. I had problems with Configure using only a portion of the -L and -R flags that I typed in at the appropriate places\, etc.

Anyways\, eventually I got through configure and make depend and started the compiles. I eventually ended up with this link error​: miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ld​: warning​: file /vol/SUNWspro/WS6/lib/libm.a(floor.o)​: wrong ELF class​: ELFCLASS32 ld​: warning​: file /vol/SUNWspro/WS6/lib/libsunmath.a(atan2l.o)​: wrong ELF class​: ELFCLASS32 Undefined first referenced symbol in file sqrtl libperl.a(pp.o)

[ etc. -- more math/long double function problems ] ]

Note that this is a SPARC Solaris 8 with 64 bit support environment. I'm uncertain what's going wrong. I can email someone the config.sh file if that would be useful.

Larry then sent my his ./myconfig. Excerpts are

archname=sun4-solaris-multi-64all-ld

hint=previous\, 

That's always a potential problem if you've changed something "significant." Something is defined as "significant" if changing it causes a problem :-).

use64bitint=define use64bitall=define uselongdouble=define

Compiler​: cc='cc'\, ccflags ='-DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v9'\, optimize='-g'\, ccversion='Sun WorkShop 6 2000/06/19 C 5.1 Patch 109491-02'\,

Linker and Libraries​: ld='cc'\, ldflags =' -xarch=v9 -L/projects/gnu/sparc-sun-solaris8/lib -L/volws/lwv26/ldatae/lib -L/projects/intranet/lib -L/usr/tcl84/lib -L/usr/tcl83/lib -L/vol/SUNWspro/WS6/lib -L/opt/SUNWspro/lib -L/usr/dt/lib -L/usr/openwin/lib

libs=\-lsocket \-lnsl \-ldl \-lm \-lc \-lsunmath
libc=/usr/lib/sparcv9/libc\.so\, so=so\, useshrplib=false\, 

I don't have a comparable system avaiable to compare\, but I think that the problem is that you specified the wrong SUNWspro libraries. That is\, you specified /vol/SUNWspro/WS6/lib but I think you really want the compiler to look in /vol/SUNWspro/WS6/lib/v9/ . (Or\, it might be the /opt/SUNWspro/lib/v9 directory -- I don't know enough about your local directory structure or about WS6 to say for sure).

I thought that the compiler would automatically look in the right SUNWspro directory and that there would ordinarily be no need to specify it at all. If you used -xarch=v9\, as you have\, then the compiler would automatically tack on the .../v9/ where needed.

Now if you have unusual local requirements to specify that the compiler search in particular directories in a particular order for libraries\, then perhaps you do need to specify them explicitly. You'll just have to make sure to get the v9 versions too.

Hope this helps

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

I didn't specify the compiler directories myself - configure did. The reason that the field said 'previous' is because I had to run configure several times until things got as far as they did. The first time through\, it kept truncating my list of libraries in weird places. So I went through configure one time taking ALL the defaults\, then edited the config.sh to put in my list of -L and -R flags\, then ran configure again\, taking the new defaults.
The second time through\, Configure didn't find the nsl and socket library. So I ran it yet again\, taking the defaults again\, and this time it found the nsl and socket library.

p5pRT commented 23 years ago

From @doughera88

On Fri\, 9 Mar 2001\, Larry W. Virden wrote​:

I didn't specify the compiler directories myself - configure did.

Well\, you gave it much of the raw data​:

libpth=/projects/gnu/sparc\-sun\-solaris8/lib 

/vol/SUNWspro/WS6/lib /volws/lwv26/ldatae/lib /usr/dt/lib /usr/openwin/lib /projects/intranet/lib /usr/tcl84/lib /usr/tcl83/lib /usr/lib

(I know Configure doesn't go looking for /usr/tcl84/lib on its own!)

It's the -lm and -lsunmath in /vol/SUNWspro/WS86/lib directories that gave you the problem. I don't know what's supposed to be in those directories so I don't know why you have specified them. Perhaps you should check if you need /vol/SUNWspro/WS86/lib/v9 instead or in addition?

The reason that the field said 'previous' is because I had to run configure several times until things got as far as they did. The first time through\, it kept truncating my list of libraries in weird places.

Ouch. It certainly shouldn't do that\, and I've never observed that behavior myself. If you could produce a recipe to reproduce that behavior\, I might be able to look into it.

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

From​: Andy Dougherty \doughera@​lafayette\.edu

  On Fri\, 9 Mar 2001\, Larry W. Virden wrote​:  
  > I didn't specify the compiler directories myself - configure did.  
  Well\, you gave it much of the raw data​:  
  > libpth=/projects/gnu/sparc-sun-solaris8/lib   /vol/SUNWspro/WS6/lib /volws/lwv26/ldatae/lib /usr/dt/lib   /usr/openwin/lib /projects/intranet/lib /usr/tcl84/lib   /usr/tcl83/lib /usr/lib  

First time through\, Configure gave me /vol/SUNWspro/WS6/lib and /usr/local/lib and /usr/lib. I added the others because that's where we install a variety of additional libraries which perl goes looking for when various modules are built (everything from libjpeg to libdb to other stuff).

  It's the -lm and -lsunmath in /vol/SUNWspro/WS86/lib directories that gave   you the problem. I don't know what's supposed to be in those directories   so I don't know why you have specified them. Perhaps you should check if   you need /vol/SUNWspro/WS86/lib/v9 instead or in addition?  
 
I didn't even know the WS86 existed myself; I don't know how/why Configure chose them. I can try to start all over again and spend another day at this\, but it will have to wait until next week\, cause my telecom access is to be unavailable over the weekend (so much fun physically moving servers\, etc. during off hours...)

If you could produce a recipe to reproduce that behavior\, I might be able to look into it.

I just typed $PWD/Configure and started answering questions. I will try to remember to turn on a transcript next time and capture all the fun...

p5pRT commented 23 years ago

From @doughera88

On Fri\, 9 Mar 2001\, Larry W. Virden wrote​:

On Fri\, 9 Mar 2001\, Larry W\. Virden wrote​:

> I didn't specify the compiler directories myself \- 

configure did.

First time through\, Configure gave me /vol/SUNWspro/WS6/lib and /usr/local/lib and /usr/lib.

Hmm. Oh\, wait -- hints/solaris_2.sh tries to guess where SUNWspro is\, and it found /vol/SUNWspro/WS6. Later on\, it ass_u_me_s that SUNWspro is installed in /opt/SUNWspro. That's clearly a bug\, though yours is the first system I've seen where SUNWspro was *not* installed under /opt.

Untangling the multiple callbacks in hints/solaris_2.sh is very hard and not likely to happen any time soon. (I've been meaning to work on it\, but first I have to actually get a relatively recent compiler suite that actually supports 64-bit stuff.)

In the meantime\, the solution is to figure out which libraries you do want and which ones you don't. It looks like you may have competing compiler installations​: /opt/SUNWspro and /vol/SUNWSpro/WS6. Decide which one you want to use and then change all the corresponding entries in config.sh to point to the correct one. You may have to manually add in either /vol/SUNWspro/WS6/lib/v9 or /opt/SUNWspro/lib/v9 prior to the regular SUNWspro libraries\, depending on which installation you wish to use.

p5pRT commented 23 years ago

From @jhi

On Fri\, Mar 09\, 2001 at 02​:31​:22PM -0500\, Andy Dougherty wrote​:

On Fri\, 9 Mar 2001\, Larry W. Virden wrote​:

On Fri\, 9 Mar 2001\, Larry W\. Virden wrote​:

> I didn't specify the compiler directories myself \- 

configure did.

First time through\, Configure gave me /vol/SUNWspro/WS6/lib and /usr/local/lib and /usr/lib.

Hmm. Oh\, wait -- hints/solaris_2.sh tries to guess where SUNWspro is\, and it found /vol/SUNWspro/WS6. Later on\, it ass_u_me_s that SUNWspro is installed in /opt/SUNWspro. That's clearly a bug\, though yours is the first system I've seen where SUNWspro was *not* installed under /opt.

Untangling the multiple callbacks in hints/solaris_2.sh is very hard and not likely to happen any time soon. (I've been meaning to work on it\, but

I am entirely to blame for the tangle\, I'm afraid. The problem is that there's really no clear single path to do the necessary moves. At certain points you need to backtrack on your decisions\, and extra fun is supplied by the fact that the use may affect the result either via Configure command line options or interactively. The result is certainly a horrible mess.

p5pRT commented 23 years ago

From @doughera88

On Fri\, 9 Mar 2001\, Jarkko Hietaniemi wrote​:

Untangling the multiple callbacks in hints/solaris_2.sh is very hard and not likely to happen any time soon. (I've been meaning to work on it\, but

I am entirely to blame for the tangle\, I'm afraid. The problem is that there's really no clear single path to do the necessary moves.

There's no blame to assign here. The problem is hard. Very hard. The current solution has the amazing virtue of almost always working. I've occasionally had glimpses of how I might possibly make it a bit cleaner\, but I've never been able to actually do anything about it. Someday\, I hope.

p5pRT commented 23 years ago

From @jhi

On Fri\, Mar 09\, 2001 at 02​:45​:44PM -0500\, Andy Dougherty wrote​:

On Fri\, 9 Mar 2001\, Jarkko Hietaniemi wrote​:

Untangling the multiple callbacks in hints/solaris_2.sh is very hard and not likely to happen any time soon. (I've been meaning to work on it\, but

I am entirely to blame for the tangle\, I'm afraid. The problem is that there's really no clear single path to do the necessary moves.

There's no blame to assign here. The problem is hard. Very hard. The current solution has the amazing virtue of almost always working. I've occasionally had glimpses of how I might possibly make it a bit cleaner\,

I remember staring at the dependencies and thinking of some sort of a todo list ("foo bar zot")\, and some steps zapping goals off the list\, some adding goals\, some reintroducing goals already thought solved.

but I've never been able to actually do anything about it. Someday\, I hope.

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

From​: Andy Dougherty \doughera@​lafayette\.edu

  You may have to manually add in either   /vol/SUNWspro/WS6/lib/v9 or /opt/SUNWspro/lib/v9 prior to the regular   SUNWspro libraries\, depending on which installation you wish to use.  
 
Okay\, I hand edited the config.sh to straighten this out (the deal is that /opt was a symlink to /vol - but they were the same versions).

I then reran Configure. Things _looked_ okay. I then did a make. I now get​:

rm -f libperl.a /usr/ccs/bin/ar rcu libperl.a perl.o gv.o toke.o perly.o op.o regcomp.o dump.o util.o mg.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 utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o p erlapi.o rm -f opmini.c cp -f op.c opmini.c `sh cflags libperl.a opmini.o` -DPERL_EXTERNAL_GLOB opmini.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -D_LARGEFILE_SOURCE -D_FILE_OFF SET_BITS=64 -xarch=v9 -g rm -f opmini.c cc -xarch=v9 -L/projects/gnu/sparc-sun-solaris8/lib -L/volws/lwv26/ldatae/lib -L /projects/intranet/lib -L/usr/tcl84/lib -L/usr/tcl83/lib -L/opt/SUNWspro/lib -L/ usr/dt/lib -L/usr/openwin/lib -R/projects/gnu/sparc-sun-solaris8/lib​:/volws/lwv2 6/ldatae/lib​:/projects/intranet/lib​:/usr/tcl84/lib​:/usr/tcl83/lib :/opt/SUNWspro/ lib​:/usr/dt/lib​:/usr/openwin/lib -L/usr/lib -o miniperl \   miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ./miniperl -w -Ilib -MExporter -e '\<?>' || make minitest Bus Error - core dumped make[1]​: Entering directory `/ldatae/gnu/perl-5.7.0' rm -f lib/re.pm cat ext/re/re.pm > lib/re.pm You may see some irrelevant test failures if you have been unable to build lib/Config.pm. cd t && (rm -f perl; /bin/ln -s ../miniperl perl) \   && ./perl TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t pragma/* .t \</dev/tty Bus Error - core dumped make[1]​: [minitest] Error 138 (ignored) make[1]​: Leaving directory `/ldatae/gnu/perl-5.7.0' make​: [extra.pods] Error 1 (ignored) ./miniperl configpm configpm.tmp make​: *** [lib/Config.pm] Bus Error (core dumped)

Is there something else that needs to be done? Do you want a new bug report?

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

On Friday\, 2001-03-09 at 14​:31​:22 -0500\, Andy Dougherty wrote​:

Hmm. Oh\, wait -- hints/solaris_2.sh tries to guess where SUNWspro is\, and it found /vol/SUNWspro/WS6. Later on\, it ass_u_me_s that SUNWspro is installed in /opt/SUNWspro. That's clearly a bug\, though yours is the first system I've seen where SUNWspro was *not* installed under /opt.

Since I've been the last one to hack at hints/solaris_2.sh\, that's probably at least partially my fault. I'll see if I can find time Sunday or Monday to review hints/solaris_2.sh.

Untangling the multiple callbacks in hints/solaris_2.sh is very hard and not likely to happen any time soon. (I've been meaning to work on it\, but first I have to actually get a relatively recent compiler suite that actually supports 64-bit stuff.)

The bad thing is that I don't have that\, either. My SPARC machines are still at 2.6\, and my Solaris 8 machine is x86... And I had a hard time with the CBUs\, too. Especially with calls from hints/solaris_2.sh to a CBU or from one CBU to another.

In the meantime\, the solution is to figure out which libraries you do want and which ones you don't. It looks like you may have competing compiler installations​: /opt/SUNWspro and /vol/SUNWSpro/WS6. Decide which one you want to use and then change all the corresponding entries in config.sh to point to the correct one. You may have to manually add in either /vol/SUNWspro/WS6/lib/v9 or /opt/SUNWspro/lib/v9 prior to the regular SUNWspro libraries\, depending on which installation you wish to use.

This is what I use in Policy.sh (I always copy this in before a Configure run)​:

ldflags='-L/opt/local/i386/lib -R/opt/local/i386/lib' libpth='/opt/local/i386/lib /usr/ccs/lib /usr/lib' cc='gcc' ccflags='-I/opt/local/include/bind'

Some other things are changed from a stock Policy.sh as well\, but those don't matter.

Larry\, have you tried nailing down things with a Policy.sh or with -D... on the command line?

Lupe Christoph

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

Lightning flashed\, thunder crashed and "Larry W. Virden" \lvirden@&#8203;cas\.org whis pered​: | I just typed | $PWD/Configure | and started answering questions. I will try to remember to | turn on a transcript next time and capture all the fun...

You might also provide your environment (from env or printenv). There could be something strange in there (such as LD_LIBRARY_PATH) that might be causing problems.

-spp

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

I just was able to get back online. I hand edited the configure to select one of the two paths to my compiler\, reran configure and now \, after a bit of compiles\, get this​:

cc -xarch=v9 -L/projects/gnu/sparc-sun-solaris8/lib -L/volws/lwv26/ldatae/lib -L/projects/intranet/lib -L/usr/tcl84/lib -L/usr/tcl83/lib -L/opt/SUNWspro/lib -L/usr/dt/lib -L/usr/openwin/lib -R/projects/gnu/sparc-sun-solaris8/lib​:/volws/lwv26/ldatae/lib​:/projects/intranet/lib​:/usr/tcl84/lib​:/usr/tcl83/lib​:/opt/SUNWspro/lib​:/usr/dt/lib​:/usr/openwin/lib -L/usr/lib -o miniperl miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ./miniperl -w -Ilib -MExporter -e '\<?>' || make minitest Bus Error - core dumped make[1]​: Entering directory `/ldatae/gnu/perl-5.7.0' You may see some irrelevant test failures if you have been unable to build lib/Config.pm. cd t && (rm -f perl; /bin/ln -s ../miniperl perl) && ./perl TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t pragma/*.t \</dev/tty Bus Error - core dumped

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

On Sunday\, 2001-03-11 at 14​:44​:14 -0500\, Larry W. Virden wrote​:

I just was able to get back online. I hand edited the configure to select one of the two paths to my compiler\, reran configure and now \, after a bit of compiles\, get this​:

cc -xarch=v9 -L/projects/gnu/sparc-sun-solaris8/lib -L/volws/lwv26/ldatae/lib -L/projects/intranet/lib -L/usr/tcl84/lib -L/usr/tcl83/lib -L/opt/SUNWspro/lib -L/usr/dt/lib -L/usr/openwin/lib -R/projects/gnu/sparc-sun-solaris8/lib​:/volws/lwv26/ldatae/lib​:/projects/intranet/lib​:/usr/tcl84/lib​:/usr/tcl83/lib​:/opt/SUNWspro/lib​:/usr/dt/lib​:/usr/openwin/lib -L/usr/lib -o miniperl miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath

You still have a large number of probably unneccesary directories here. Why *two* versions of *Tcl*?!?

Can you please prune off all but /opt/SUNWspro/lib? You shouldn't need them.

HTH\, Lupe Christoph

PS​: No tuits for the Solaris 2 hints file today - I had a fight with   my notebook.

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

Hi\, Larry!

Please try the attached variant of hints/solaris_2.sh. I have tried to locate libsunmath by calling cc and finding out the library path(es)\, like the hints file does elsewhere. I would like to know if it *does* find your correct compiler library.

It works here\, but my cc is installed in the default location.

HTH\, Lupe Christoph

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

Hi Larry!

Sorry for not getting back to you in time - I am very busy trying to get things stable before I leave for a vacation. (I need it even more now ;-)

I can't tell what went wrong\, and I don't have the resources to try to reproduce this.

Therefor\, I'm cc'ing perl5porters in the hope that somebody there can help you. The latest try with the solaris hints is attached for this somebody.

I will be back the week before Easter\, and I hope to read what went wrong when I get back.

Anybody needing to ask me questions\, mail me directly. I'm forwarding all directly addressed mail to a webmail service\, but not the mailing lists. Just don't expect a fast answer ;-)

Ah'll be baack (The Arnie). Lupe

On Tuesday\, 2001-03-13 at 06​:11​:06 -0500\, Larry W. Virden wrote​:

Re​: be sure to remove the old config.sh and Policy.sh

I did make certain to do just that\, and\, as I said\, I skipped all the specialized configs just trying to get things to build at all.

Second\, something I have just started recently to see in the configure which puzzles me is this​:

Do you want to install only the version-specific parts of the perl distribution? Usually you do *not* want to do this. Do you want to install only the version-specific parts of perl? [y] n

*** WHOA THERE!!! *** The recommended value for $versiononly on this machine was "define"! Keep the recommended value? [y] n

Why in the world does configure first say that usually you don't want to install version only parts\, then default to install version only parts? Seems weird to me...

Anyways\, here's the latest error. I can send you a transcript of the entire process up to this point if that would be of use. The configure seemed to go right\, as did the make depend...

cc -L/opt/SUNWspro/WS6/lib -R/opt/SUNWspro/WS6/lib -xarch=v9 -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -o miniperl \ miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ld​: warning​: file /opt/SUNWspro/WS6/lib/libm.a(floor.o)​: wrong ELF class​: ELFCLASS32 ld​: warning​: file /opt/SUNWspro/WS6/lib/libsunmath.a(atan2l.o)​: wrong ELF class​: ELFCLASS32 Undefined first referenced symbol in file sqrtl libperl.a(pp.o) floorl libperl.a(pp.o) logl libperl.a(pp.o) sinl libperl.a(pp.o) expl libperl.a(pp.o) fmodl libperl.a(pp.o) floor libperl.a(pp.o) atan2l libperl.a(pp.o) powl libperl.a(pp.o) cosl libperl.a(pp.o) ld​: fatal​: Symbol referencing errors. No output written to miniperl make​: *** [miniperl] Error 1 -- Larry W. Virden \<URL​: mailto​:lvirden@​cas.org> \<URL​: http​://www.purl.org/net/lvirden/> Even if explicitly stated to the contrary\, nothing in this posting should be construed as representing my employer's opinions.

--- Also sprach Larry W. Virden ---

-- | lupe@​lupe-christoph.de | http​://free.prohosting.com/~lupe | | I have challenged the entire ISO-9000 quality assurance team to a | | Bat-Leth contest on the holodeck. They will not concern us again. | | http​://public.logica.com/~stepneys/joke/klingon.htm |

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

solaris_2.sh

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

I'm back - it's been a busy last few days and so I hadn't had a chance to get back to this.

After rsync=ing today\, and making certain that I was using the latest emailed hints/solaris2.sh \, I did a make clean\, moved the config.sh and reran configure. I have the file\, but it is 1556 lines so I won't include it to the entire list unless requested.

Anyways\, here's what I get after config finishes and the compiles progress​:

cc -R/usr/local/lib​:/opt/SUNWspro/WS6/lib​:/usr/lib -L/usr/local/lib -L/opt/SUNWs pro/WS6/lib -L/usr/lib -xarch=v9 -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -o min iperl \   miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ld​: warning​: file /opt/SUNWspro/WS6/lib/libm.a(floor.o)​: wrong ELF class​: ELFCLA SS32 ld​: warning​: file /opt/SUNWspro/WS6/lib/libsunmath.a(atan2l.o)​: wrong ELF class​: ELFCLASS32 Undefined first referenced symbol in file sqrtl libperl.a(pp.o) floorl libperl.a(pp.o) logl libperl.a(pp.o) sinl libperl.a(pp.o) expl libperl.a(pp.o) fmodl libperl.a(pp.o) floor libperl.a(pp.o) atan2l libperl.a(pp.o) powl libperl.a(pp.o) cosl libperl.a(pp.o) ld​: fatal​: Symbol referencing errors. No output written to miniperl make​: *** [miniperl] Error 1

So I don't think the hints file is working yet.

p5pRT commented 23 years ago

From [Unknown Contact. See original ticket]

Just an update. I continue to rsync on an almost daily basis. Perl continues to fail to build using SPARC Solaris 8 and Sun's compiler (at least in my environment). Here's where the failure is​:

cc -R/usr/local/lib​:/opt/SUNWspro/WS6/lib​:/usr/lib -L/usr/local/lib -L/opt/SUNWspro/WS6/lib -L/usr/lib -xarch=v9 -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib -o miniperl \   miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lsunmath ld​: warning​: file /opt/SUNWspro/WS6/lib/libm.a(floor.o)​: wrong ELF class​: ELFCLASS32 ld​: warning​: file /opt/SUNWspro/WS6/lib/libsunmath.a(atan2l.o)​: wrong ELF class​: ELFCLASS32 Undefined first referenced symbol in file sqrtl libperl.a(pp.o) floorl libperl.a(pp.o) logl libperl.a(pp.o) sinl libperl.a(pp.o) expl libperl.a(pp.o) fmodl libperl.a(pp.o) floor libperl.a(pp.o) atan2l libperl.a(pp.o) powl libperl.a(pp.o) cosl libperl.a(pp.o) ld​: fatal​: Symbol referencing errors. No output written to miniperl make​: *** [miniperl] Error 1