[nycbug-talk] FreeBSD 7.2 and 64/32 bit issues

Christopher Olsen cwolsen at ubixos.com
Tue Nov 3 07:09:31 EST 2009


Ls is statically linked so it won't be effected by libraries... But in your 32bit jail link lib to lib32 in usr and all will be fine... I use ezjail which made it easier I just needed to fix one spot..

Are you using anything for jail management?


Ubix Technologies
T: 212-514-6270
C: 516-903-2889
32 Broadway Suite 204
New York, NY 10004

-----Original Message-----
From: Charles Sprickman <spork at bway.net>
Sent: Monday, November 02, 2009 9:17 PM
To: talk at lists.nycbug.org
Subject: [nycbug-talk] FreeBSD 7.2 and 64/32 bit issues


So I finally have my first server that actually needs to run 64-bit 
FreeBSD.  Out of the box, everything seems fine and dandy.

I was looking for some info in the handbook/FAQ about compatibility issues 
with 32-bit binaries, but didn't really find anything definitive (I may 
need to temporarily run a 32-bit jail).

Where can I find more basics about how the system deals with mixed 
binaries?  I see many mentions online about a "/usr/lib32" directory, but 
my install has no such thing.  Oddly enough, a random "/bin/ls" copied 
from a 4.8 box (yes, different major OS version AND 32 bit) "just works". 
I also grabbed LSI's "MegaCli" binary from their site.  It's a 32-bit 
binary and it works with no issues.

In short it seems like it's all too easy, so I'm suspicious...

Any pointers to more reading?



[root at bigmail /home/spork]# file /lib/libc.so.7
/lib/libc.so.7: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), 
(yes, the system appears to be 64-bit)

[root at bigmail /home/spork]# file ls
ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for 
FreeBSD 4.8, statically linked, FreeBSD-style, stripped
[root at bigmail /home/spork]# ./ls
.bash_history                   .shrc
.cshrc                          .ssh
.login                          5-1.00.15_FreeBSD_MegaCLI.zip
.login_conf                     5.00.15_FreeBSD_MegaCLI.txt
.mail_aliases                   CmdTool.log
.mailrc                         MegaCli
.profile                        MegaSAS.log
.rhosts                         ls

[root at bigmail /home/spork]# file MegaCli
MegaCli: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), 
statically linked, stripped
[root at bigmail /home/spork]# ./MegaCli -AdpAllInfo -a0
Product Name    : PERC 6/i Integrated
Serial No       : 1122334455667788
FW Package Build: 6.2.0-0013
talk mailing list
talk at lists.nycbug.org

More information about the talk mailing list