www/apache22: configure: error: Size of "void *" is less than size of "long"

Olli Hauer ohauer at FreeBSD.org
Fri Feb 18 22:02:10 UTC 2011


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 at 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 ...

$> cd /tmp

create a file named test.c and copy the following lines into the file

#include <stdio.h>
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 $?



More information about the freebsd-apache mailing list