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 99079115F8 for ; Sat, 21 Jun 2014 14:04:40 +0000 (UTC) Received: (qmail 6938 invoked by uid 500); 21 Jun 2014 14:04:40 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 6888 invoked by uid 500); 21 Jun 2014 14:04:40 -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 6876 invoked by uid 99); 21 Jun 2014 14:04:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2014 14:04:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hmonfared@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-we0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2014 14:04:37 +0000 Received: by mail-we0-f177.google.com with SMTP id u56so4789791wes.8 for ; Sat, 21 Jun 2014 07:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4sQHEkyo+OXAuv1FeJdymVrVKxoPyjP1+ImCztvcfNY=; b=wDDWxamr9Ehkbp4UZp321ZvzQexVLBIqW8+1QPbyCJYXiwP0aTq4cpXgYV+lYGXh0d y3WxWlEe7P9U0W2jXMfc9cbZJm6/1X9B9zAdg7vLggKbBiwei/ORkRwUxbuJKTeLThCi 95TP0s+aTzoBgdQ5ASJxjLnK4NLfCmf3WtYdwkG7J4v8d/GKv+r4eUiW9oKoL12NlOoo zFlkKx9SmcYrMNyD9LhytPcbm20udjmfJ0knVeinUxRZEvK9LOSx7xHboV+/rYaC8E4T PltpdVhq6+QeaCPyo31fJmodZyq8DOWAj3SHJ/4To4I49+6xrLLEXpvumyHhtflcjDd0 sDxw== MIME-Version: 1.0 X-Received: by 10.180.81.72 with SMTP id y8mr11578598wix.7.1403359451758; Sat, 21 Jun 2014 07:04:11 -0700 (PDT) Received: by 10.194.238.41 with HTTP; Sat, 21 Jun 2014 07:04:11 -0700 (PDT) In-Reply-To: References: <20140617133151.68ba1beb@baldur> Date: Sat, 21 Jun 2014 07:04:11 -0700 Message-ID: Subject: Re: Apache module development on Mac OS X From: Hassan Monfared To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=f46d04428cf49d4a5f04fc59153e X-Virus-Checked: Checked by ClamAV on apache.org --f46d04428cf49d4a5f04fc59153e Content-Type: text/plain; charset=UTF-8 Hi, first be sure that you've installed apr, then add -lapr-1 to compiler options ! Regards Hassan H. Monfared http://www.linkedin.com/pub/hassan-monfared/55/1b6/33 *I*men *R*ayaneh *S*hargh, +9821-26219590 CEO and technical manager My Public Key : -----BEGIN PGP PUBLIC KEY BLOCK----- Version: OpenPGP.js v.1.20130420 Comment: http://openpgpjs.org xsBNBFKAhwkBB/9vzP/63Qi92K1awWjmzUq9/Ik4ehgkr6wsTzcEu+7RSOM/ bObUKUtt8hEtvXcAuhtQp6SvSZt0QWIsKYYIS4k3FayGpDDyCZkfu7D5gGDg RoE9aLtVt/FEcECVA7id6jBzWXcw5wPW6edR1Xys3isGoUuXTGN3vuLgAD1z W5J9sCz+QcxJfzqDvyHT/LKU63tQ9qKqTom33tZeElulPSg3qrUw3MoWkNHH +W4Igo18JE3TUqFRQnrk9G+PgjJvmGlW9da/RsmOC0v1pbeGD8XHWIc6uj85 6dNK5Kg9QFLnKWOtqAjq0hdkOmfnp972hOeIB61/WQhus0XPqoAQyo1HABEB AAHNKEhhc3NhbiBILiBNb25mYXJlZCA8aG1vbmZhcmVkQGdtYWlsLmNvbT7C wFwEEAEIABAFAlKAhwsJEJokPHSAHUdmAADMBwf9GM+NSWGztN85zKSowrE3 cQMkaoWjMJDGCATBAcy2cEMrr3DEzy7RD5yuQWuJ37fyE0lz36QMNjee1ylG Y3fS7uR95rSJeFjW1/JpQC/q8edmzh1UTwLVJYae0Cp2w9IXY5GH1hCxjL8I kizaAjh2/MGDmD0+Nd+o2S0sBR9/yubhFQLFLDQfjUJHQjUGoL+kEVPM+nT6 ASscvo05lfjiVS2NeFOKLn2LI1LGCXgtz05hWPLgg6aE6v5VTA2ttF213dFA s1yUUeIEbDrDPuz5lg/w1CmeTrgMJNxBOCx6WaIKGInDQIQnJumAnwVa34Mw U7R60ek0jKKeRhbrOAag4w== =bOWD -----END PGP PUBLIC KEY BLOCK----- On Tue, Jun 17, 2014 at 6:45 AM, Jeff Trawick wrote: > On Tue, Jun 17, 2014 at 8:44 AM, Sindhi Sindhi > wrote: > > > Thankyou Nick. > > > > Actually I was looking at options to build the Apache module on systems > > where Apache server is not installed (and hence apxs is not available), > so > > that the module can be built on such build machines also. I can do this > on > > Windows and Linux, which provide the load-time linking options. > > > > When I created the Xcode project, I chose the below settings - > > 1) Framework and Library > > 2) C/C++ Library > > 3) Type = Dynamic > > 4) "Mach-O Type" = Dynamic Library > > > > Is there any alternate method to build Apache modules on Mac other that > > apxs since my target machines may not always have Apache server > installed. > > > > Regards, > > Sindhi > > > > Any recommended method would be based on the files in the build directory > in an httpd install, which apxs uses. See config_vars.mk, for example. > > Treat the httpd build support files as a prerequisite of your product > build. > > > > > > On Tue, Jun 17, 2014 at 6:01 PM, Nick Kew wrote: > > > > > On Tue, 17 Jun 2014 17:27:15 +0530 > > > Sindhi Sindhi wrote: > > > > > > > Any help will be highly appreciated. > > > > > > You're trying to build the module as a program. > > > You need to build it as a shared object (think DLL, > > > since you seem to be from a Windows background). > > > > > > Apache provides a tool to do that, with all the > > > right paths and linkage. Check apxs in the docs. > > > > > > -- > > > Nick Kew > > > > > > > > > -- > Born in Roswell... married an alien... > http://emptyhammock.com/ > http://edjective.org/ > --f46d04428cf49d4a5f04fc59153e--