From owner-freebsd-amd64@FreeBSD.ORG Wed Jul 1 07:16:38 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7C001065674 for ; Wed, 1 Jul 2009 07:16:38 +0000 (UTC) (envelope-from prvs=426ed4353=karthy@netic.dk) Received: from mxout02.netic.dk (mxout02.netic.dk [77.243.50.218]) by mx1.freebsd.org (Postfix) with ESMTP id 5FDDE8FC1F for ; Wed, 1 Jul 2009 07:16:37 +0000 (UTC) (envelope-from prvs=426ed4353=karthy@netic.dk) DomainKey-Signature: s=dk; d=netic.dk; c=simple; q=dns; h=X-IronPort-Anti-Spam-Filtered: X-IronPort-Anti-Spam-Result:X-IronPort-AV:Received:Cc: Message-Id:From:To:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date: References:X-Mailer; b=ASlHxELWBZpiRY9T8Rm0C3D4ucf6zRa6/kAjWdzSklfvy6Z+baPk7+wZ oTNN4V6cHhMIpJWvwEJbENrAVvyZEQ==; DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netic.dk; i=karthy@netic.dk; q=dns/txt; s=dkim; t=1246432598; x=1277968598; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20Karsten=20Thygesen=20|Subject: =20Re:=20Netvault=20on=20FreeBSD-7.2=20AMD64|Date:=20Wed, =201=20Jul=202009=2008:47:00=20+0200|Message-Id:=20<39450 11B-1308-44E8-AB3D-F6BC224475C0@netic.dk>|To:=20Roland=20 Smith=20|Cc:=20freebsd-amd64@freebsd.or g|Mime-Version:=201.0=20(Apple=20Message=20framework=20v9 35.3)|Content-Transfer-Encoding:=207bit|In-Reply-To:=20<2 0090629182642.GA3248@slackbox.xs4all.nl>|References:=20<2 37A4FC3-3CBD-453B-A606-9F07E3F56FBD@netic.dk>=20<20090629 182642.GA3248@slackbox.xs4all.nl>; bh=7tOIhRfC6kz2t0ZhKRmZIM3+z3xW3lC5AKBh0h/TcUw=; b=ouceerBrzuyRwNkm4C5GQ6svXAxKJBqXO/Ow7aYck1NaJeZwb9lZ9uiB c3qjHvrvUzyP4uAe72D/NU2y6A6I0g==; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAAyjSkpN8z4+/2dsb2JhbACBUc4zgkyBRAWBOA X-IronPort-AV: E=Sophos;i="4.42,321,1243807200"; d="scan'208";a="3087432" Received: from netic-fw.novipark.dk (HELO mackarthy02.netic.dk) ([77.243.62.62]) by mxout02.netic.dk with ESMTP/TLS/AES128-SHA; 01 Jul 2009 08:47:00 +0200 Message-Id: <3945011B-1308-44E8-AB3D-F6BC224475C0@netic.dk> From: Karsten Thygesen To: Roland Smith In-Reply-To: <20090629182642.GA3248@slackbox.xs4all.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Wed, 1 Jul 2009 08:47:00 +0200 References: <237A4FC3-3CBD-453B-A606-9F07E3F56FBD@netic.dk> <20090629182642.GA3248@slackbox.xs4all.nl> X-Mailer: Apple Mail (2.935.3) Cc: freebsd-amd64@freebsd.org Subject: Re: Netvault on FreeBSD-7.2 AMD64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 07:16:39 -0000 Hi Thanks a lot to all of you, who responded on my query. The solution was to install lib32 (I still wonder why I did de-select them during installation) as many of you pointed out. When I did this, the Netvault binaries could almost run, but they had problems finding their dynamic libraries, and after quite a lot of googling, I figured out, that I had to set LD_32_LIBRARY_PATH instead of LD_LIBRARY_PATH - that little, but crusial, difference took quite some hours to figure out. But after we got this knowledge, everything seems to work and we do now have Netvault on FreeBSD-7.2-amd64 (but it is an unsupported platform from Bakbone - come on, Bakbone, get up to speed!). A small wish is, that it would be wonderful if the FreeBSD handbook could be extended with a small chapter on how to run 32 bit binaries on 64 bit platforms - especially hints like LD_32_LIBRARY_PATH would be nice to know about... :-) But thanks guys - the FreeBSD community is the best!! Karsten On Jun 29, 2009, at 20:26 , Roland Smith wrote: > On Mon, Jun 29, 2009 at 12:19:44PM +0200, Karsten Thygesen wrote: >> Hi >> >> We use FreeBSD-7.2 (p2, amd64) but it turns out, that there is >> problems running Netvault. >> >> Netvault only support FreeBSD in 32bit (and I can verify, that it >> works just fine here), so we are on out own with 64bit support. >> >> I'm quite new to 64bit edition of FreeBSD, so there might be >> something >> simple, that I do not know about, but when I try to run one of the >> netvault binaries, I get this error: >> >> [karthy@karthywork ~]$ ./txtconfig >> ELF interpreter /libexec/ld-elf.so.1 not found >> Abort trap: 6 > > AFAIK, a 32-bit app should be looking for /libexec/ld-elf32.so.1! > > Does /libexec/ld-elf32.so.1 exist? Are there any libraries in /usr/ > lib32? > If not, you need to install or build 32-bit compatible libraries. Not > just the system libraries (you should be able to get those from the > install CD with sysinstall), but also any 3rd party libraries that > netvault requires! > >> [karthy@karthywork ~]$ ls -l /libexec/ld-elf.so.1 >> -r-xr-xr-x 1 root wheel 198456 Jun 29 11:32 /libexec/ld-elf.so.1 > >> [karthy@karthywork ~]$ file txtconfig >> txtconfig: ELF 32-bit LSB executable, Intel 80386, version 1 >> (FreeBSD), dynamically linked (uses shared libs), stripped >> >> [karthy@karthywork ~]$ uname -a >> FreeBSD karthywork.netic.dk 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: >> Wed Jun 24 00:14:35 UTC 2009 root@amd64-builder.daemonology.net:/ >> usr/obj/usr/src/sys/GENERIC amd64 > > Seems that you are using a GENERIC kernel. That does include 32-bit > compatibility. > > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much > appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: > C321A725)