Compile problems
From
M1ch43l@1:103/705 to
All on Fri Apr 6 08:58:44 2018
Hi guys,
I am trying to compile the latest build of Synchronet, but i get the
following error:
Compiling xtrn.cpp
xtrn.cpp: In member function aint sbbs_t::external(const char*, long int,
const char*)A:
xtrn.cpp:1452:8: error: apA was not declared in this scope
if(*(p=lastchar(str))=='/') /* kill trailing slash */
^
xtrn.cpp:1454:7: error: apA was not declared in this scope
if((p=strrchr(str,'/'))!=NULL) /* kill the last element of the path */
^
In file included from ../comio/comio.h:41:0,
from sbbs.h:107,
from xtrn.cpp:39:
xtrn.cpp:1462:38: error: apA was not declared in this scope
REPLACE_CHARS(ctrldir_dos,'/','\\',p);
^ /sbbs/src/sbbs3/../xpdev/gen_defs.h:396:46: note: in definition of macro aREPLACE_CHARSA
#define REPLACE_CHARS(str,c1,c2,p) for((p)=(str);*(p);(p)++) if(* (p)==(c1)) *(p)=(c2);
^
xtrn.cpp:1516:22: warning: format not a string literal and no format
arguments [-Wformat-security]
fprintf(stderr, str);
^
xtrn.cpp:1804:22: warning: ignoring return value of aint daemon(int, int)A, declared with attribute warn_unused_result [-Wunused-result]
daemon(TRUE,FALSE);
^
xtrn.cpp:1847:30: warning: ignoring return value of assize_t write(int,
const void*, size_t)A, declared with attribute warn_unused_result [- Wunused-result]
write(in_pipe[1],buf,wr);
^
/sbbs/src/sbbs3/../build/Common.gmake:451: recipe for target 'gcc.linux.x64.obj.release-mt/xtrn.o' failed
make[1]: *** [gcc.linux.x64.obj.release-mt/xtrn.o] Error 1
make[1]: Leaving directory '/sbbs/src/sbbs3'
GNUmakefile:151: recipe for target 'sbbs3' failed
Is this maybe a bug?
Greetingz,
Michael
---
* Synchronet * AlcaBBS - bbs.alcatrash.org
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)