[Conquest] Help compiling 7.x version

Marisa Giancarla fstltna at yahoo.com
Thu Aug 30 02:52:51 MDT 2018


As you might have seen I run a 9.0 server and that is going fine. But I 
want to add the curses text version on my BBS and I would be running the 
server & client on the same host, doesnt have to allow input from 
outside servers. But I am trying to compile it and I get these errors:

===============

cc -O2 -fPIC -fno-builtin -DHAVE_CONFIG_H -DCONQHOME=\"/opt/conquest\"   
-c -o conqsvr42.o conqsvr42.c
conqsvr42.c: In function ‘comsize’:
conqsvr42.c:330:7: warning: cast from pointer to integer of different 
size [-Wpointer-to-int-cast]
    if ((int)EndOfCBlock > (int)CBlockRevision)
        ^
conqsvr42.c:330:26: warning: cast from pointer to integer of different 
size [-Wpointer-to-int-cast]
    if ((int)EndOfCBlock > (int)CBlockRevision)
                           ^
conqsvr42.c:331:11: warning: cast from pointer to integer of different 
size [-Wpointer-to-int-cast]
      val = (int)EndOfCBlock - (int)CBlockRevision;
            ^
conqsvr42.c:331:30: warning: cast from pointer to integer of different 
size [-Wpointer-to-int-cast]
      val = (int)EndOfCBlock - (int)CBlockRevision;
                               ^
conqsvr42.c:333:11: warning: cast from pointer to integer of different 
size [-Wpointer-to-int-cast]
      val = (int)CBlockRevision - (int)EndOfCBlock;
            ^
conqsvr42.c:333:33: warning: cast from pointer to integer of different 
size [-Wpointer-to-int-cast]
      val = (int)CBlockRevision - (int)EndOfCBlock;
                                  ^
In file included from c_defs.h:103:0,
                  from conqsvr42.c:1:
conqsvr42.c: In function ‘gcputime’:
conqsvr42.c:616:10: error: ‘CLK_TCK’ undeclared (first use in this function)
     (real)CLK_TCK) *
           ^
conqdef.h:569:36: note: in definition of macro ‘round’
  #define round(x) ((int)rint((real)(x))) /* int round */
                                     ^
conqsvr42.c:616:10: note: each undeclared identifier is reported only 
once for each function it appears in
     (real)CLK_TCK) *
           ^
conqdef.h:569:36: note: in definition of macro ‘round’
  #define round(x) ((int)rint((real)(x))) /* int round */
                                     ^
conqsvr42.c: In function ‘isagod’:
conqsvr42.c:674:23: warning: implicit declaration of function ‘cuserid’ 
[-Wimplicit-function-declaration]
        strncpy(myname, cuserid(NULL), BUFFER_SIZE - 2);
                        ^
conqsvr42.c:674:23: warning: passing argument 2 of ‘strncpy’ makes 
pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/features.h:367:0,
                  from /usr/include/limits.h:25,
                  from 
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:168,
                  from 
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h:7,
                  from 
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h:34,
                  from c_defs.h:24,
                  from conqsvr42.c:1:
/usr/include/x86_64-linux-gnu/bits/string3.h:123:1: note: expected 
‘const char * restrict’ but argument is of type ‘int’
  __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
  ^
<builtin>: recipe for target 'conqsvr42.o' failed
make: *** [conqsvr42.o] Error 1

===============


Anyone have any ideas?


Marisa



More information about the Conquest mailing list