[CF-Devel] compile error with current CVS-server!

Mark Wedel mwedel at scruz.net
Tue Nov 14 21:46:12 CST 2000


 At least on my version of linux, that is defined in 
/usr/include/bits/socket.h. /usr/include/bits/socket.h gets included by
sys/socket.h and netinet.h/in.h (both of which are included by metaserver.c)


 On solaris, it exists in sys/socket.h.

 Can you try adding a '#include <sys/types.h>' line near the top of the
metaserver.c file and see if that fixes it?

 Without a system to reproduce it on, all I can do is toss out suggestions until
hopefully the right answer is found.


Andreas Vogl wrote:
>
     
     
     >
     
      I downloaded the server from CVS today and got
     
     >
     
      the following error on comiling (make):
     
     >
     
     
     >
     
      metaserver.c: In function `metaserver_update':
     
     >
     
      metaserver.c:109: `MSG_DONTWAIT' undeclared (first use in this function)
     
     >
     
      metaserver.c:109: (Each undeclared identifier is reported only once
     
     >
     
      metaserver.c:109: for each function it appears in.)
     
     >
     
      make[2]: *** [metaserver.o] Error 1
     
     >
     
      make[2]: Leaving directory `/home/av/crossfire/crossfire/socket'
     
     >
     
      make[1]: *** [../socket/socket.a] Error 2
     
     >
     
     
     >
     
      As most people will see, this error is cause by an undefined
     
     >
     
      constant 'MSG_DONTWAIT' in the new metaserver code (metaserver.c).
     
     >
     
      *glances at Mark*
     
     >
     
     
     >
     
      I´m using SuSE Linux. Peter M., using FreeBSD, has compiled as
     
     >
     
      well and did not get the error. Is 'MSG_DONTWAIT' supposed to
     
     >
     
      be defined in one of the system headers?
     
     >
     
     
     >
     
      Anyways, please remove that bug as fast as possible, it´s a serious
     
     >
     
      problem!
     
     >
     
     
     >
     
      Andreas V.
     
     >
     
     
     >
     
      _______________________________________________
     
     >
     
      crossfire-devel mailing list
     
     >
     
     
      crossfire-devel at lists.real-time.com
      
      
     >
     
     
      https://mailman.real-time.com/mailman/listinfo/crossfire-devel
      
      
     
    


More information about the crossfire mailing list