From owner-freebsd-current Tue Sep 29 06:51:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA24162 for freebsd-current-outgoing; Tue, 29 Sep 1998 06:51:20 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from galileo.physics.purdue.edu (galileo.physics.purdue.edu [128.210.67.225]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA24082 for ; Tue, 29 Sep 1998 06:51:01 -0700 (PDT) (envelope-from csg@physics.purdue.edu) Received: (from csg@localhost) by galileo.physics.purdue.edu (8.8.8/8.8.8) id IAA20367; Tue, 29 Sep 1998 08:50:44 -0500 (EST) Message-ID: <19980929085044.A19900@physics.purdue.edu> Date: Tue, 29 Sep 1998 08:50:44 -0500 From: "C. Stephen Gunn" To: current@FreeBSD.ORG Cc: ache@nagual.pp.ru, aw1@stade.co.uk Subject: Re: Apache13 port under FreeBSD 3.0-BETA (ELF) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Sep 29, 1998 at 10:01:06AM +0100, Adrian Wontroba wrote: > On an ELF system (3.0-BETA, cvsup'd circa 0500 GMT on Sunday 27 > September), the apache13 port compiles OK, but fails in the elf loader > when run. Regrettably, I did not script the session or write the error > message down. Yes, negligence on my part (8-( It's been broken since E-DAY here. > I did succeed in forcing it to work (I hesitate to say that this is a > solution) by: > > Adding --disable-shared=all to the configuration directives in the port > Makefile. Works fine as long as you don't want or didn't need Run-Time Shared Object support. From my observation, it's Apache's assumptions about FreeBSD's loader (in Configure) that are broken. > This may be of use to anybody using a current ELF system. Time > permitting, I'll take a closer look this weekend - and at least capture > the actual error message. Here's what I get on volta.physics.purdue.edu, just CVSup'd and running BETA from 2-3 days ago: --------------------------------------------------------------------------- ===> Registering installation for apache-1.3.2 # volta root /usr/ports/www/apache13 # /usr/local/sbin/httpd Syntax error on line 28 of /usr/local/etc/apache/httpd.conf: Cannot load /usr/local/libexec/apache/mod_info.so into server: /usr/local/libexec/apache/mod_info.so: Undefined symbol "ap_user_id" --------------------------------------------------------------------------- This is the elf loader (ld.so) complaining that it cant resolve symbolic names. Based on the symbol names, I assume that ap_user_id is defined in the httpd binary, and mod_info.so wants to reference it. If I remember from my Linux days, there is some trickery needed to export the names. Another gotcha I found (I don't have this fixed yet) is that FreeBSD aout apparently wants symbolic names in .so files to begin with underscore, which FreeBSD elf apprently doesn't want/require. Apache groks this entirely wrong. For now patches should do, but eventually Apache's Configure should take care of this, IMNSHO. - Steve -- C. Stephen Gunn, Computer Systems Engineer Physics Computer Network, Purdue University To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message