D: [iurt_root_command] chroot warning: line 25: It's not recommended to have unversioned Obsoletes: Obsoletes: lincity Installing /home/pterjan/rpmbuild/SRPMS/lincity-ng-2.9-0.beta.12.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.O9QbSV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lincity-ng-2.9.beta + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/lincity-ng-2.9.beta.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd lincity-ng-2.9.beta + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jDqKAn + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lincity-ng-2.9.beta + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./mk/autoconf/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./mk/autoconf/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./mk/autoconf/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./mk/autoconf/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./mk/autoconf/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./mk/autoconf/config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --bindir=/usr/games --datadir=/usr/share/games --with-gzip --with-svga --with-x --disable-rpath configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-gzip, --with-svga checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for x86_64-mageia-linux-gnu-g++... no checking for x86_64-mageia-linux-gnu-c++... no checking for x86_64-mageia-linux-gnu-gpp... no checking for x86_64-mageia-linux-gnu-aCC... no checking for x86_64-mageia-linux-gnu-CC... no checking for x86_64-mageia-linux-gnu-cxx... no checking for x86_64-mageia-linux-gnu-cc++... no checking for x86_64-mageia-linux-gnu-cl.exe... no checking for x86_64-mageia-linux-gnu-FCC... no checking for x86_64-mageia-linux-gnu-KCC... no checking for x86_64-mageia-linux-gnu-RCC... no checking for x86_64-mageia-linux-gnu-xlC_r... no checking for x86_64-mageia-linux-gnu-xlC... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking for xgettext... xgettext checking for xsltproc... xsltproc checking whether g++ is new enough... yes checking for x86_64-mageia-linux-gnu-gcc... no checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether time.h and sys/time.h may both be included... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for gettimeofday... yes checking for mkdir... yes checking for popen... yes checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking whether binary relocation support should be enabled... no checking for zlib... found checking for pkg-config... /usr/bin/pkg-config checking for libxml-2.0 >= 2.6.11... yes checking LIBXML_CFLAGS... -I/usr/include/libxml2 checking LIBXML_LIBS... -lxml2 checking for X... libraries , headers checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for cc_r... gcc checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether we are using the Microsoft C compiler... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for OpenGL library... -lGL checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.2.14... yes checking for SDL_mixer >= 1.2... found checking for SDL_image >= 1.2... found checking for SDL_ttf >= 2.0.8... found checking for SDL_gfx >= 2.0.13... found checking for physfs >= 1.0.0... found configure: creating ./config.status config.status: creating Jamconfig config.status: creating config.h config.status: executing Jamfile commands configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-gzip, --with-svga configure: Notice: This project uses jam (and not make) as build tool. + jam -j12 ...found 845 target(s)... ...updating 137 target(s)... MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/gui MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterGL MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterSDL MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/PhysfsStream MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/tinygettext MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/lincity MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng MkDir1 ./build/x86_64-mageia-linux-gnu/optimize/src/tools/xmlgettext XGetText data/locale/messages.pot C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/DocumentImage.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/ComponentFactory.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/Rect2D.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterGL/PainterGL.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterSDL/TextureManagerSDL.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/PhysfsStream/PhysfsStream.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/tinygettext/tinygettext.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/lintypes.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/oremine.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/EconomyGraph.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/tools/xmlgettext/main.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/tools/xmlgettext/XmlReader.o src/PhysfsStream/PhysfsStream.cpp: In constructor 'IFileStreambuf::IFileStreambuf(const std::string&)': src/PhysfsStream/PhysfsStream.cpp:30:35: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 30 | << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/PhysfsStream/PhysfsStream.hpp:22, from src/PhysfsStream/PhysfsStream.cpp:18: /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/PhysfsStream/PhysfsStream.cpp: In member function 'virtual int IFileStreambuf::underflow()': src/PhysfsStream/PhysfsStream.cpp:46:44: warning: 'PHYSFS_sint64 PHYSFS_read(PHYSFS_File*, void*, PHYSFS_uint32, PHYSFS_uint32)' is deprecated [-Wdeprecated-declarations] 46 | size_t bytesread = (size_t) PHYSFS_read(file, buf, 1, sizeof(buf)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/physfs.h:1333:27: note: declared here 1333 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_read(PHYSFS_File *handle, | ^~~~~~~~~~~ src/PhysfsStream/PhysfsStream.cpp: In constructor 'OFileStreambuf::OFileStreambuf(const std::string&)': src/PhysfsStream/PhysfsStream.cpp:62:35: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 62 | << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/PhysfsStream/PhysfsStream.cpp: In member function 'virtual int OFileStreambuf::overflow(int)': src/PhysfsStream/PhysfsStream.cpp:82:37: warning: 'PHYSFS_sint64 PHYSFS_write(PHYSFS_File*, const void*, PHYSFS_uint32, PHYSFS_uint32)' is deprecated [-Wdeprecated-declarations] 82 | PHYSFS_sint64 res = PHYSFS_write(file, pbase(), 1, size); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/physfs.h:1362:27: note: declared here 1362 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_write(PHYSFS_File *handle, | ^~~~~~~~~~~~ src/PhysfsStream/PhysfsStream.cpp:87:41: warning: 'PHYSFS_sint64 PHYSFS_write(PHYSFS_File*, const void*, PHYSFS_uint32, PHYSFS_uint32)' is deprecated [-Wdeprecated-declarations] 87 | PHYSFS_sint64 res = PHYSFS_write(file, &c, 1, 1); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/physfs.h:1362:27: note: declared here 1362 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_write(PHYSFS_File *handle, | ^~~~~~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/main.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/MpsInterface.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/PbarInterface.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/ButtonInterface.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Util.o In file included from src/gui/ComponentFactory.cpp:109: src/gui/Gradient.hpp:54:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 54 | std::auto_ptr texture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/gui/ComponentFactory.hpp:29, from src/gui/ComponentFactory.cpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_ButtonFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:121:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 121 | DECLARE_COMPONENT_FACTORY(Button) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_DesktopFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:122:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 122 | DECLARE_COMPONENT_FACTORY(Desktop) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_DocumentFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:123:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 123 | DECLARE_COMPONENT_FACTORY(Document) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_FilledRectangleFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:124:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 124 | DECLARE_COMPONENT_FACTORY(FilledRectangle) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_GradientFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:125:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 125 | DECLARE_COMPONENT_FACTORY(Gradient) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_ImageFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:126:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 126 | DECLARE_COMPONENT_FACTORY(Image) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_PanelFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:127:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 127 | DECLARE_COMPONENT_FACTORY(Panel) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_ParagraphFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:128:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 128 | DECLARE_COMPONENT_FACTORY(Paragraph) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_ScrollBarFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:129:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 129 | DECLARE_COMPONENT_FACTORY(ScrollBar) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_ScrollViewFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:130:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 130 | DECLARE_COMPONENT_FACTORY(ScrollView) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_SwitchComponentFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:131:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 131 | DECLARE_COMPONENT_FACTORY(SwitchComponent) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_TableLayoutFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:132:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 132 | DECLARE_COMPONENT_FACTORY(TableLayout) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Permutator.o src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_TooltipManagerFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:133:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 133 | DECLARE_COMPONENT_FACTORY(TooltipManager) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentFactory.cpp: In member function 'virtual Component* INTERN_WindowFactory::createComponent(XmlReader&)': src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.cpp:134:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 134 | DECLARE_COMPONENT_FACTORY(Window) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Config.o In file included from src/lincity-ng/main.cpp:43: src/lincity-ng/MainMenu.hpp:77:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 77 | std::auto_ptr mainMenu; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/main.cpp:23: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:78:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 78 | std::auto_ptr newGameMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:79:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 79 | std::auto_ptr loadGameMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:80:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 80 | std::auto_ptr saveGameMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:81:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 81 | std::auto_ptr creditsMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:82:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 82 | std::auto_ptr optionsMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/main.cpp:44: src/lincity-ng/Game.hpp:41:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 41 | std::auto_ptr gui; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/Game.hpp:49:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 49 | std::auto_ptr helpWindow; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/EconomyGraph.cpp:23: src/lincity-ng/EconomyGraph.cpp: In member function 'virtual Component* INTERN_EconomyGraphFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/EconomyGraph.cpp:497:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 497 | IMPLEMENT_COMPONENT_FACTORY(EconomyGraph) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/memory:76, from ./src/gui/ComponentFactory.hpp:29: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ LinkApplication xmlgettext src/lincity-ng/main.cpp: In function 'void initPhysfs(const char*)': src/lincity-ng/main.cpp:65:69: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 65 | msg << "Couldn't initialize physfs: " << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/lincity-ng/main.cpp:25: /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:72:44: warning: 'const char* PHYSFS_getUserDir()' is deprecated [-Wdeprecated-declarations] 72 | const char* userdir = PHYSFS_getUserDir(); | ~~~~~~~~~~~~~~~~~^~ /usr/include/physfs.h:792:25: note: declared here 792 | PHYSFS_DECL const char *PHYSFS_getUserDir(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:86:57: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 86 | writedir << "': " << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:96:57: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 96 | writedir << "': " << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:101:27: warning: 'int PHYSFS_addToSearchPath(const char*, int)' is deprecated [-Wdeprecated-declarations] 101 | PHYSFS_addToSearchPath(writedir, 0); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/physfs.h:851:17: note: declared here 851 | PHYSFS_DECL int PHYSFS_addToSearchPath(const char *newDir, int appendToPath) | ^~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:105:27: warning: 'int PHYSFS_addToSearchPath(const char*, int)' is deprecated [-Wdeprecated-declarations] 105 | PHYSFS_addToSearchPath(writedir, 1); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/physfs.h:851:17: note: declared here 851 | PHYSFS_DECL int PHYSFS_addToSearchPath(const char *newDir, int appendToPath) | ^~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:124:39: warning: 'int PHYSFS_addToSearchPath(const char*, int)' is deprecated [-Wdeprecated-declarations] 124 | PHYSFS_addToSearchPath(str, 1); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/physfs.h:851:17: note: declared here 851 | PHYSFS_DECL int PHYSFS_addToSearchPath(const char *newDir, int appendToPath) | ^~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:141:35: warning: 'int PHYSFS_addToSearchPath(const char*, int)' is deprecated [-Wdeprecated-declarations] 141 | if(!PHYSFS_addToSearchPath(dir.c_str(), 1)) { | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /usr/include/physfs.h:851:17: note: declared here 851 | PHYSFS_DECL int PHYSFS_addToSearchPath(const char *newDir, int appendToPath) | ^~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:167:31: warning: 'int PHYSFS_addToSearchPath(const char*, int)' is deprecated [-Wdeprecated-declarations] 167 | if(!PHYSFS_addToSearchPath(datadir.c_str(), 1)) { | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/include/physfs.h:851:17: note: declared here 851 | PHYSFS_DECL int PHYSFS_addToSearchPath(const char *newDir, int appendToPath) | ^~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp:169:65: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 169 | << "' to physfs searchpath: " << PHYSFS_getLastError() << "\n"; | ~~~~~~~~~~~~~~~~~~~^~ /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/lincity-ng/main.cpp: In function 'void mainLoop()': src/lincity-ng/main.cpp:395:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 395 | std::auto_ptr menu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/main.cpp:396:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 396 | std::auto_ptr game; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/main.cpp: In function 'int main(int, char**)': src/lincity-ng/main.cpp:573:14: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 573 | std::auto_ptr sound; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/MainLincity.o XmlGetText data/locale/gui/messages.pot C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Game.o In file included from src/lincity-ng/MpsInterface.cpp:36: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/ReadPngInterface.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Sound.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/MiniMap.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/MainMenu.o In file included from src/lincity-ng/Game.cpp:20: src/lincity-ng/Game.hpp:41:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 41 | std::auto_ptr gui; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/Game.hpp:22: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/Game.hpp:49:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 49 | std::auto_ptr helpWindow; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/ErrorInterface.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Debug.o In file included from src/lincity-ng/Sound.cpp:21: src/lincity-ng/Game.hpp:41:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 41 | std::auto_ptr gui; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/Game.hpp:22: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/Game.hpp:49:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 49 | std::auto_ptr helpWindow; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/MiniMap.cpp:20: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/TimerInterface.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Dialog.o In file included from src/lincity-ng/MiniMap.cpp:55: src/lincity-ng/Game.hpp:41:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 41 | std::auto_ptr gui; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/Game.hpp:49:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 49 | std::auto_ptr helpWindow; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MiniMap.cpp: In member function 'virtual void MiniMap::draw(Painter&)': src/lincity-ng/MiniMap.cpp:688:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 688 | std::auto_ptr mpainter | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/MiniMap.cpp:28: src/lincity-ng/MiniMap.cpp: In member function 'virtual Component* INTERN_MiniMapFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/MiniMap.cpp:1132:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 1132 | IMPLEMENT_COMPONENT_FACTORY(MiniMap) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ Cc ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/binreloc.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/CheckButton.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/ButtonPanel.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/PBar.o In file included from src/lincity-ng/MainMenu.cpp:42: src/lincity-ng/MainMenu.hpp:77:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 77 | std::auto_ptr mainMenu; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MainMenu.hpp:23: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:78:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 78 | std::auto_ptr newGameMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:79:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 79 | std::auto_ptr loadGameMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:80:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 80 | std::auto_ptr saveGameMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:81:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 81 | std::auto_ptr creditsMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.hpp:82:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 82 | std::auto_ptr optionsMenu; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/GameView.o In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/MainLincity.cpp:44: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/Game.cpp:38: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainLincity.cpp: In function 'bool loadCityNG(std::string)': src/lincity-ng/MainLincity.cpp:120:27: warning: 'int PHYSFS_isDirectory(const char*)' is deprecated [-Wdeprecated-declarations] 120 | if( PHYSFS_isDirectory( filename.c_str() )){ | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from src/lincity-ng/MainLincity.cpp:27: /usr/include/physfs.h:1159:17: note: declared here 1159 | PHYSFS_DECL int PHYSFS_isDirectory(const char *fname) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~ src/lincity-ng/Game.cpp: In member function 'void Game::testAllHelpFiles()': src/lincity-ng/Game.cpp:143:30: warning: 'int PHYSFS_isDirectory(const char*)' is deprecated [-Wdeprecated-declarations] 143 | if(PHYSFS_isDirectory(fullname.c_str())) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/lincity-ng/Game.cpp:36: /usr/include/physfs.h:1159:17: note: declared here 1159 | PHYSFS_DECL int PHYSFS_isDirectory(const char *fname) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~ src/lincity-ng/Sound.cpp: In member function 'void Sound::loadMusicTheme()': src/lincity-ng/Sound.cpp:177:61: warning: 'int PHYSFS_isDirectory(const char*)' is deprecated [-Wdeprecated-declarations] 177 | if(PHYSFS_exists(xml_name.c_str()) && PHYSFS_isDirectory(theme.c_str())) { | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from src/lincity-ng/Sound.cpp:34: /usr/include/physfs.h:1159:17: note: declared here 1159 | PHYSFS_DECL int PHYSFS_isDirectory(const char *fname) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~ src/lincity-ng/Sound.cpp:235:31: warning: 'int PHYSFS_isDirectory(const char*)' is deprecated [-Wdeprecated-declarations] 235 | if (PHYSFS_isDirectory(theme.c_str())) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /usr/include/physfs.h:1159:17: note: declared here 1159 | PHYSFS_DECL int PHYSFS_isDirectory(const char *fname) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~ src/lincity-ng/Sound.cpp:268:35: warning: 'int PHYSFS_isDirectory(const char*)' is deprecated [-Wdeprecated-declarations] 268 | if(!PHYSFS_isDirectory(fullname.c_str()) && (filename[0]!='.') | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/physfs.h:1159:17: note: declared here 1159 | PHYSFS_DECL int PHYSFS_isDirectory(const char *fname) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~ In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/Dialog.cpp:27: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/Dialog.cpp: In member function 'void Dialog::msgDialog(std::string, std::string)': src/lincity-ng/Dialog.cpp:199:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 199 | std::auto_ptr myDialogComponent (loadGUIFile( filename )); | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/MainMenu.cpp:46: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/MainMenu.cpp: In member function 'void MainMenu::fillLoadMenu(bool)': src/lincity-ng/MainMenu.cpp:213:46: warning: 'PHYSFS_sint64 PHYSFS_getLastModTime(const char*)' is deprecated [-Wdeprecated-declarations] 213 | t = PHYSFS_getLastModTime(recentfile); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from src/lincity-ng/MainMenu.cpp:25: /usr/include/physfs.h:1206:27: note: declared here 1206 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_getLastModTime(const char *filename) | ^~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/MainMenu.cpp:215:46: warning: 'PHYSFS_sint64 PHYSFS_getLastModTime(const char*)' is deprecated [-Wdeprecated-declarations] 215 | if (PHYSFS_getLastModTime(curfile) > t) { | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/physfs.h:1206:27: note: declared here 1206 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_getLastModTime(const char *filename) | ^~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/MainMenu.cpp:221:50: warning: 'PHYSFS_sint64 PHYSFS_getLastModTime(const char*)' is deprecated [-Wdeprecated-declarations] 221 | t = PHYSFS_getLastModTime(recentfile); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/physfs.h:1206:27: note: declared here 1206 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_getLastModTime(const char *filename) | ^~~~~~~~~~~~~~~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/ScreenInterface.o src/lincity-ng/CheckButton.cpp: In member function 'void CheckButton::setChildImage(Child&, XmlReader&)': src/lincity-ng/CheckButton.cpp:239:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 239 | std::auto_ptr image(new Image()); | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from ./src/gui/ComponentFactory.hpp:29, from src/lincity-ng/CheckButton.cpp:20: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/CheckButton.cpp: In member function 'void CheckButton::setChildText(Child&, XmlReader&)': src/lincity-ng/CheckButton.cpp:247:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 247 | std::auto_ptr paragraph(new Paragraph()); | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/HelpWindow.o src/lincity-ng/CheckButton.cpp: In member function 'virtual Component* INTERN_CheckButtonFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/CheckButton.cpp:462:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 462 | IMPLEMENT_COMPONENT_FACTORY(CheckButton) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/readdir.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/Mps.o In file included from src/lincity-ng/PBar.cpp:22: src/lincity-ng/PBar.cpp: In member function 'virtual Component* INTERN_LCPBarFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/PBar.cpp:291:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 291 | IMPLEMENT_COMPONENT_FACTORY(LCPBar) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/memory:76, from ./src/gui/ComponentFactory.hpp:29: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/PBar.cpp: In member function 'virtual Component* INTERN_BarViewFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/PBar.cpp:292:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 292 | IMPLEMENT_COMPONENT_FACTORY(BarView) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/GameView.cpp:20: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/GameView.cpp:27: src/lincity-ng/GameView.cpp: In member function 'virtual Component* INTERN_GameViewFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/GameView.cpp:2045:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 2045 | IMPLEMENT_COMPONENT_FACTORY(GameView) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity-ng/MapEdit.o In file included from src/lincity-ng/Mps.cpp:27: src/lincity-ng/Mps.cpp: In member function 'virtual Component* INTERN_MpsFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/Mps.cpp:146:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 146 | IMPLEMENT_COMPONENT_FACTORY(Mps) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12/memory:76, from ./src/gui/ComponentFactory.hpp:29: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/university.o In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/ScreenInterface.cpp:41: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/ButtonPanel.cpp:42: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from ./src/gui/ComponentFactory.hpp:29, from src/lincity-ng/ButtonPanel.cpp:23: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ In file included from src/lincity-ng/ButtonPanel.cpp:43: src/lincity-ng/Game.hpp:41:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 41 | std::auto_ptr gui; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/Game.hpp:49:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 49 | std::auto_ptr helpWindow; | ^~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/HelpWindow.cpp: In member function 'void HelpWindow::showTopic(const std::string&)': src/lincity-ng/HelpWindow.cpp:69:14: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 69 | std::auto_ptr contents (loadGUIFile(filename)); | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/HelpWindow.cpp:25: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/lincity-ng/ButtonPanel.cpp: In member function 'virtual Component* INTERN_ButtonPanelFactory::createComponent(XmlReader&)': ./src/gui/ComponentFactory.hpp:73:12: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ ./src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro 'DECLARE_COMPONENT_FACTORY' 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/lincity-ng/ButtonPanel.cpp:913:1: note: in expansion of macro 'IMPLEMENT_COMPONENT_FACTORY' 913 | IMPLEMENT_COMPONENT_FACTORY(ButtonPanel) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/track_road_rail.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/heavy_industry.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/parkland.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/windpower.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/port.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/light_industry.o In file included from src/lincity-ng/GameView.hpp:32, from src/lincity-ng/MapEdit.cpp:35: src/lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/monument.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/cricket.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/pottery.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/all_modules.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/mill.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/power_line.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/waterwell.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/blacksmith.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/school.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/solar_power.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/shanty.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/commune.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/firestation.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/rocket_pad.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/fire.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/coalmine.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/market.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/water.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/windmill.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/health_centre.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/substation.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/residence.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/recycle.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/organic_farm.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/coal_power.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/modules/tip.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/lclib.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/xmlloadsave.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/lc_locale.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/ConstructionCount.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/engine.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/ConstructionManager.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/transport.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/ConstructionRequest.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/engglobs.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/stats.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/old_ldsvguts.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/fileutil.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/simulate.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/all_buildings.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/UserOperation.o ...on 100th target... C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/init_game.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/world.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/lincity/loadsave.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/tinygettext/findlocale.o Archive ./build/x86_64-mageia-linux-gnu/optimize/src/tinygettext/libtinygettext.a ar: creating ./build/x86_64-mageia-linux-gnu/optimize/src/tinygettext/libtinygettext.a src/lincity/fileutil.cpp: In function 'void init_path_strings()': src/lincity/fileutil.cpp:381:44: warning: 'const char* PHYSFS_getUserDir()' is deprecated [-Wdeprecated-declarations] 381 | const char* homedir = PHYSFS_getUserDir(); | ~~~~~~~~~~~~~~~~~^~ In file included from src/lincity/fileutil.cpp:11: /usr/include/physfs.h:792:25: note: declared here 792 | PHYSFS_DECL const char *PHYSFS_getUserDir(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~ Ranlib ./build/x86_64-mageia-linux-gnu/optimize/src/tinygettext/libtinygettext.a C++ ./build/x86_64-mageia-linux-gnu/optimize/src/PhysfsStream/PhysfsSDL.o src/lincity/fileutil.cpp: In function 'void find_libdir()': src/lincity/fileutil.cpp:223:20: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 256 equals destination size [-Wstringop-truncation] 223 | strncpy(LIBDIR, home_dir, LC_PATH_MAX); | ^ src/lincity/fileutil.cpp:231:52: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 231 | snprintf(filename_buf, LC_PATH_MAX, "%s%c%s", cwd_buf, PATH_SLASH, searchfile); | ^ In file included from /usr/include/stdio.h:894, from src/lincity/fileutil.cpp:7: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void find_libdir()' at src/lincity/fileutil.cpp:231:17: /usr/include/bits/stdio2.h:71:35: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:321:59: warning: '%s' directive output may be truncated writing 8 bytes into a region of size between 0 and 255 [-Wformat-truncation=] 321 | snprintf(message_path, sizeof(message_path), "%s%c%s%c%s%c", LIBDIR, | ^~ 322 | PATH_SLASH, "messages", PATH_SLASH, intl_suffix, PATH_SLASH); | ~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:321:17: /usr/include/bits/stdio2.h:71:35: note: '__builtin___snprintf_chk' output 12 or more bytes (assuming 267) into a destination of size 256 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:328:53: warning: '%s' directive output may be truncated writing 4 bytes into a region of size between 0 and 255 [-Wformat-truncation=] 328 | snprintf(help_path, sizeof(help_path), "%s%c%s%c%s%c", LIBDIR, PATH_SLASH, | ^~ 329 | "help", PATH_SLASH, intl_suffix, PATH_SLASH); | ~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:328:17: /usr/include/bits/stdio2.h:71:35: note: '__builtin___snprintf_chk' output 8 or more bytes (assuming 263) into a destination of size 256 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:328:53: warning: '%s' directive output may be truncated writing 4 bytes into a region of size between 0 and 255 [-Wformat-truncation=] 328 | snprintf(help_path, sizeof(help_path), "%s%c%s%c%s%c", LIBDIR, PATH_SLASH, | ^~ 329 | "help", PATH_SLASH, intl_suffix, PATH_SLASH); | ~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:328:17: /usr/include/bits/stdio2.h:71:35: note: '__builtin___snprintf_chk' output 8 or more bytes (assuming 263) into a destination of size 256 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:347:40: warning: '%s' directive writing 8 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 347 | sprintf(message_path, "%s%c%s%c%s%c", LIBDIR, PATH_SLASH, "messages", PATH_SLASH, intl_suffix, PATH_SLASH); | ^~ ~~~~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:347:20: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 12 and 394 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:355:37: warning: '%s' directive writing 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 355 | sprintf(help_path, "%s%c%s%c%s%c", LIBDIR, PATH_SLASH, "help", PATH_SLASH, intl_suffix, PATH_SLASH); | ^~ ~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:355:20: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 8 and 390 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:355:37: warning: '%s' directive writing 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 355 | sprintf(help_path, "%s%c%s%c%s%c", LIBDIR, PATH_SLASH, "help", PATH_SLASH, intl_suffix, PATH_SLASH); | ^~ ~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:355:20: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 8 and 390 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:368:36: warning: '%s' directive writing 8 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 368 | sprintf(message_path, "%s%c%s%c", LIBDIR, PATH_SLASH, "messages", PATH_SLASH); | ^~ ~~~~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:368:16: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 11 and 266 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void find_localized_paths()': src/lincity/fileutil.cpp:372:33: warning: '%s' directive writing 4 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 372 | sprintf(help_path, "%s%c%s%c", LIBDIR, PATH_SLASH, "help", PATH_SLASH); | ^~ ~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void find_localized_paths()' at src/lincity/fileutil.cpp:372:16: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 7 and 262 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void init_path_strings()': src/lincity/fileutil.cpp:388:35: warning: '%s' directive writing 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 388 | sprintf(colour_pal_file, "%s%c%s", LIBDIR, PATH_SLASH, "colour.pal"); | ^~ ~~~~~~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void init_path_strings()' at src/lincity/fileutil.cpp:388:12: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 12 and 267 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void init_path_strings()': src/lincity/fileutil.cpp:389:32: warning: '%s' directive writing 7 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 389 | sprintf(opening_path, "%s%c%s", LIBDIR, PATH_SLASH, "opening"); | ^~ ~~~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void init_path_strings()' at src/lincity/fileutil.cpp:389:12: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 9 and 264 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void init_path_strings()': src/lincity/fileutil.cpp:393:31: warning: '%s' directive writing 11 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 393 | sprintf(opening_pic, "%s%c%s", opening_path, PATH_SLASH, "open.tga.gz"); | ^~ ~~~~~~~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void init_path_strings()' at src/lincity/fileutil.cpp:393:12: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 13 and 268 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void init_path_strings()': src/lincity/fileutil.cpp:395:32: warning: '%s' directive writing 5 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 395 | sprintf(graphic_path, "%s%c%s%c", LIBDIR, PATH_SLASH, "icons", PATH_SLASH); | ^~ ~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void init_path_strings()' at src/lincity/fileutil.cpp:395:12: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 8 and 263 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ src/lincity/fileutil.cpp: In function 'void init_path_strings()': src/lincity/fileutil.cpp:402:28: warning: '%s' directive writing 17 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 402 | sprintf(fontfile, "%s%c%s", opening_path, PATH_SLASH, "iso8859-1-8x8.raw"); | ^~ ~~~~~~~~~~~~~~~~~~~ In function 'int sprintf(char*, const char*, ...)', inlined from 'void init_path_strings()' at src/lincity/fileutil.cpp:402:12: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 19 and 274 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterSDL/TextureSDL.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterSDL/PainterSDL.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterGL/TextureGL.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/PainterGL/TextureManagerGL.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/Color.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/Window.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/Image.o In file included from src/lincity/../lincity-ng/GameView.hpp:32, from src/lincity/simulate.cpp:51: src/lincity/../lincity-ng/MiniMap.hpp:86:10: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 86 | std::auto_ptr mTexture; | ^~~~~~~~ In file included from /usr/include/c++/12/memory:76, from src/lincity/../lincity-ng/MiniMap.hpp:26: /usr/include/c++/12/bits/unique_ptr.h:56:28: note: declared here 56 | template class auto_ptr; | ^~~~~~~~ src/PhysfsStream/PhysfsSDL.cpp: In function 'int funcSeek(SDL_RWops*, int, int)': src/PhysfsStream/PhysfsSDL.cpp:48:70: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 48 | std::cerr << "Error seeking in file: " << PHYSFS_getLastError() << "\n"; | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/PhysfsStream/PhysfsSDL.cpp:20: /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/PhysfsStream/PhysfsSDL.cpp: In function 'int funcRead(SDL_RWops*, void*, int, int)': src/PhysfsStream/PhysfsSDL.cpp:59:26: warning: 'PHYSFS_sint64 PHYSFS_read(PHYSFS_File*, void*, PHYSFS_uint32, PHYSFS_uint32)' is deprecated [-Wdeprecated-declarations] 59 | int res = PHYSFS_read(file, ptr, size, maxnum); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/physfs.h:1333:27: note: declared here 1333 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_read(PHYSFS_File *handle, | ^~~~~~~~~~~ src/PhysfsStream/PhysfsSDL.cpp: In function 'SDL_RWops* getPhysfsSDLRWops(const std::string&)': src/PhysfsStream/PhysfsSDL.cpp:79:35: warning: 'const char* PHYSFS_getLastError()' is deprecated [-Wdeprecated-declarations] 79 | << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/Component.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/TextureManager.o Archive ./build/x86_64-mageia-linux-gnu/optimize/src/PhysfsStream/libphysfsstream.a ar: creating ./build/x86_64-mageia-linux-gnu/optimize/src/PhysfsStream/libphysfsstream.a Ranlib ./build/x86_64-mageia-linux-gnu/optimize/src/PhysfsStream/libphysfsstream.a C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/Desktop.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/TableLayout.o C++ ./build/x86_64-mageia-linux-gnu/optimize/src/gui/XmlReader.o src/gui/Window.cpp: In member function 'void Window::parse(XmlReader&)': src/gui/Window.cpp:107:22: warning: 'template class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 107 | std::auto_ptr