Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C7E6984A for ; Mon, 27 Feb 2012 22:22:18 +0000 (UTC) Received: (qmail 47160 invoked by uid 500); 27 Feb 2012 22:22:17 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 47094 invoked by uid 500); 27 Feb 2012 22:22:17 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 47086 invoked by uid 99); 27 Feb 2012 22:22:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 22:22:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trawick@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 22:22:09 +0000 Received: by vbbfs19 with SMTP id fs19so1081871vbb.18 for ; Mon, 27 Feb 2012 14:21:48 -0800 (PST) Received-SPF: pass (google.com: domain of trawick@gmail.com designates 10.52.179.102 as permitted sender) client-ip=10.52.179.102; Authentication-Results: mr.google.com; spf=pass (google.com: domain of trawick@gmail.com designates 10.52.179.102 as permitted sender) smtp.mail=trawick@gmail.com; dkim=pass header.i=trawick@gmail.com Received: from mr.google.com ([10.52.179.102]) by 10.52.179.102 with SMTP id df6mr9860365vdc.28.1330381308564 (num_hops = 1); Mon, 27 Feb 2012 14:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=K3IRvlbi/df4KiaOCkEmmRwgfepn0s4utPfUxEz4ur0=; b=Q1IqiHuQst1Z4c9OdCa/4eynwku4O9lF8yXOfZ+FH3HvQ8d+11RHWLu9XT/2FcEC+k DbolnyBZ1VhbX+ne2fFpp4nttHtWmCAu1zhU4B/hIOwb80VtkEKD/2mjMskTX0WHO7Ah z9Fm+vUcgysaASvfLnDZGykbTcGS8Tfuo7Kys= MIME-Version: 1.0 Received: by 10.52.179.102 with SMTP id df6mr8037973vdc.28.1330381308501; Mon, 27 Feb 2012 14:21:48 -0800 (PST) Received: by 10.220.192.69 with HTTP; Mon, 27 Feb 2012 14:21:48 -0800 (PST) In-Reply-To: References: Date: Mon, 27 Feb 2012 17:21:48 -0500 Message-ID: Subject: Re: Cannot start httpd v2.4.1 with mpm_build on AIX From: Jeff Trawick To: dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Feb 27, 2012 at 5:14 PM, Michael Felt wrote: > Works, but... thanks > the prefork loadmodule line needed to be added manually that's expected; you only get one MPM LoadModule directive... > > #LoadModule mpm_worker_module libexec/mod_mpm_worker.so > LoadModule mpm_prefork_module libexec/mod_mpm_prefork.so > LoadModule unixd_module libexec/mod_unixd.so > #LoadModule heartbeat_module libexec/mod_heartbeat.so > #LoadModule heartmonitor_module libexec/mod_heartmonitor.so > #LoadModule dav_module libexec/mod_dav.so > LoadModule status_module libexec/mod_status.so > LoadModule autoindex_module libexec/mod_autoindex.so > > from the looks of it, seemsI need to remove several # to test loading all > modules :) > > > > > On Mon, Feb 27, 2012 at 11:05 PM, Jeff Trawick wrote: >> >> On Mon, Feb 27, 2012 at 4:58 PM, Michael Felt wrote: >> > That fixed it! >> > michael@x054:[/data/home/michael]/opt/httpd/sbin/apachectl >> > -t >> > AH00558: httpd: Could not reliably determine the server's fully >> > qualified >> > domain name, using 192.168.129.54. Set the 'ServerName' directive >> > globally >> > to suppress this message >> > Syntax OK >> > >> > Further testing continues... >> >> Cool! >> >> Can you see if it prefork loads too? =A0(Comment out the LoadModule for >> mpm_worker_module and add a similar one for prefork and try apachectl >> -t.) =A0I can check the completeness of the fix from a theoretical >> standpoint, but empirical results would be appreciated. >> >> > >> > >> > On Mon, Feb 27, 2012 at 1:18 PM, Jeff Trawick wrot= e: >> >> >> >> On Mon, Feb 27, 2012 at 4:25 AM, Michael Felt >> >> wrote: >> >> > The patch impaired me moved the file to ./include and rebuilt. >> >> > Similiar issues: >> >> > >> >> > httpd: Syntax error on line 143 of /etc/httpd/httpd.conf: Cannot lo= ad >> >> > /opt/httpd/libexec/mod_mpm_worker.so into server: >> >> > rtld: 0712-001 Symbol ap_fatal_signal_child_setup was referenced >> >> > >> >> > from module /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> > definition >> >> > of the symbol was not found. >> >> > rtld: 0712-001 Symbol ap_reopen_scoreboard was referenced >> >> > >> >> > from module /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> > definition >> >> > of the symbol was not found. >> >> > rtld: 0712-001 Symbol ap_mpm_set_graceful_shutdown was referenced >> >> > >> >> > from module /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> > definition >> >> > of the symbol was not found. >> >> >> >> getting much closer AFAICT >> >> >> >> please try with the pdated mpm_common.h and scoreboard.h attached >> >> >> >> > >> >> > rtld is"runtime linker/loader", for those wondering... >> >> > >> >> > >> >> > On Sun, Feb 26, 2012 at 11:13 PM, Jeff Trawick >> >> > wrote: >> >> >> >> >> >> On Sun, Feb 26, 2012 at 5:09 PM, Michael Felt >> >> >> wrote: >> >> >> > patched manually, building... >> >> >> >> >> >> ouch... =A0maybe you have GNU patch installed as gpatch from the A= IX >> >> >> Toolbox? >> >> >> >> >> >> anyway, in a subsequent e-mail I noticed other missing symbols... >> >> >> that's in the latest patch and, for the patch impaired, updated >> >> >> mpm_common.h, both attached >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> > On Sun, Feb 26, 2012 at 10:56 PM, Michael Felt >> >> >> > wrote: >> >> >> >> >> >> >> >> er, almost working: >> >> >> >> michael@x054:[/data/prj/httpd-2.4.1]patch -p0 -i *.patch >> >> >> >> Processing...=A0 Looks like a unified context diff... >> >> >> >> The text leading up to this was: >> >> >> >> -------------------------- >> >> >> >> |Index: include/mpm_common.h >> >> >> >> >> >> >> >> |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> >> >> |--- include/mpm_common.h=A0=A0=A0=A0=A0=A0 (revision 1293841) >> >> >> >> |+++ include/mpm_common.h=A0=A0=A0=A0=A0=A0 (working copy) >> >> >> >> -------------------------- >> >> >> >> Patching file include/mpm_common.h using Plan A... >> >> >> >> patch: 3016-037 Malformed patch at line 9: -void >> >> >> >> ap_reclaim_child_processes(int terminate, >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> On Sun, Feb 26, 2012 at 10:53 PM, Michael Felt >> >> >> >> >> >> >> >> wrote: >> >> >> >>> >> >> >> >>> :) patch from AIX 6.1 works, starting build. >> >> >> >>> >> >> >> >>> >> >> >> >>> On Sun, Feb 26, 2012 at 10:52 PM, Michael Felt >> >> >> >>> >> >> >> >>> wrote: >> >> >> >>>> >> >> >> >>>> re: not exported... They are not in the .o files either (or i= s >> >> >> >>>> that >> >> >> >>>> because they are not exported?) >> >> >> >>>> >> >> >> >>>> >> >> >> >>>> On Sun, Feb 26, 2012 at 10:51 PM, Michael Felt >> >> >> >>>> >> >> >> >>>> wrote: >> >> >> >>>>> >> >> >> >>>>> I am not so smart I fear, and still no svm installed (workin= g >> >> >> >>>>> on >> >> >> >>>>> building gnudiff, but not done yet... >> >> >> >>>>> >> >> >> >>>>> root@x105:[/data/prj/httpd-2.4.1]patch -i *patch >> >> >> >>>>> Processing...=A0 I cannot find a patch in there anywhere. >> >> >> >>>>> >> >> >> >>>>> >> >> >> >>>>> >> >> >> >>>>> On Sun, Feb 26, 2012 at 10:44 PM, Jeff Trawick >> >> >> >>>>> >> >> >> >>>>> wrote: >> >> >> >>>>>> >> >> >> >>>>>> On Sun, Feb 26, 2012 at 3:30 PM, Michael Felt >> >> >> >>>>>> >> >> >> >>>>>> wrote: >> >> >> >>>>>> > Unfortunately, although it builds fine, it does not start= : >> >> >> >>>>>> > >> >> >> >>>>>> > httpd: Syntax error on line 143 of /etc/httpd/httpd.conf: >> >> >> >>>>>> > Cannot >> >> >> >>>>>> > load >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so into server: rtld: >> >> >> >>>>>> > 0712-001 >> >> >> >>>>>> > Symbol >> >> >> >>>>>> > ap_fatal_signal_setup was referenced\n=A0=A0=A0=A0=A0 fro= m module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> >> >>>>>> > definition\n=A0=A0=A0=A0=A0 of >> >> >> >>>>>> > the symbol was not found.\nrtld: 0712-001 Symbol >> >> >> >>>>>> > ap_pid_fname >> >> >> >>>>>> > was >> >> >> >>>>>> > referenced\n=A0=A0=A0=A0=A0 from module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), but a >> >> >> >>>>>> > runtime definition\n=A0=A0=A0=A0=A0 of the symbol was not >> >> >> >>>>>> > found.\nrtld: >> >> >> >>>>>> > 0712-001 >> >> >> >>>>>> > Symbol ap_reclaim_child_processes was referenced\n >> >> >> >>>>>> > from >> >> >> >>>>>> > module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> >> >>>>>> > definition\n=A0=A0=A0=A0=A0 of >> >> >> >>>>>> > the symbol was not found.\nrtld: 0712-001 Symbol >> >> >> >>>>>> > ap_relieve_child_processes >> >> >> >>>>>> > was referenced\n=A0=A0=A0=A0=A0 from module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), >> >> >> >>>>>> > but a runtime definition\n=A0=A0=A0=A0=A0 of the symbol w= as not >> >> >> >>>>>> > found.\nrtld: >> >> >> >>>>>> > 0712-001 >> >> >> >>>>>> > Symbol ap_graceful_shutdown_timeout was referenced\n >> >> >> >>>>>> > from >> >> >> >>>>>> > module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> >> >>>>>> > definition\n=A0=A0=A0=A0=A0 of >> >> >> >>>>>> > the symbol was not found.\nrtld: 0712-001 Symbol >> >> >> >>>>>> > ap_mpm_safe_kill >> >> >> >>>>>> > was >> >> >> >>>>>> > referenced\n=A0=A0=A0=A0=A0 from module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), but a >> >> >> >>>>>> > runtime definition\n=A0=A0=A0=A0=A0 of the symbol was not >> >> >> >>>>>> > found.\nrtld: >> >> >> >>>>>> > 0712-001 >> >> >> >>>>>> > Symbol ap_wait_or_timeout was referenced\n=A0=A0=A0=A0=A0= from module >> >> >> >>>>>> > /opt/httpd/libexec/mod_mpm_worker.so(), but a runtime >> >> >> >>>>>> > definition\n=A0=A0=A0=A0=A0 of >> >> >> >>>>>> > the symbol was not found.\n\t0509-021 Additional errors >> >> >> >>>>>> > occurred >> >> >> >>>>>> > but >> >> >> >>>>>> > are not >> >> >> >>>>>> > reported. >> >> >> >>>>>> > >> >> >> >>>>>> > I have been able to find a few of these routines in sourc= e >> >> >> >>>>>> > code, >> >> >> >>>>>> > e,g, >> >> >> >>>>>> > server/mpm_unix.c, but the routines are not included in >> >> >> >>>>>> > server/mpm_worker.o, >> >> >> >>>>>> > hence .... >> >> >> >>>>>> > >> >> >> >>>>>> > Suggestions welcome (other than filing a bug report). >> >> >> >>>>>> >> >> >> >>>>>> I guess the problem is that those MPM APIs are not decorate= d >> >> >> >>>>>> with >> >> >> >>>>>> AP_DECLARE() so they don't get added to httpd.exp so they >> >> >> >>>>>> don't >> >> >> >>>>>> get >> >> >> >>>>>> exported from httpd on AIX. >> >> >> >>>>>> >> >> >> >>>>>> Can you try the attached patch to mpm_common.h? >> >> >> >>>>> >> >> >> >>>>> >> >> >> >>>> >> >> >> >>> >> >> >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Born in Roswell... married an alien... >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> Born in Roswell... married an alien... >> > >> > >> >> >> >> -- >> Born in Roswell... married an alien... > > --=20 Born in Roswell... married an alien...