home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 2060 
 James Digriz to All 
 GCC 8.3 compiler warnings on CentOS 8 
 02 Sep 20 17:59:46 
 
CHRS: UTF-8 4
MSGID: 1:123/755@fidonet 5a62c441
PID: MBSE-BBS 1.0.7.18 (GNU/Linux-x86_64)
TZUTC: -0400
TID: MBSE-FIDO 1.0.7.18 (GNU/Linux-x86_64)
Anyone else tried compiling on 8? Goes to completion but I'm getting piles of
warnings about string truncation and such. Eg: 

.
.
.

log.c: In function ‘dolastlog’:
log.c:89:2: warning: ‘strncpy’ specified bound 32 equals destination size
[-Wstringop-truncation]
  strncpy(newlog.ll_line, line, sizeof newlog.ll_line);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings 
-Wstrict-prototypes
-D_REENTRANT -I/usr/local/include   -c setugid.c
gcc -O2 -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings 
-Wstrict-prototypes
-D_REENTRANT -I/usr/local/include   -c mblogin.c
In file included from mblogin.c:32:
mblogin.c: In function ‘main’:
mblogin.c:541:44: warning: ‘%s’ directive output may be truncated writing
up to 8191 bytes into a region of size 507 [-Wformat-truncation=]
      snprintf(fromhost, sizeof fromhost, _(" on `%s' from `%s'"), tty, cp);
                                            ^~~~~~~~~~~~~~~~~~~~
.
.
.

Presumably this might be something to be concerned about, but I haven't tried
running the resulting code yet, and won't run it as a production system until
somebody with more current gcc knowledge than mine weighs in.

Appreciate any input,
jbdigriz    
                     

    Greetings, James Digriz
    email: jbdigriz@bbs.dragonsweb.org

--- MBSE BBS v1.0.7.18 (GNU/Linux-x86_64)
 * Origin: DragonsWeb Labs BBS 1:123/755 (1:123/755)
SEEN-BY: 1/123 18/200 90/1 120/340 123/130 226/30 227/114 229/101
SEEN-BY: 229/275 424 426 452 664 240/5832 249/206 317 400 292/854
SEEN-BY: 317/3 322/757 342/200 633/280
PATH: 123/755 3634/12 154/10 280/464 229/101 426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca