From owner-freebsd-questions@FreeBSD.ORG Wed Nov 16 19:19:33 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 9966F16A41F for ; Wed, 16 Nov 2005 19:19:33 +0000 (GMT) (envelope-from lordi@msdi.ca) Received: from mail02.msdihosting.net (ntweb04.msdihosting.net [66.199.153.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2846143D45 for ; Wed, 16 Nov 2005 19:19:32 +0000 (GMT) (envelope-from lordi@msdi.ca) Received: from ian.msdi.ca ([24.201.183.241]) by mail02.msdihosting.net ((iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003))) with SMTP id B3Q02104; Wed, 16 Nov 2005 14:19:56 -0500 Message-Id: <6.2.3.4.2.20051116141813.04ab97e0@pop.msdi.ca> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 16 Nov 2005 14:19:21 -0500 To: "Andrew P." From: Ian Lord In-Reply-To: References: <6.2.3.4.2.20051116122047.04a74dc0@pop.msdi.ca> Mime-Version: 1.0 X-DEBUG: 1 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:19:33 -0000 So Basically, I would need to recompile Php for=20 ia32 and run it in emulation, then since php is=20 running as a dso, recompile apache... At that point, I prefer to do a make buildworld :) At 14:08 2005-11-16, Andrew P. wrote: >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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ian Lord, CCNA MSD Informatique 1711 Mont=E9e Major Terrebonne (Qu=E9bec) J7M 1E6 T=E9l.: (514) 776-MSDI -> (514) 776-6734 Sans Frais: 1(877) 776-MSDI -> 1(877) 776-6734 http://www.msdi.ca=20