Subject: perl5 for sparc?
To: None <port-sparc@netbsd.org>
From: Ron Roskens <roskens@Elfin.Net>
List: port-sparc
Date: 06/08/1999 09:56:12
Any one tried to compile perl5 using the pkg system with the 06/05 ELF
snapshot? I'm getting an error during the configure:
====
Checking your choice of C compiler, libs, and flags for coherency...
I've tried to compile and run a simple program with:
cc -O2 -o try try.c -lm -lposix -lcrypt
./try
and I got the following output:
Segmentation fault
The program compiled OK, but exited with status 139.
You have a problem. Shall I abort Configure (and explain the problem) [y]
Ok. Stopping Configure.
dialup# cd UU
dialup# ./try
zsh: segmentation fault ./try
dialup# LD_DEBUG=1 ./try
/usr/libexec/ld.elf_so is initialized, base address = 0x10020000
processing main program's program header
loading needed objects
Searching for "libm.so.0" (0x1003b000)
Trying "/usr/lib/libm.so.0"
0x10041000 .. 0x10072fff: /usr/lib/libm.so.0
Searching for "libposix.so.0" (0x1003b000)
Trying "/usr/lib/libposix.so.0"
zsh: segmentation fault LD_DEBUG=1 ./try
dialup# ldd try
try:
-lm.0 => /usr/lib/libm.so.0
-lposix.0 => /usr/lib/libposix.so.0
-lcrypt.0 => /usr/lib/libcrypt.so.0
-lc.12 => /usr/lib/libc.so.12
dialup# ls -l /usr/lib/libposix.so*
lrwxr-xr-x 1 root wheel 15 May 26 03:49 /usr/lib/libposix.so ->
libposix.so.0.1
lrwxr-xr-x 1 root wheel 15 May 26 03:49 /usr/lib/libposix.so.0 ->
libposix.so.0.1
-r--r--r-- 1 root wheel 3557 May 26 03:49 /usr/lib/libposix.so.0.1
dialup# ls -l /usr/lib/libc*
-r--r--r-- 1 root wheel 1237894 May 26 03:46 /usr/lib/libc.a
lrwxr-xr-x 1 root wheel 13 May 26 03:46 /usr/lib/libc.so ->
libc.so.12.41
lrwxr-xr-x 1 root wheel 13 May 26 03:46 /usr/lib/libc.so.12 ->
libc.so.12.41
-r--r--r-- 1 root wheel 585447 May 26 03:46 /usr/lib/libc.so.12.41
-r--r--r-- 1 root wheel 1460214 May 26 03:46 /usr/lib/libc_p.a
-r--r--r-- 1 root wheel 1300590 May 26 03:46 /usr/lib/libc_pic.a
-r--r--r-- 1 root wheel 35672 May 26 03:48 /usr/lib/libcompat.a
-r--r--r-- 1 root wheel 40118 May 26 03:48 /usr/lib/libcompat_p.a
-r--r--r-- 1 root wheel 7390 May 26 03:48 /usr/lib/libcrypt.a
lrwxr-xr-x 1 root wheel 15 May 26 03:49 /usr/lib/libcrypt.so ->
libcrypt.so.0.0
lrwxr-xr-x 1 root wheel 15 May 26 03:49 /usr/lib/libcrypt.so.0 ->
libcrypt.so.0.0
-r--r--r-- 1 root wheel 8989 May 26 03:49 /usr/lib/libcrypt.so.0.0
-r--r--r-- 1 root wheel 8590 May 26 03:48 /usr/lib/libcrypt_p.a
-r--r--r-- 1 root wheel 7370 May 26 03:49 /usr/lib/libcrypt_pic.a
-r--r--r-- 1 root wheel 128652 May 26 03:49 /usr/lib/libcurses.a
lrwxr-xr-x 1 root wheel 16 May 26 03:49 /usr/lib/libcurses.so ->
libcurses.so.2.5
lrwxr-xr-x 1 root wheel 16 May 26 03:49 /usr/lib/libcurses.so.2 ->
libcurses.so.2.5
-r--r--r-- 1 root wheel 70687 May 26 03:49 /usr/lib/libcurses.so.2.5
-r--r--r-- 1 root wheel 142396 May 26 03:49 /usr/lib/libcurses_p.a
-r--r--r-- 1 root wheel 128886 May 26 03:49 /usr/lib/libcurses_pic.a
If I compile try.c without -lposix, it compiles and runs without a
segfault.
Ron Roskens
--
Collective Technologies Consultant
http://www.colltech.com/ email: roskens@colltech.com