Perl / perl5

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

Not sure what to do next... #9023

Closed p5pRT closed 12 years ago

p5pRT commented 16 years ago

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

Searchable as RT45241$

p5pRT commented 16 years ago

From mkowalsk@campbell-ewald.com

# uname -a

SunOS kmgapps2 5.10 Generic_118833-36 sun4u sparc SUNW\,Sun-Fire-V445

# sh Configure -Duse64bitall -des

First let's make sure your kit is complete. Checking...

Would you like to see the instructions? [n]

Locating common programs...

Checking compatibility between /usr/bin/echo and builtin echo (if any)...

Symbolic links are supported.

Checking how to test for symbolic links...

You can test for symbolic links with 'test -h'.

Good\, your tr supports [​:lower​:] and [​:upper​:] to convert case.

Using [​:upper​:] and [​:lower​:] to convert case.

3b1 dos_djgpp isc_2 os2 svr4

aix dynix linux os390 svr5

aix_3 dynixptx lynxos os400 ti1500

aix_4 epix machten posix-bc titanos

altos486 esix4 machten_2 powerux ultrix_4

amigaos fps mint qnx umips

apollo freebsd mips rhapsody unicos

atheos genix mpc sco unicosmk

aux_3 gnu mpeix sco_2_3_0 unisysdynix

beos greenhills ncr_tower sco_2_3_1 utekv

bsdos hpux netbsd sco_2_3_2 uts

convexos i386 newsos4 sco_2_3_3 uwin

cxux irix_4 next_3 sco_2_3_4 vmesa

cygwin irix_5 next_3_0 solaris_2 vos

darwin irix_6 next_4 stellar

dcosx irix_6_0 nonstopux sunos_4_0

dec_osf irix_6_1 openbsd sunos_4_1

dgux isc opus super-ux

Which of these apply\, if any? [solaris_2]

You specified no cc but you seem to have the Workshop compiler

(/opt/SUNWspro/bin/cc) installed\, using that.

If you want something else\, specify that in the command line\,

e.g. Configure -Dcc=gcc

Operating system name? [solaris]

Operating system version? [2.10]

Build Perl for SOCKS? [n]

Use the PerlIO abstraction layer? [y]

Build a threading Perl? [n]

Build Perl for multiplicity? [n]

Use which C compiler? [/opt/SUNWspro/bin/cc]

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

Checking for GNU cc in disguise and/or its version number...

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

Now\, how can we feed standard input to your C preprocessor...

Directories to use for library searches?

[/usr/lib/sparcv9 /usr/ccs/lib/sparcv9 /opt/SUNWspro/prod/lib/v9 /lib/sparcv9 /usr/local/lib /usr/lib /usr/ccs/lib]

What is the file extension used for shared libraries? [so]

Try to use long doubles if available? [n]

Checking for optional libraries...

What libraries to use? [-lsocket -lnsl -ldb -ldl -lm -lc]

What optimizer/debugger flag should be used? [-O]

Any additional cc flags? [-xarch=generic64 -I/usr/local/include]

Let me guess what the preprocessor flags are...

Any additional ld flags (NOT including libraries)?

[ -xarch=generic64 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/opt/SUNWspro/prod/lib/v9 -L/lib/sparcv9 -L/usr/local/lib]

Checking your choice of C compiler and flags for coherency...

I've tried to compile and run the following simple program​:

#include \<stdio.h>

int main() { printf("Ok\n"); return(0); }

I used the command​:

  /opt/SUNWspro/bin/cc -o try -O -xarch=generic64 -I/usr/local/include -xarch=generic64 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/opt/SUNWspro/prod/lib/v9 -L/lib/sparcv9 -L/usr/local/lib try.c -lsocket -lnsl -ldb -ldl -lm -lc

  ./try

and I got the following output​:

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

ld​: fatal​: library -ldb​: not found

ld​: fatal​: File processing errors. No output written to try

I can't compile the test program.

You have a BIG problem. Shall I abort Configure [y]

Ok. Stopping Configure.

#

p5pRT commented 16 years ago

From @doughera88

On Thu\, 6 Sep 2007\, Kowalski\, Michael wrote​:

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

# uname -a SunOS kmgapps2 5.10 Generic_118833-36 sun4u sparc SUNW\,Sun-Fire-V445 # sh Configure -Duse64bitall -des

[ ... normal Configure output ... ]

Use which C compiler? [/opt/SUNWspro/bin/cc]

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

It's not obvious there's much we can do about this. The -xarch=generic64 is coming from a call to Solaris's getconf. There may be some sort of patch or update to /usr/bin/getconf to update it with what the newer compiler is expecting.

In any case\, that's not the problem here.

I've tried to compile and run the following simple program​:

#include \<stdio.h> int main() { printf("Ok\n"); return(0); }

I used the command​:

    /opt/SUNWspro/bin/cc \-o try \-O \-xarch=generic64

