[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling 2.9.2 on BSD 386 1.1



> $ cwis:~/irc2.9.2/BSD-386-1.1> make
> Building ircd
> make[1]: Entering directory `/usr/home/bates/irc2.9.2/BSD-386-1.1'
> cc -g -O -DHAVE_CONFIG_H -I. -I../include -c ../ircd/channel.c
> In file included from ../include/struct.h:29, from ../ircd/channel.c:39:
> /usr/include/netinet/in.h:75: redefinition of `struct in_addr'
> In file included from ../include/netdb.h:66, from ../include/struct.h:36, 
> /usr/include/netinet/in.h:125: redefinition of `struct sockaddr_in'
> from ../ircd/channel.c:39:
> ../include/bitypes.h:67: redefinition of `int8_t'
> /usr/include/machine/types.h:59: here is the previous declaration of 
> `int8_t'

I don't have personally access on BSDI, but someone else told about
the bitypes problems earlier. It looked like to be problem with 
ancient gcc version used in BSDI (v1.x). Try following diff:

*** orig/irc2.9.2/include/sys.h Sat Aug 24 20:23:27 1996
--- irc2.9.2/include/sys.h      Sun Dec  1 21:54:00 1996
***************
*** 39,42 ****
  # include <sys/bitypes.h>
! #elif (!defined(BSD)) || (BSD < 199306)
! # include "bitypes.h"
  #endif
--- 39,44 ----
  # include <sys/bitypes.h>
! #else
! # if (!defined(BSD)) || (BSD < 199306)
! #  include "bitypes.h"
! # endif
  #endif

Or even better, try upgrading to gcc-2.7.2.1 & co.
-- 
<A HREF="http://www.lut.fi/~ruokonen/";> Vesa.Ruokonen@xxxxxx </A>