Nп/п : 25 из 100
От : Eugene Subbotin 2:5075/35 04 сен 26 21:46:14
К : Vincent Coen 04 сен 26 22:06:02
Тема : Re: GoldED+ Unicode edition
----------------------------------------------------------------------------------
@MSGID: 2:5075/35@fidonet 6a9b1255
@REPLY: 2:250/1@fidonet 6a9af36c
@CHRS: UTF-8 4
@TZUTC: 0300
@TID: hpt/nbsd 1.9 2024-03-02
Hello Vincent!
Friday September 04 2026 17:28, you wrote to me:
VC> Nope but a lot less :
VC> /usr/bin/ld: ../goldlib/uulib/libuulib.a(uunconc.cpp.o): in function
VC> `UUDecode(_uulist*)`:
VC> uunconc.cpp:(.text+0x3592): warning: the use of `tempnam` is
VC> dangerous, better use `mkstemp` /usr/bin/ld:
VC> CMakeFiles/golded.dir/gedoit.cpp.o: in
VC> function `WriteMsgs(GMsg*)`: gedoit.cpp:(.text+0xa4f): warning: the
VC> use of `mktemp` is dangerous, better use `mkstemp` or
VC> `mkdtemp` /usr/bin/ld: ../goldlib/gall/libgall.a(gfilutl1.cpp.o): in
VC> function `TestLockPath(char const*)`: gfilutl1.cpp:(.text+0x84d):
VC> warning: the use of `mktemp` is dangerous, better use `mkstemp` or
VC> `mkdtemp` /usr/bin/ld: ../goldlib/gall/libgall.a(gfilutl1.cpp.o): in
VC> function `TestLockPath(char const*)`: gfilutl1.cpp:(.text+0x84d):
VC> warning: the use of `mktemp` is dangerous, better use `mkstemp` or
VC> `mkdtemp`
Nothing in what you pasted is an error; every line is a warning,
and the build has succeeded. The same tree on Ubuntu with GCC 15.2
gives 1666 warnings, exit code 0 and working binaries in bin/gedlnx,
bin/gnlnx, bin/rddtlnx; dist-gpl.sh also leaves ../gpl115-20260904.zip next to the
source directory. If the script had failed to produce a binary it would
have printed "File bin/gedlnx not exists, stop!".
The warnings come from -Wall -pedantic applied by GCC 15 to code
written for the compilers of 1999-2005; they are known, and none of them
is a defect the compiler found. dist-gpl.sh builds with GNU make, not
with CMake, so the add_compile_options(-w) line had no effect on it. The
make build has its own switch:
make PLATFORM=lnx GOLD_CC_WARNFLAGS=-w all strip
With it the compiler is silent; what is left are four notes from
the linker about mktemp/tempnam, which glibc emits at link time for any
program that calls them and which no compiler flag can suppress. Your
separate cmake CMakeLists.txt run, with -w, built golded3/golded,
goldnode/goldnode and rddt/rddt in the source tree; either set of binaries is fine
to use.
Eugene
... It`s full of stars!
--- GoldED+/BSD 1.1.5-b20260904 (NetBSD 11.0 Intel Core Haswell)
* Origin: FireFox Station (2:5075/35)
SEEN-BY: 50/109 103/705 104/117 124/5016 153/757
154/10 30 203/0 221/0 229/426
SEEN-BY: 240/1120 5832 263/1 280/464 1043 5003
5006 5555 292/854 8125 301/1
SEEN-BY: 310/31 341/66 234 396/45 423/120 452/166
460/16 58 256 1124 5858
SEEN-BY: 463/68 633/280 712/848 770/1 5000/111
5001/100 5015/46 5020/290 570
SEEN-BY: 5020/715 806 828 846 848 1042 1146 4441
8912 12000 5023/24 5030/49
SEEN-BY: 5030/1081 5034/13 5051/44 5053/58 5054/30
5057/19 5060/900 5061/133
SEEN-BY: 5075/35 128 5083/444 6035/3
@PATH: 5075/35 5020/4441 1042 460/58 280/464 5555
5020/715