-I/usr/local/include -xarch=generic64 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/opt/SUNWspro/prod/lib/v9 -L/lib/sparcv9 -L/usr/local/lib try.c -lsocket -lnsl -ldb -ldl -lm -lc

     \./try

and I got the following output​: ld​: fatal​: library -ldb​: not found ld​: fatal​: File processing errors. No output written to try

Configure has found a library -ldb somewhere. (Since you ran Configure in silent mode\, I can't see whether or not it's a shared library\, but I'll guess Configure thinks it found a shared library in /usr/local/lib/libdb.so.)

Could you check and find the full path to libdb? Make sure it's a valid library. You can try for your self to compile the test program with the compile command Configure used.

If you don't care about -ldb (which is used to support the Berkeley DB module) then you can simply remove -ldb from the list of libraries. (One way to do that is to run Configure interactively up to that point\, and then respond with '&-d' to get Configure to accept all the defaults for the rest of the program.

Hope this helps\,

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 16 years ago

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

p5pRT commented 16 years ago

From david@landgren.net

Andy Dougherty wrote​:

If you don't care about -ldb (which is used to support the Berkeley DB module) then you can simply remove -ldb from the list of libraries. (One way to do that is to run Configure interactively up to that point\, and then respond with '&-d' to get Configure to accept all the defaults for the rest of the program.

Wow! I didn't know that. I'm going to update the wiki!

Thanks\, David

p5pRT commented 12 years ago

From @jkeenan

On Fri Sep 07 06​:37​:00 2007\, doughera wrote​:

On Thu\, 6 Sep 2007\, Kowalski\, Michael wrote​:

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

# uname -a SunOS kmgapps2 5.10 Generic_118833-36 sun4u sparc SUNW\,Sun-Fire-V445 # sh Configure -Duse64bitall -des

[ ... normal Configure output ... ]

Use which C compiler? [/opt/SUNWspro/bin/cc]

cc​: Warning​: -xarch=generic64 is deprecated\, use -m64 to create 64-bit programs

It's not obvious there's much we can do about this. The -xarch=generic64 is coming from a call to Solaris's getconf. There may be some sort of patch or update to /usr/bin/getconf to update it with what the newer compiler is expecting.

In any case\, that's not the problem here.

I've tried to compile and run the following simple program​:

#include \<stdio.h> int main() { printf("Ok\n"); return(0); }

I used the command​:

    /opt/SUNWspro/bin/cc \-o try \-O \-xarch=generic64

-I/usr/local/include -xarch=generic64 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/opt/SUNWspro/prod/lib/v9 -L/lib/sparcv9 -L/usr/local/lib try.c -lsocket -lnsl -ldb -ldl -lm -lc

     \./try

and I got the following output​: ld​: fatal​: library -ldb​: not found ld​: fatal​: File processing errors. No output written to try

Configure has found a library -ldb somewhere. (Since you ran Configure in silent mode\, I can't see whether or not it's a shared library\, but I'll guess Configure thinks it found a shared library in /usr/local/lib/libdb.so.)

Could you check and find the full path to libdb? Make sure it's a valid library. You can try for your self to compile the test program with the compile command Configure used.

If you don't care about -ldb (which is used to support the Berkeley DB module) then you can simply remove -ldb from the list of libraries. (One way to do that is to run Configure interactively up to that point\, and then respond with '&-d' to get Configure to accept all the defaults for the rest of the program.

Hope this helps\,

We never heard back from the original poster\, so we have no reason to believe that Andy D.'s suggestion did not work.

Can we close this ticket?

Thank you very much. Jim Keenan

p5pRT commented 12 years ago

From @doughera88

On Thu\, 3 May 2012\, James E Keenan via RT wrote​:

On Fri Sep 07 06​:37​:00 2007\, doughera wrote​:

On Thu\, 6 Sep 2007\, Kowalski\, Michael wrote​:

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

# uname -a SunOS kmgapps2 5.10 Generic_118833-36 sun4u sparc SUNW\,Sun-Fire-V445 # sh Configure -Duse64bitall -des

[ ... normal Configure output ... ]

I've tried to compile and run the following simple program​:

#include \<stdio.h> int main() { printf("Ok\n"); return(0); }

I used the command​:

    /opt/SUNWspro/bin/cc \-o try \-O \-xarch=generic64

-I/usr/local/include -xarch=generic64 -L/usr/lib/sparcv9 -L/usr/ccs/lib/sparcv9 -L/opt/SUNWspro/prod/lib/v9 -L/lib/sparcv9 -L/usr/local/lib try.c -lsocket -lnsl -ldb -ldl -lm -lc

     \./try

and I got the following output​: ld​: fatal​: library -ldb​: not found ld​: fatal​: File processing errors. No output written to try

We never heard back from the original poster\, so we have no reason to believe that Andy D.'s suggestion did not work.

Can we close this ticket?

Yes\, go ahead and close it. Thanks!

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 12 years ago

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