From owner-freebsd-questions@FreeBSD.ORG Wed Nov 16 07:08:49 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 BD4B416A41F for ; Wed, 16 Nov 2005 07:08:49 +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 58F2E43D46 for ; Wed, 16 Nov 2005 07:08:49 +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 for ; Wed, 16 Nov 2005 02:09:12 -0500 Message-Id: <6.2.3.4.2.20051116020803.02d50008@pop.msdi.ca> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 16 Nov 2005 02:08:15 -0500 To: freebsd-questions@freebsd.org From: Ian Lord 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 Subject: unsupported file layout 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 07:08:50 -0000 Hi, I am trying to setup pdflib on a freebsd server running 2x Xeon processors. The kernel is compiled using AMD64 version of freebsd6. I downloaded the binairies for freebsd 5.x for the IA32 architecture. I've copied the=20 /usr/local/PDFlib-6.0.2-FreeBSD5/bind/php5/php-503/libpdf_php.so=20 into /usr/local/lib/php/20041030 since this is=20 the directory used into my extension_dir attribute in my php.ini When I reload apache, I get an error in my php error log saying: [16-Nov-2005 01:45:05] PHP Warning: PHP Startup:=20 Unable to load dynamic library=20 '/usr/local/lib/php/20041030/libpdf_php.so' - /usr/ local/lib/php/20041030/libpdf_php.so: unsupported=20 file layout in Unknown on line 0 Does that has anything to do with the fact I=20 compiled using my kernel using AMD64 or does it=20 have something to do with the fact I am running=20 freebsd 5.x binairies on a 6.x version ? From my understanding, the problem is related to=20 the fact that the binairy was compiled for=20 freebsd 5 on an intel IA32 architecture and that=20 I am running freebsd 6 with AMD64. Since I compiled my kernel with options COMPAT_IA32 # Compatible with i386 binaries options COMPAT_FREEBSD5 # Compatible with FreeBSD5 Shouldn't it be working ? or do I need to do=20 antything special to "activate" these functions Thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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