Front page | perl.perl5.porters |
Postings from January 2006
64bitall on Linux
Thread Next
From:
H.Merijn Brand
Date:
January 24, 2006 13:06
Subject:
64bitall on Linux
Message ID:
20060124220716.683cf023@pc09
I got a brand new box, on which I was to install Linux.
I hit the power button, inserted the SuSE 10.0 DVD, and hit Alt-Control-DEL
And I got the message
"Cool machine, but
You are about to install 32bit software on a 64bit machine"
Nice, I didn't know, but I fetched the 64bit install stuff, and installed
SuSE-10.0/64.
Next surprise was to see that Linux sees this 3 GHz CPU as *two* CPU's :)
must be dual-core or hyperthreaded or whatever. Anyway, I like that.
Linux 2.6.13-15.7-smp/#1 x86_64 Pentium(R) 4 CPU 3.00GHz/2993(2) x86_64 989 Mb
So, a 64bit Linux needs a 64bitall perl. Of course.
I started with 5.8.8-rc1+dor only to see that it built me a static version of
perl. Some digging showed me that I needed to include /usr/lib64 in the group
of libs to search. So either noone ever tested 64bitall dynamic loading on
Linux/64, or SuSE configures its system different than the other distros.
Anyway, I think it's a fair game to include /usr/lib64 and /lib64 in case
they exist, and I would prefer that to be included for all systems/OS's, but
the location in Configure where I would *like* to put it (where it already
knows to try for 64bit stuff) is much too late for dynaloading, so that
leaves me two options
1. Add it to Configure early, even for 32bit builds:
--- Configure.org 2006-01-24 22:54:34.000000000 +0100
+++ Configure 2006-01-24 20:49:43.000000000 +0100
@@ -1263,6 +1263,8 @@ glibpth="/lib /usr/lib $xlibpth"
glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
test -f /shlib/libc.so && glibpth="/shlib $glibpth"
+test -d /usr/lib64 && glibpth="$glibpth /usr/lib64"
+test -d /lib64 && glibpth="$glibpth /lib64"
: Private path used by Configure to find libraries. Its value
: is prepended to libpth. This variable takes care of special
2. Modify hints/linux.sh
Comments?
FWIW, there are more modules that suffer in these detection rules: Tk, and
Net::SSLeah
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.2, 5.8.0, 5.8.5, & 5.9.2 on HP-UX 10.20, 11.00 & 11.11,
AIX 4.3 & 5.2, SuSE 9.2 & 9.3, and Cygwin. http://www.cmve.net/~merijn
Smoking perl: http://www.test-smoke.org, perl QA: http://qa.perl.org
reports to: smokers-reports@perl.org, perl-qa@perl.org
Thread Next
-
64bitall on Linux
by H.Merijn Brand