[nycbug-talk] FreeBSD 7.2 and 64/32 bit issues
spork at bway.net
Tue Nov 3 22:27:51 EST 2009
Mark (and Chris),
On Tue, 3 Nov 2009, Mark Saad wrote:
> Ls and the megaraid tool work b/c they are staticly linked ie they have
> a 32bit version of libc.so.4 compiled in to them..
Thanks for solving that mystery. An odd thing about the megaraid tool is
that the version from ports has a check for 32 bit libraries, which seems
odd since my direct download from LSI works fine.
> There is also two ways to get lib32 installed. 1. It is an optional
> install set from sysinstall . 2. If you have a cvs checkout of freebsd
> you can run build just the 32bit libs , I can't remember exactly but
> check the makefile for a build32 command or a buildworld32 something
> like that.
Interesting. I see a "build32" target in /usr/src/Makefile. After more
googling, I found this:
It's a bit old, but apparently the correct way to do this is to set
"WITH_LIB32=yes" in /etc/make.conf. Thankfully this is not a desktop, I
don't even want to imagine the confusion that ensues when trying to run
something like a 64 bit Firefox with a 32-bit linux version of flash or
some other insane nonsense.
I'm a bit surprised this isn't a handbook entry yet.
In the past I've setup a 4.11 jail on a 6.3 host. For giggles, and to try
to beat some dying hardware to the punch, I'm going to try a 4.8 jail on
this thing and see what happens. The 4.11 "solution" worked incredibly
well. I wish I'd documented more of that procedure...
> ------Original Message------
> From: Charles Sprickman
> Sender: talk-bounces at lists.nycbug.org
> To: nycbug talk
> Sent: Nov 2, 2009 9:17 PM
> 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
> Mark Saad | mark.saad at ymail.com
More information about the talk