From owner-freebsd-emulation@FreeBSD.ORG Sun Jun 26 18:28:48 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 920E616A41F for ; Sun, 26 Jun 2005 18:28:48 +0000 (GMT) (envelope-from shild@sbcglobal.net) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21B8B43D49 for ; Sun, 26 Jun 2005 18:28:47 +0000 (GMT) (envelope-from shild@sbcglobal.net) Received: from pimout1-ext.prodigy.net (pimout1-int.prodigy.net [207.115.5.65]) by ylpvm43.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id j5QISkmp018339 for ; Sun, 26 Jun 2005 14:28:47 -0400 X-ORBL: [69.219.184.75] Received: from fbsd1.dyndns.org (ppp-69-219-184-75.dsl.chcgil.ameritech.net [69.219.184.75]) by pimout1-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id j5QISeS5129068; Sun, 26 Jun 2005 14:28:45 -0400 Received: from fbsd1.dyndns.org (localhost.dyndns.org [127.0.0.1]) by fbsd1.dyndns.org (8.13.3/8.13.3) with ESMTP id j5QIRNw3029681; Sun, 26 Jun 2005 13:27:24 -0500 (CDT) (envelope-from shild@sbcglobal.net) Received: (from shildret@localhost) by fbsd1.dyndns.org (8.13.3/8.13.1/Submit) id j5QIRMIW029674; Sun, 26 Jun 2005 13:27:22 -0500 (CDT) (envelope-from shild@sbcglobal.net) X-Authentication-Warning: fbsd1.dyndns.org: shildret set sender to shild@sbcglobal.net using -f From: "Scott T. Hildreth" To: jaco@coocoo.za.net In-Reply-To: <2943.196.37.144.98.1119808764.squirrel@webmail.premsoft.co.za> References: <2943.196.37.144.98.1119808764.squirrel@webmail.premsoft.co.za> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 26 Jun 2005 13:27:21 -0500 Message-Id: <1119810441.879.61.camel@fbsd1.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Cc: freebsd-emulation@freebsd.org Subject: Re: [Linux] Loading Linux modules in Apache? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2005 18:28:48 -0000 As far as I know, you need linux apache binary in order for this to work. DSO is a shared library not an executable that can be branded as linux. You can compile Apache2 under the linux emu env or find an rpm. Then run the linux httpd. On Sun, 2005-06-26 at 19:59 +0200, jaco@coocoo.za.net wrote: > Hello All, > > I am trying to load a Linux module in Apache 2.0.53, but I am running into > some problems. > > I am not sure if this is even possible, but I sure hope so. ;) > > This is the scenario: > I have a precompiled linux DSO module for Apache 2. This module loads fine > on Linux, but pukes when I try to load it on FreeBSD. > > First of all a question: Is there any special setting that I must change > in order for apache to use be able to see the shared libraries that is in > the linux directectory? This directory is located in /usr/compat/linux/. > > The module is branded as Linux. > > When I try to load the module in Apache it complains about shared > libraries not being found. These libraries exist in /usr/compat/linux/lib > and /usr/compat/linux/usr/lib. They also work for the other linux > applications that I run, ie, they are found. > > I also tried to link the libs in /usr/compat/linux/lib to /usr/lib. I KNOW > that this can not be the right way to do it, but this sort of worked (no > more shared library not found), but then the module groaned about some > undefined symbols. I think this is because it finds some OTHER module with > the same name as the one it's linked against in linux and then cannot find > the stuff it is looking for. Here is the exact error message: > Syntax error on line 1108 of /usr/local/etc/apache2/httpd.conf: > Cannot load /usr/local/libexec/apache2/mod_V2_mgrequest94.so into server: > /usr/local/libexec/apache2/mod_V2_mgrequest94.so: Undefined symbol > "__gxx_personality_v0" > > Here is the output of ldd: > root@disco-bear# ldd /usr/local/libexec/apache2/mod_V2_mgrequest94.so > /usr/local/libexec/apache2/mod_V2_mgrequest94.so: > libpthread.so.0 => /usr/local/lib/libpthread.so.0 (0x281b3000) > libstdc++.so.3 => /usr/lib/compat/libstdc++.so.3 (0x28204000) > libm.so.6 => /usr/local/lib/libm.so.6 (0x28249000) > libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x2826a000) > libc.so.6 => /usr/local/lib/libc.so.6 (0x28272000) > ld-linux.so.2 (0x2839d000) > libm.so.2 => /usr/lib/compat/libm.so.2 (0x283b0000) > > (some of these are symlinked to /usr/compat/linux/lib) > > Is there anything special that I must do to be able to load this module in > Apache? > > OS: FreeBSD 5.4-RELEASE > Apache: 2.0.53 > Linux Base: Redhat 7.2 > > Thank you in advance for your help. > ---Jaco > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" -- Scott T. Hildreth