From dev-return-90921-archive-asf-public=cust-asf.ponee.io@httpd.apache.org Fri Jan 26 19:54:18 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 5E4B4180657 for ; Fri, 26 Jan 2018 19:54:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4E244160C3E; Fri, 26 Jan 2018 18:54:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 94B4C160C2E for ; Fri, 26 Jan 2018 19:54:17 +0100 (CET) Received: (qmail 21431 invoked by uid 500); 26 Jan 2018 18:54:16 -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 21422 invoked by uid 99); 26 Jan 2018 18:54:16 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2018 18:54:16 +0000 Received: from gauss.localdomain (unknown [217.61.194.153]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6D9441A0110 for ; Fri, 26 Jan 2018 18:54:14 +0000 (UTC) Received: from [IPv6:::1] (localhost [IPv6:::1]) by gauss.localdomain (Postfix) with ESMTP id 80AEB19ED for ; Fri, 26 Jan 2018 19:54:09 +0100 (CET) Subject: Re: event.c not building in some configurations To: dev@httpd.apache.org References: <90E51A72-0728-473E-9019-A66A7001033D@greenbytes.de> <2b038725-c77c-792b-8c81-eec8a0f70c1d@apache.org> From: Ruediger Pluem Message-ID: <164726c4-fb6d-e0db-e980-ce8cad1b4ee4@apache.org> Date: Fri, 26 Jan 2018 19:54:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 01/26/2018 04:57 PM, Yann Ylavic wrote: > On Fri, Jan 26, 2018 at 4:11 PM, Ruediger Pluem wrote: >> >> When I try to start httpd I get >> >> Cannot load modules/mod_mpm_event.so into server: /usr/src/apache/apache_trunk/modules/mod_mpm_event.so: undefined >> symbol: ap_queue_info_wait_for_idler > > Why this one is particular (and not the other ap_queue*() functions)??? I don't know :-) > >> >> Index: server/mpm_fdqueue.c >> =================================================================== >> --- server/mpm_fdqueue.c (revision 1822275) >> +++ server/mpm_fdqueue.c (working copy) >> @@ -145,7 +145,7 @@ >> } >> } >> >> -apr_status_t ap_queue_info_wait_for_idler(fd_queue_info_t *queue_info, >> +AP_DECLARE(apr_status_t) ap_queue_info_wait_for_idler(fd_queue_info_t *queue_info, >> int *had_to_block) >> { >> apr_status_t rv; >> Index: server/mpm_fdqueue.h MPM >> =================================================================== >> --- server/mpm_fdqueue.h (revision 1822275) >> +++ server/mpm_fdqueue.h (working copy) >> @@ -51,7 +51,7 @@ >> apr_status_t ap_queue_info_set_idle(fd_queue_info_t *queue_info, >> apr_pool_t *pool_to_recycle); >> apr_status_t ap_queue_info_try_get_idler(fd_queue_info_t *queue_info); >> -apr_status_t ap_queue_info_wait_for_idler(fd_queue_info_t *queue_info, >> +AP_DECLARE(apr_status_t) ap_queue_info_wait_for_idler(fd_queue_info_t *queue_info, >> int *had_to_block); >> apr_uint32_t ap_queue_info_num_idlers(fd_queue_info_t *queue_info); >> apr_status_t ap_queue_info_term(fd_queue_info_t *queue_info); I guess the above causes it to be added to the generated exports.c. > > I really makes few sense to me, and smells something like > "-Wl,--whole-archive,-lmain,--no-whole-archive" is missing at link > time. Without it, libtool (or?) seems to have some heuristic to detect > whether the functions are "really" used and does not include them > otherwise. > It bit me quite somes times already (not in httpd, though), and never > really understood why... > I'{d,ll} try this for testing... > > Regards RĂ¼diger