From owner-freebsd-apache@FreeBSD.ORG Sat Feb 19 13:22:24 2011 Return-Path: Delivered-To: apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 376CD1065700 for ; Sat, 19 Feb 2011 13:22:24 +0000 (UTC) (envelope-from syncman0x@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id E3AE58FC12 for ; Sat, 19 Feb 2011 13:22:23 +0000 (UTC) Received: by yie19 with SMTP id 19so2005841yie.13 for ; Sat, 19 Feb 2011 05:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ggHipR+KW+XlbcY3Ww1zCizTIne9FInkYZuU2hN4u+g=; b=toiLKLJSGLs0KofCua6hHvQRs3AxfWKdnA5aIW/XhKBz/P8ErR2TLObZRrfj7BmwpD QAxSAzGYzUmb7ppfMNmVW8CS5B22IIcis8BX1jLbfZlqk6te29f092htO57+FNmYm5O3 NhSb6NFSIVLO3yyAUPScOuHakKtDF0dRYIEAY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=mW+nNV72v8DYeJNY5Tj/fF2nWqcFnEzhPNDDw9isV491P7kz8WwZGLt/7Mq2zUjLjf BOpYBOzW+US06cmMubPFvmjBoot7Zh3tUuQdJXUwn9aUlJSFZTpqqA9TDUz+X5VMbvN+ TmEU/ADhAk5rEU1CrN0NV+vvK2ftU3xCJ5H4A= Received: by 10.90.29.18 with SMTP id c18mr2606040agc.142.1298121742654; Sat, 19 Feb 2011 05:22:22 -0800 (PST) Received: from [192.168.1.37] ([115.30.33.36]) by mx.google.com with ESMTPS id i10sm652709anh.32.2011.02.19.05.22.19 (version=SSLv3 cipher=OTHER); Sat, 19 Feb 2011 05:22:21 -0800 (PST) Message-ID: <4D5FC408.4050102@gmail.com> Date: Sun, 20 Feb 2011 00:22:16 +1100 From: Andrew Sinclair User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: ohauer@FreeBSD.org References: <4D5BAB5B.2010501@gmail.com> <4D5EEC68.1030507@FreeBSD.org> In-Reply-To: <4D5EEC68.1030507@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: apache@FreeBSD.org Subject: Re: www/apache22: configure: 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: Sat, 19 Feb 2011 13:22:24 -0000 On 19/02/11 09:02, Olli Hauer wrote: > On 2011-02-16 11:47, Andrew Sinclair wrote: >> Configuration fails in relation to a primitive type: >> Size of "void *" is less than size of "long" >> >> As requested by script, config.log is attached. >> Compilation attempt 1,2 in install.txt attached. >> Output of attempt 2 follows: >> >> [ Wed Feb 16 ] [ 21:06:43 ] root@q-73-exe:/usr/ports/www/apache22 >> # (date;time make install;date)|tee -a install.txt >> Wed Feb 16 21:07:06 CST 2011 > [...] >> checking for void pointer length... yes >> configure: error: Size of "void *" is less than size of "long" > This error is strange ... I agree, and it is indeed my doing. The problem began with trouble understanding the freebsd-update script. This has now been resolved. > $> cd /tmp > > create a file named test.c and copy the following lines into the file > > #include > int main(void) > { > printf("sizeof(void *) = %d ; sizeof(long) = %d\n", > sizeof(void *), sizeof(long)); > return sizeof(void *) < sizeof(long); > } > > > Now build the file with the following command (note, no file extension) > $> make test > > and send us the output of the following command > $> ./test; echo $? > [[ at 8.1-RELEASE (where this error is repeatable) ]] [ Sat Feb 19 ] [ 23:42:24 ] sync1x73@q-73-exe:~/2011/02-19 $ make test cc -O2 -pipe test.c -o test [ Sat Feb 19 ] [ 23:42:26 ] sync1x73@q-73-exe:~/2011/02-19 $ uname -a FreeBSD q-73-exe.z.asyn1c.net 8.1-RELEASE FreeBSD 8.1-RELEASE #3 r210190: Sat Jul 17 16:30:44 PDT 2010 root@build8x64.pcbsd.org:/usr/obj/storage/fbsd-sources/8.1/sys/GENERIC amd64 [ Sat Feb 19 ] [ 23:42:28 ] sync1x73@q-73-exe:~/2011/02-19 $ ./test sizeof(void *) = 8 ; sizeof(long) = 8 [[ at 8.2-RC3 (no longer any such error) ]] [ Sat Feb 19 ] [ 17:03:45 ] sync1x73@q-73-exe:~/2011/02-19 $ uname -a FreeBSD q-73-exe.z.asyn1c.net 8.2-RC3 FreeBSD 8.2-RC3 #0: Sun Jan 30 06:28:31 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 [ Sat Feb 19 ] [ 17:03:47 ] sync1x73@q-73-exe:~/2011/02-19 $ ./test sizeof(void *) = 8 ; sizeof(long) = 8 The system is of the Intel Xeon 5000X variety At 8.1-RELEASE, I had used portsnap only, and had not touched the kernel or the base system sources. I was under the impression that there would be no linking issues if only the ports collection was updated. Philip is right, my ports and system were out of sync.