error: Size of "void *" is less than size of "long"

Philip M. Gollucci pgollucci at
Wed Feb 10 02:12:41 UTC 2010

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 <stdio.h>

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.

1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Sr. System Admin,                 Ridecharge Inc.
Consultant,                       P6M7G8 Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

More information about the freebsd-apache mailing list