Trying to complie mman 2.0.1 on FreeBSD 4.8-Release.
When I run gmake:
g++ -c -g -O2 -Iinclude -I. -Wall -Wno-sign-compare -Wno-unknown-pragmas -Wno-format -D_GNU_SOURCE -DVERSION=\"2.0.1\" -DHAVE_CONFIG_H -D_REENTRANT src/global.c -o src/global.o
In file included from include/proto.h:44,
from src/global.c:23:
include/types.h:38: `CONNECTION' was not declared in this scope
include/types.h:38: syntax error before `)'
include/types.h:39: `CONNECTION' was not declared in this scope
include/types.h:39: syntax error before `)'
include/types.h:246: syntax error before `&'
include/types.h:255: syntax error before `&'
include/types.h:263: syntax error before `&'
include/types.h:270: syntax error before `&'
include/types.h:298: syntax error before `{'
gmake: *** [src/global.o] Error 1
Any hints or help woould be appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After trying various versions of GCC and FreeBSD, I still can't get the damn thing to compile. I've tried FreeBSD 4.5, 4.8, 5.0, 5.2, and GCC from 2.95 all the way through 3.4.
It compiles right out of the box on Linux.
Any hints? Help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey all,
Trying to complie mman 2.0.1 on FreeBSD 4.8-Release.
When I run gmake:
g++ -c -g -O2 -Iinclude -I. -Wall -Wno-sign-compare -Wno-unknown-pragmas -Wno-format -D_GNU_SOURCE -DVERSION=\"2.0.1\" -DHAVE_CONFIG_H -D_REENTRANT src/global.c -o src/global.o
In file included from include/proto.h:44,
from src/global.c:23:
include/types.h:38: `CONNECTION' was not declared in this scope
include/types.h:38: syntax error before `)'
include/types.h:39: `CONNECTION' was not declared in this scope
include/types.h:39: syntax error before `)'
include/types.h:246: syntax error before `&'
include/types.h:255: syntax error before `&'
include/types.h:263: syntax error before `&'
include/types.h:270: syntax error before `&'
include/types.h:298: syntax error before `{'
gmake: *** [src/global.o] Error 1
Any hints or help woould be appreciated!
Which version of g++? I used 3.4.1 (on linux 2.6) and it worked with just a few niggles. I bet the g++ version matters a lot more than the OS.
Im using:
gcc version 2.95.4 20020320 [FreeBSD]
Hehe... I need to update to gcc3.... rats!
After trying various versions of GCC and FreeBSD, I still can't get the damn thing to compile. I've tried FreeBSD 4.5, 4.8, 5.0, 5.2, and GCC from 2.95 all the way through 3.4.
It compiles right out of the box on Linux.
Any hints? Help?