Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-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 6E07210B4D for ; Tue, 20 Aug 2013 17:56:42 +0000 (UTC) Received: (qmail 88607 invoked by uid 500); 20 Aug 2013 17:56:41 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 88500 invoked by uid 500); 20 Aug 2013 17:56:41 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 88489 invoked by uid 99); 20 Aug 2013 17:56:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 17:56:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [76.96.62.16] (HELO qmta01.westchester.pa.mail.comcast.net) (76.96.62.16) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 17:56:32 +0000 Received: from omta17.westchester.pa.mail.comcast.net ([76.96.62.89]) by qmta01.westchester.pa.mail.comcast.net with comcast id F0X71m0061vXlb8515vrJm; Tue, 20 Aug 2013 17:55:51 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.106.98]) by omta17.westchester.pa.mail.comcast.net with comcast id F5vr1m00227QCxh3d5vrdD; Tue, 20 Aug 2013 17:55:51 +0000 Message-ID: <5213ADA4.3020102@christopherschultz.net> Date: Tue, 20 Aug 2013 13:55:48 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Need guidance for writing unit tests for 55317 References: <9E11E591-EB01-49BC-A33F-120B9D184AD4@nicholaswilliams.net> <52136E61.9060800@apache.org> <52138772.5080400@christopherschultz.net> <5213A69E.6040303@christopherschultz.net> <5213AA4B.5030200@christopherschultz.net> In-Reply-To: <5213AA4B.5030200@christopherschultz.net> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oKLFljH5WXEdMinShSBkVsELiQeX8f3i1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1377021351; bh=jEPVqG4os6N5hZ5kRZRNt2Xp+gZvIWj7hDGISjChhMk=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=BFwkFqGZx/i6IdNwAE4rcNyghXL96PlRlkHOSnZezNJacF7o8RvXl47dgH/pXyKs5 rnIVClK06+YRGwcysO9pXkbsLOhnNY/09pTbbxJVlw6ZJlxYuBJCeipUN6BcCrwkrU 6284q3m2mONNQO0khJcyXgM4GUdnTHpNKF7quYcVyNkWkKL4NYLWDfuB0vYR7bTQr0 ExwbKCnzKJqsgVEiFNNiJLo5z7HYtKp3MLTHS7TtfYwVKh1ah9vOYcfBY/2D5/PRB0 XQcacZ+5+bUY/RknmrYmqXkGXnltkja7TadLo67elQY+imbUYSbsuNO9v7ombpilKm VmMpOoo9EAsNQ== X-Virus-Checked: Checked by ClamAV on apache.org --oKLFljH5WXEdMinShSBkVsELiQeX8f3i1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Nick, On 8/20/13 1:41 PM, Christopher Schultz wrote: > Nick, >=20 > On 8/20/13 1:25 PM, Christopher Schultz wrote: >> tcnative can be built on Max OS X like this: >> >> $ cd $CATALINA_HOME/bin >> $ tar xzf tomcat-native.tar.gz >> $ cd tomcat-native-*-src/jni/native >> $ ./configure --with-apr=3D/usr/bin/apr-1-config --with-ssl >> --with-java-home=3D`/usr/libexec/java_home` >> >> At this point, configure chokes on my system because it's trying to fi= nd >> 'cc' under Xcode.app and I'm not sure where it's sniffing that directo= ry >> base from. Maybe you'll have better luck. I'll reply if I figure it ou= t. >=20 > Okay, it seems that apr-1-config is giving the wrong path for 'cc' to > configure. I'm investigating... Okay, you can simply trump apr-1-config's (incorrect) path for cc like th= is: $ CC=3D/usr/bin/gcc ./configure --with-apr=3D/usr/bin/apr-1-config --with-ssl --with-java-home=3D`/usr/libexec/java_home` Unfortunately, make then chokes with a similar problem, and make doesn't want to allow you to override CC on the command-line. Instead, I had to hack /usr/share/apr-1/build-1/apr_rules.mk and modify the existing CC definition: CC=3D/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctool= chain/usr/bin/cc =2E.. to instead point to where cc actually lives: CC=3D/usr/bin/gcc I had to re-run ./configure (as above, including the CC=3D... stuff) and now make is complaining about something else: $ make /bin/sh /usr/share/apr-1/build-1/libtool --silent --mode=3Dcompile /usr/bin/gcc -g -Os -pipe -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -DHAVE_OPENSSL -I/Users/chris/packages/apache-tomcat-7.0.42/bin/temp/tomcat-native-1.1.2= 7-src/jni/native/include -I/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/include= -I/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/includ= e/darwin -I/usr/include/apr-1 -o src/address.lo -c src/address.c && touch src/address.lo libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' make[1]: *** [src/address.lo] Error 1 make: *** [all-recursive] Error 1 :( -chris --oKLFljH5WXEdMinShSBkVsELiQeX8f3i1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSE62kAAoJEBzwKT+lPKRYBHUQAMCX6KqPffAOtxUYaDloWoYj H7h8vOn/h37a2fZdkhC18wwo7VQqlL9cte0KHQ4RBoL8ft3Fqpllw1os0Vu48G2k HmGnc/iTHTCe1Tsj9TefW9E/FU7mtp9H24yMoQazL/tmPZdZZ1aLxPYISmK0om1J svwOlYEKYYh8aZ/bOPg7kVBElKPYAj541mUMx35rSsWwC8lWfh4rGFSVckXB0csn C56OXJ7IAJU/vs7Ix0dc2pvonzwR4WAEcOqEZ1VnYM7EEBElFD5FYFkI/LZIJkxL xdShaou2SWUjhNGYQ6dFYeATPMTCZNf81GYrNow2ZKMukuBk5Q07705zHCIQGRGP ZRqzOqVYuMnONB5mmd5lyLxMzn5SW9WG5YCJT47+XgcukRkQZ3AKHq/d9TxbxSY0 xUivhz1ug6d5UN6O1wlu3/nFViQRSdfWMVs4ZON0cYRKcB5MhmnuLTSJc4VK4drj QmLKZPrP2oJ79hKrFe4IJXnlW+gDc0XOqerkXcqX7QQ91qhXYyT3vW59xfQSVyPX Fm5XKeVHEhYlF/Lr8LAWZ1ZhilE7s0kiOsMAtTLM4iqOU3/Yzhf64tCmnEarrLxt ku1EYAJxJjurQSaY66Ovh41O5MfS9cMv3Ti8V8NsDJQK/6srtVmfXwlNmJpV/IN+ YubO29IOIl5b9GAZFfYW =vh98 -----END PGP SIGNATURE----- --oKLFljH5WXEdMinShSBkVsELiQeX8f3i1--