From owner-freebsd-questions@FreeBSD.ORG Wed Nov 16 19:22:05 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 5D2AD16A41F for ; Wed, 16 Nov 2005 19:22:05 +0000 (GMT) (envelope-from mailing-lists@msdi.ca) Received: from mail02.msdihosting.net (ntweb04.msdihosting.net [66.199.153.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8BE543D68 for ; Wed, 16 Nov 2005 19:22:01 +0000 (GMT) (envelope-from mailing-lists@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 for ; Wed, 16 Nov 2005 14:22:25 -0500 Message-Id: <6.2.3.4.2.20051116142015.02cfce78@pop.msdi.ca> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 16 Nov 2005 14:21:27 -0500 To: freebsd-questions@freebsd.org From: Ian Lord Mime-Version: 1.0 X-DEBUG: 1 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:22:05 -0000 So Basically, I would need to recompile Php for ia32 and run it in emulation, then since php is 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.