D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/g15daemon-1.9.5.3-15.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.gGyMVO + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf g15daemon-1.9.5.3 + /usr/bin/bzip2 -dc /home/iurt/rpmbuild/SOURCES/g15daemon-1.9.5.3.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd g15daemon-1.9.5.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/g15daemon-1.9.5.3-fix-open-with-O_CREAT.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.ZOlIEP + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd g15daemon-1.9.5.3 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -vfi autoreconf: Entering directory '.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: configure.in: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. libtoolize: copying file 'config/ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoheader: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: running: automake --add-missing --copy --force-missing automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:19: installing 'config/compile' configure.in:13: installing 'config/missing' Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' g15daemon/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') g15daemon/Makefile.am: installing 'config/depcomp' plugins/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') autoreconf: Leaving directory '.' + 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 + 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 ./config/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config/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 Modifying config/ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /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 --disable-static 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 a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-mageia-linux-gnu-gcc... x86_64-mageia-linux-gnu-gcc 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 the compiler supports GNU C... yes checking whether x86_64-mageia-linux-gnu-gcc accepts -g... yes checking for x86_64-mageia-linux-gnu-gcc option to enable C11 features... none needed checking whether x86_64-mageia-linux-gnu-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-mageia-linux-gnu-gcc... none checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by x86_64-mageia-linux-gnu-gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-mageia-linux-gnu-nm -p checking the name lister (/usr/bin/x86_64-mageia-linux-gnu-nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-mageia-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-mageia-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-mageia-linux-gnu-ar... x86_64-mageia-linux-gnu-ar checking for archiver @FILE support... @ checking for x86_64-mageia-linux-gnu-strip... no checking for strip... strip checking for x86_64-mageia-linux-gnu-ranlib... x86_64-mageia-linux-gnu-ranlib checking command to parse /usr/bin/x86_64-mageia-linux-gnu-nm -p output from x86_64-mageia-linux-gnu-gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-mageia-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-mageia-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-mageia-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-mageia-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-mageia-linux-gnu-gcc static flag -static works... no checking if x86_64-mageia-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-mageia-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-mageia-linux-gnu-gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for initLibG15 in -lg15... yes checking for g15r_loadWbmpSplash in -lg15render... yes checking for sin in -lm... yes checking for pthread_mutex_init in -lpthread... yes checking for daemon... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for size_t... yes checking how to run the C preprocessor... x86_64-mageia-linux-gnu-gcc -E checking whether x86_64-mageia-linux-gnu-gcc needs -traditional... no checking types of arguments for select... int,fd_set *,struct timeval * checking for strftime... yes checking for memset... yes checking for select... yes checking for socket... yes checking for strerror... yes checking for backtrace... yes checking for backtrace_symbols... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for linux/input.h... yes checking for execinfo.h... yes checking for linux/uinput.h... yes checking for arpa/inet.h... yes checking for fcntl.h... yes checking for stdlib.h... yes checking for string.h... yes checking for sys/socket.h... (cached) yes checking for unistd.h... (cached) yes checking for libg15.h... yes checking for struct uinput_user_dev.id... yes configure: Necessary includes exist: Compiling Uinput Plugin configure: OS is Linux, using uinput if available checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating g15daemon/Makefile config.status: creating libg15daemon_client/Makefile config.status: creating plugins/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j8 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in libg15daemon_client make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/libg15daemon_client' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o g15daemon_net.lo g15daemon_net.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/share\" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c g15daemon_net.c -fPIC -DPIC -o .libs/g15daemon_net.o In file included from /usr/include/sys/socket.h:269, from g15daemon_net.c:29: In function 'recv', inlined from 'g15_recv_oob_answer' at g15daemon_net.c:220:23: /usr/include/bits/socket2.h:42:9: warning: call to '__recv_chk_warn' declared with attribute warning: recv called with bigger length than size of destination buffer [-Wattribute-warning] 42 | return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/libg15daemon_client' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/libg15daemon_client' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -version-info 1:2:0 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o libg15daemon_client.la -rpath /usr/lib64 g15daemon_net.lo -lpthread -lm -lg15render -lg15 libtool: link: x86_64-mageia-linux-gnu-gcc -shared -Wl,--as-needed -fPIC -DPIC .libs/g15daemon_net.o -O2 -g -fstack-protector -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -lpthread -lm -lg15render -lg15 -Wl,-soname -Wl,libg15daemon_client.so.1 -o .libs/libg15daemon_client.so.1.0.2 libtool: link: (cd ".libs" && rm -f "libg15daemon_client.so.1" && ln -s "libg15daemon_client.so.1.0.2" "libg15daemon_client.so.1") libtool: link: (cd ".libs" && rm -f "libg15daemon_client.so" && ln -s "libg15daemon_client.so.1.0.2" "libg15daemon_client.so") libtool: link: ( cd ".libs" && rm -f "libg15daemon_client.la" && ln -s "../libg15daemon_client.la" "libg15daemon_client.la" ) make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/libg15daemon_client' Making all in g15daemon make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libg15daemon_client/ -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o lcdclient_test.o lcdclient_test.c lcdclient_test.c: In function 'main': lcdclient_test.c:55:6: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 55 | }else | ^~~~ lcdclient_test.c:58:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 58 | if(argc<2) | ^~ lcdclient_test.c:89:31: warning: format '%i' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [-Wformat=] 89 | printf("sent %i bytes\n",send(g15screen_fd, packet, 1, MSG_OOB )); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int ssize_t {aka long int} | %li lcdclient_test.c:70:17: warning: unused variable 'foo' [-Wunused-variable] 70 | int foo = 0; | ^~~ lcdclient_test.c:48:23: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 48 | int g15screen_fd, retval; | ^~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libg15daemon_client/ -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o linked_lists.o linked_lists.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libg15daemon_client/ -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o g15_plugins.o g15_plugins.c In file included from /usr/include/string.h:495, from g15_plugins.c:34: In function 'strncat', inlined from 'g15_count_plugins' at g15_plugins.c:212:17: /usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying 200 bytes from a string of length 255 [-Wstringop-truncation] 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g15_plugins.c: In function 'g15_open_all_plugins': g15_plugins.c:349:24: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 349 | sprintf(tmp,"%i",i); | ^ In file included from /usr/include/stdio.h:867, from g15_plugins.c:31: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 10 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from g15_plugins.c:34: In function 'strncat', inlined from 'g15_open_all_plugins' at g15_plugins.c:323:17: /usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk' output may be truncated copying 200 bytes from a string of length 255 [-Wstringop-truncation] 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g15_plugins.c: In function 'g15_open_all_plugins': g15_plugins.c:326:34: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 326 | sprintf(tmp,"%i",loadcount); | ^ In file included from /usr/include/stdio.h:867, from g15_plugins.c:31: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 10 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libg15daemon_client/ -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o main.o main.c main.c: In function 'main': main.c:414:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 414 | for(i=1;ipw_uid); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:497:13: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 497 | setegid(nobody->pw_gid); | ^~~~~~~~~~~~~~~~~~~~~~~ main.c:571:5: warning: ignoring return value of 'seteuid' declared with attribute 'warn_unused_result' [-Wunused-result] 571 | seteuid(0); | ^~~~~~~~~~ main.c:572:5: warning: ignoring return value of 'setegid' declared with attribute 'warn_unused_result' [-Wunused-result] 572 | setegid(0); | ^~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o g15daemontest lcdclient_test.o ../libg15daemon_client/libg15daemon_client.la -lpthread -lm -lg15render -lg15 libtool: link: x86_64-mageia-linux-gnu-gcc -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/g15daemontest lcdclient_test.o ../libg15daemon_client/.libs/libg15daemon_client.so -lpthread -lm -lg15render -lg15 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libg15daemon_client/ -DDATADIR="\"/usr/share\"" -DPLUGINDIR=\"/usr/lib64/g15daemon/1.9.5.3/plugins\" -I/usr/include -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o utility_funcs.o utility_funcs.c utility_funcs.c: In function 'uf_create_pidfile': utility_funcs.c:164:29: warning: operation on 'l' may be undefined [-Wsequence-point] 164 | if (write(fd, pidtxt, l = strlen(pidtxt)) != l) { | ~~^~~~~~~~~~~~~~~~ utility_funcs.c: In function 'uf_conf_write': utility_funcs.c:362:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 362 | write(config_fd,line,strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utility_funcs.c:368:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 368 | write(config_fd,line,strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utility_funcs.c:376:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 376 | write(config_fd,line,strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -rdynamic -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o g15daemon utility_funcs.o main.o linked_lists.o g15_plugins.o -ldl -lpthread -lm -lg15render -lg15 libtool: link: x86_64-mageia-linux-gnu-gcc -DG15DAEMON_BUILD -Wall -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -rdynamic -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o g15daemon utility_funcs.o main.o linked_lists.o g15_plugins.o -ldl -lpthread -lm -lg15render -lg15 /usr/bin/ld: main.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:218: multiple definition of `lcdlist_mutex'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:218: first defined here /usr/bin/ld: main.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:219: multiple definition of `g15lib_mutex'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:219: first defined here /usr/bin/ld: main.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:216: multiple definition of `g15daemon_s'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:216: first defined here /usr/bin/ld: main.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:203: multiple definition of `lcdnode_s'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:203: first defined here /usr/bin/ld: linked_lists.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:218: multiple definition of `lcdlist_mutex'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:218: first defined here /usr/bin/ld: linked_lists.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:219: multiple definition of `g15lib_mutex'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:219: first defined here /usr/bin/ld: linked_lists.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:216: multiple definition of `g15daemon_s'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:216: first defined here /usr/bin/ld: linked_lists.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:203: multiple definition of `lcdnode_s'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:203: first defined here /usr/bin/ld: g15_plugins.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:218: multiple definition of `lcdlist_mutex'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:218: first defined here /usr/bin/ld: g15_plugins.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:219: multiple definition of `g15lib_mutex'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:219: first defined here /usr/bin/ld: g15_plugins.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:216: multiple definition of `g15daemon_s'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:216: first defined here /usr/bin/ld: g15_plugins.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/./g15daemon.h:203: multiple definition of `lcdnode_s'; utility_funcs.o:/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon/g15daemon.h:203: first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:442: g15daemon] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/g15daemon-1.9.5.3/g15daemon' make[1]: *** [Makefile:570: all-recursive] Error 1 make: *** [Makefile:378: all] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.ZOlIEP (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.ZOlIEP (%build) I: [iurt_root_command] ERROR: chroot