From owner-freebsd-apache@FreeBSD.ORG Wed Feb 10 10:30:17 2010 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E7E9106566B for ; Wed, 10 Feb 2010 10:30:17 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by mx1.freebsd.org (Postfix) with ESMTP id CF1138FC15 for ; Wed, 10 Feb 2010 10:30:14 +0000 (UTC) Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 15E3E940194; Wed, 10 Feb 2010 11:30:10 +0100 (CET) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g21.free.fr (Postfix) with ESMTP id 33950940134; Wed, 10 Feb 2010 11:30:08 +0100 (CET) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 1B04133E4E; Wed, 10 Feb 2010 10:30:08 +0000 (UTC) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id ED44CA1128; Wed, 10 Feb 2010 10:30:07 +0000 (UTC) Date: Wed, 10 Feb 2010 11:30:07 +0100 From: Jeremie Le Hen To: "Philip M. Gollucci" Message-ID: <20100210103007.GI60054@felucia.tataz.chchile.org> References: <20100209221846.GD60054@felucia.tataz.chchile.org> <20100209222117.GE60054@felucia.tataz.chchile.org> <4B721611.5040509@p6m7g8.com> <20100210101456.GH60054@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100210101456.GH60054@felucia.tataz.chchile.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-apache@freebsd.org, Jeremie Le Hen Subject: Re: error: Size of "void *" is less than size of "long" X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2010 10:30:17 -0000 Philip, On Wed, Feb 10, 2010 at 11:14:57AM +0100, Jeremie Le Hen wrote: > Hi Philip, > > On Tue, Feb 09, 2010 at 09:12:33PM -0500, Philip M. Gollucci wrote: > > On 2/9/2010 5:21 PM, Jeremie Le Hen wrote: > > > Forgot the attachments :). > > > > Your system is confused!! The problem isn't the port is something local > > in your system or config or some odd cross compile foobar. > > > > $ ./size > > sizeof(long) = 4 > > sizeof(void*) = 4 > > > > Can you run this please and post your output ? > > > > #include > > > > int main (int argc, char **argv) { > > > > (void)fprintf(stdout, "sizeof(long) = %d\n", sizeof(long)); > > (void)fprintf(stdout, "sizeof(void*) = %d\n", sizeof(void*)); > > > > return 0; > > } > > > > If either of them are '8' I'd look towards cross compile foobars. > > Actually, I had already extracted the guilty test from the configure > script and it didn't return an error when run manually: > > axl# cat /tmp/test.c > int main(void) > { > return sizeof(void *) < sizeof(long); > } > axl# gcc -o /tmp/test /tmp/test.c > axl# /tmp/test ; echo $? > 0 > > Here is your test program: > > axl# cat > /tmp/test2.c > #include > > int main (int argc, char **argv) { > > (void)fprintf(stdout, "sizeof(long) = %d\n", sizeof(long)); > (void)fprintf(stdout, "sizeof(void*) = %d\n", sizeof(void*)); > > return 0; > } > ^Daxl# gcc -o /tmp/test2 /tmp/test2.c > axl# /tmp/test2 > sizeof(long) = 4 > sizeof(void*) = 4 > > I am utterly puzzled. I don't have any local change. Actually, the error message was misleading. I've found the following error message in the config.log file: /usr/local/lib/libpcre.so: undefined reference to `__stack_chk_fail_local' I don't know why it happens since we have this symbol in libc. I'm rebuilding devel/pcre right now, I think it will fix the problem. Regards, -- Jeremie Le Hen Humans are born free and equal. But some are more equal than the others. Coluche