Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33F3D185A7 for ; Thu, 7 Jan 2016 03:30:56 +0000 (UTC) Received: (qmail 3191 invoked by uid 500); 7 Jan 2016 03:30:55 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 3138 invoked by uid 500); 7 Jan 2016 03:30:55 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 3126 invoked by uid 99); 7 Jan 2016 03:30:55 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 03:30:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CCF4DC162C for ; Thu, 7 Jan 2016 03:30:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.524 X-Spam-Level: *** X-Spam-Status: No, score=3.524 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.626, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5M7NqyQrMmzc for ; Thu, 7 Jan 2016 03:30:54 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 992262026F for ; Thu, 7 Jan 2016 03:30:53 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id q21so239077542iod.0 for ; Wed, 06 Jan 2016 19:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yfAA/U8YwF6mG/IMTaLEPm/66gSSu6M/OTl09Ddn+Wo=; b=CDXPe3Z8qHG4niAW/ep2T2Xd4/xPBj2zahiIQ3Jvkns5L9caD8/jFbxXfcg18n7dj8 q6OARoNy05QJA480849E4VYEFNPElKWnd8tEvy6/9W6SRLDVrBfVvC0x0XQpx3L6pNmr jz2VSy1P1co6VJRwNBhtN2sQqkSIfD3n1jp3QvaMdEEheaYVtgT3dBm/I9crZkWcN+ZT /1TJg3BUT/lcymVd3v261OAmEJP4qUzT9c+PSDxB5Ufbsm14p8nJyn4ataeMmwu+U5P7 5yfyvg9yECpkrVI82SfZ9IU4VazsJt3ucBi77AhR4yZnB/Ndo1QPvQ5yZgL2FUtiHyH/ /ijw== MIME-Version: 1.0 X-Received: by 10.107.9.224 with SMTP id 93mr89108065ioj.112.1452137452432; Wed, 06 Jan 2016 19:30:52 -0800 (PST) Received: by 10.50.250.139 with HTTP; Wed, 6 Jan 2016 19:30:52 -0800 (PST) Date: Wed, 6 Jan 2016 21:30:52 -0600 Message-ID: Subject: dlopen a .so from a module From: Mark Taylor To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=001a113ebd7c0471040528b6193e --001a113ebd7c0471040528b6193e Content-Type: text/plain; charset=UTF-8 Hi all, I have a module that dlopens a .so, gets a handle to a function in the so and calls it. The function in the so calls ap_rputs. dlopen returns the error 'undefined symbol ap_rputs'. nm tells me ap_rputs is defined in httpd, and via some dark magic, httpd symbols are available to modules compiles the apxs -c. But when I compile my .so to be loaded into my module, the symbols from httpd aren't available. My hypothesis, now disproven, was that symbols available to my module would be visible to my .so. Does anyone have any insight into this process? How do modules resolve symbols from httpd, while my .so cannot? -Mark --001a113ebd7c0471040528b6193e--