Menu

#2 FreeBSD compile problems...

open
nobody
None
5
2005-09-20
2005-09-20
No

I'm trying to compile Cabber on freeBSD and am getting
the following errors. I'm happy to test whatever patch
you pass me along.

gcc -o server.o -Wall -W -pedantic -O2 -mcpu=i386 -c
server.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
server.c:51: error: syntax error before "srv_resolve"
server.c:52: warning: return type defaults to `int'
server.c: In function `srv_resolve':
server.c:60: error: `u_long' undeclared (first use in
this function)
server.c:60: error: (Each undeclared identifier is
reported only once
server.c:60: error: for each function it appears in.)
server.c:60: error: syntax error before ')' token
server.c: In function `srv_connect':
server.c:76: error: storage size of 'name' isn't known
server.c:76: warning: unused variable `name'
server.c: In function `check_io':
server.c:276: error: syntax error before "fds"
server.c:283: warning: implicit declaration of function
`FD_ZERO'
server.c:283: error: `fds' undeclared (first use in
this function)
server.c:285: warning: implicit declaration of function
`FD_SET'
server.c:295: warning: implicit declaration of function
`select'
server.c:296: warning: implicit declaration of function
`FD_ISSET'
gmake: *** [server.o] Error 1

; gcc --version
gcc (GCC) 3.4.2 [FreeBSD] 20040728
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

; gmake --version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A
PARTICULAR PURPOSE.

; uname -a
FreeBSD raven.kierun.org 5.4-STABLE FreeBSD 5.4-STABLE
#5: Wed Jul 27 10:36:26 BST 2005
root@raven.kierun.org:/usr/obj/usr/src/sys/MYKERNEL i386

Discussion


Log in to post a comment.

MongoDB Logo MongoDB