develooper Front page | perl.perl5.porters | Postings from January 2006

64bitall on Linux

Thread Next
H.Merijn Brand
January 24, 2006 13:06
64bitall on Linux
Message ID:
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

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:

---       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/ && glibpth="/usr/shlib $glibpth"
 test -f /shlib/     && 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/


FWIW, there are more modules that suffer in these detection rules: Tk, and

H.Merijn Brand        Amsterdam Perl Mongers (
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.
Smoking perl:,    perl QA:
 reports  to:,      

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About