Mailing List Archive

Compiling perl 5 on s sparc-sun-solaris2.4 host
Hello,

I'd like to compile perl on a sparc-sun-solaris2.4 machine with
gcc (2.7.0) as a compiler and gas, gld (2.5.2) as assembler and
loader.

My first try was to accept Configure's defaults. That included
an option "-K pic" into some Makefiles, which was refused by
gcc. I removed dynamic loading, but got the following error
message:

ld -o ../../lib/auto/Fcntl/Fcntl.none Fcntl.o
Fcntl.o(.text+0xc): undefined reference to `croak'
Fcntl.o(.text+0x20): undefined reference to `errno'
Fcntl.o(.text+0x24): undefined reference to `errno'
Fcntl.o(.text+0x44): undefined reference to `errno'
Fcntl.o(.text+0x54): undefined reference to `strncmp'
Fcntl.o(.text+0x6c): undefined reference to `strcmp'
Fcntl.o(.text+0x84): undefined reference to `strcmp'
Fcntl.o(.text+0xa8): undefined reference to `strcmp'
Fcntl.o(.text+0xcc): undefined reference to `strcmp'
Fcntl.o(.text+0xf0): undefined reference to `strcmp'

Lots of other stuff deleted.


Any suggestions, how to carry on?


Jochen
Re: Compiling perl 5 on s sparc-sun-solaris2.4 host [ In reply to ]
> From: Jochen Wiedmann <wiedmann@ns.neckar-alb.de>
>
> Hello,
>
> I'd like to compile perl on a sparc-sun-solaris2.4 machine with
> gcc (2.7.0) as a compiler and gas, gld (2.5.2) as assembler and loader.

I strongly suggest that you only use GCC and don't use gas or gld.
gld is practically broken for Solaris 2 relative to Sun's own ld.

Tim.
Re: Compiling perl 5 on s sparc-sun-solaris2.4 host [ In reply to ]
In <199510200956.KAA24052@ns.neckar-alb.de>
On Fri, 20 Oct 1995 10:56:51 +0100 (MET)
Jochen Wiedmann <wiedmann@ns.neckar-alb.de> writes:
>Hello,
>
>I'd like to compile perl on a sparc-sun-solaris2.4 machine with
>gcc (2.7.0) as a compiler and gas, gld (2.5.2) as assembler and
>loader.

You really don't want gas or gld - they can't do
dynamic loading. gcc with /usr/ccs/bin/as and /usr/ccs/bin/ld
works fine.

>
>My first try was to accept Configure's defaults. That included
>an option "-K pic" into some Makefiles, which was refused by
>gcc. I removed dynamic loading, but got the following error
>message:

Shouldn't be - Configure knows gcc needs -fpic
Suspect you either have very old perl5 & Configure, or you don't
have gcc in your path as 'cc'. Either do that, or answer 'gcc'
to the question otherwise Configure finds /usr/ucb/cc or similar.

If that does not help run 'myconfig' script in the perl5.001
directory and send us the output.