From owner-freebsd-questions@FreeBSD.ORG Wed Nov 16 19:08:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6969D16A41F for ; Wed, 16 Nov 2005 19:08:48 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 089E943D46 for ; Wed, 16 Nov 2005 19:08:47 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1735988nzo for ; Wed, 16 Nov 2005 11:08:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rt9eIcIN3/IdKHJiyv8Bw8bHocNiiMEIDF2LC/2DNWEf9k3xM9sTgohroMrMyKCVDowhNpt5Slp7XiclM/3So3kSMfkQfCXXfxpPxaBtMBFwGxnRMEGua9QB96CasbZk0XCWl0EhndIV0hvTukKLvD/FKzbVBRh5Dz8sSmgFOAk= Received: by 10.37.15.74 with SMTP id s74mr6708013nzi; Wed, 16 Nov 2005 11:08:47 -0800 (PST) Received: by 10.37.20.33 with HTTP; Wed, 16 Nov 2005 11:08:47 -0800 (PST) Message-ID: Date: Wed, 16 Nov 2005 22:08:47 +0300 From: "Andrew P." To: Ian Lord In-Reply-To: <6.2.3.4.2.20051116122047.04a74dc0@pop.msdi.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6.2.3.4.2.20051116122047.04a74dc0@pop.msdi.ca> Cc: freebsd-questions@freebsd.org Subject: Re: COMPAT_IA32 & COMPAT_FREEBSD5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2005 19:08:48 -0000 On 11/16/05, Ian Lord wrote: > Hi, > > I am running freebsd 6 AMD64 > > I compiled my kernel with the following options: > options COMPAT_IA32 # Compatible with i386 binaries > options COMPAT_FREEBSD5 # Compatible with FreeBSD5 > > However, I am trying to run an application which > has been compiled for freebsd 5.x IA32 > > I get the following error: > Unable to load dynamic library > '/usr/local/lib/php/20041030/libpdf_php.so' - /usr/ > local/lib/php/20041030/libpdf_php.so: unsupported > file layout in Unknown on line 0 > > > Do I need to do anything special to activate > COMPAT_IA32 and COMPAT_FREEBSD5 on this loadable module ? Various problems occur when a dynamic x86 executable tries to use x86_64 libraries. You don't have to do anything special per se, but ensure that binaries are consistent.