[devel] Что это? Переопределение функций?

Дмитрий Ханжин dmitriy.khanzhin на gmail.com
Вс Июл 30 19:56:23 MSK 2017


Привет.
Собираю новый релиз icewm, не пойму, что там наворотили.
Такое впечатление, что переопределяются strlcpy и strlcat.
Что это, и с чего начать, попробовать откатить
https://github.com/bbidulock/icewm/commit/a81206ffa7ae42ec32ed0c2b3e558a5ce72c6c41
----------- следующая часть -----------
-- Build files have been written to: /usr/src/RPM/BUILD/icewm-githubmod/BUILD
+ popd
~/RPM/BUILD/icewm-githubmod
+ pushd BUILD
~/RPM/BUILD/icewm-githubmod/BUILD ~/RPM/BUILD/icewm-githubmod
+ '[' -n '' ']'
+ NPROCS=4
+ make -j4
make: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[1]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
Scanning dependencies of target icesh
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
Scanning dependencies of target icewm-session
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
Scanning dependencies of target icewmhint
Scanning dependencies of target genpref
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
[  0%] Building CXX object src/CMakeFiles/icesh.dir/icesh.cc.o
make[2]: Entering directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
[  0%] Building CXX object src/CMakeFiles/icewm-session.dir/icesm.cc.o
[  0%] Building CXX object src/CMakeFiles/icewmhint.dir/icewmhint.cc.o
[  0%] Building CXX object src/CMakeFiles/genpref.dir/genpref.cc.o
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/mstring.h:5:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/upath.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypixmap.h:6,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaint.h:5,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaths.h:12,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yxapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:4:
/usr/include/string.h:583:15: error: conflicting declaration of 'size_t strlcpy(char*, const char*, size_t)' with 'C' linkage
 extern size_t strlcpy (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:47:8: note: previous declaration with 'C++' linkage
 size_t strlcpy(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/mstring.h:5:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/upath.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypixmap.h:6,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaint.h:5,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaths.h:12,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yxapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:4:
/usr/include/string.h:583:15: error: declaration of 'size_t strlcpy(char*, const char*, size_t) throw ()' has a different exception specifier
 extern size_t strlcpy (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:47:8: note: from previous declaration 'size_t strlcpy(char*, const char*, size_t)'
 size_t strlcpy(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/mstring.h:5:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/upath.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypixmap.h:6,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaint.h:5,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaths.h:12,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yxapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:4:
/usr/include/string.h:589:15: error: conflicting declaration of 'size_t strlcat(char*, const char*, size_t)' with 'C' linkage
 extern size_t strlcat (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:49:8: note: previous declaration with 'C++' linkage
 size_t strlcat(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/mstring.h:5:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/upath.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypixmap.h:6,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaint.h:5,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/ypaths.h:12,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/yxapp.h:4,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:4:
/usr/include/string.h:589:15: error: declaration of 'size_t strlcat(char*, const char*, size_t) throw ()' has a different exception specifier
 extern size_t strlcat (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/icesm.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:49:8: note: from previous declaration 'size_t strlcat(char*, const char*, size_t)'
 size_t strlcat(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/sysdep.h:16:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:9:
/usr/include/string.h:583:15: error: conflicting declaration of 'size_t strlcpy(char*, const char*, size_t)' with 'C' linkage
 extern size_t strlcpy (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:47:8: note: previous declaration with 'C++' linkage
 size_t strlcpy(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/sysdep.h:16:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:9:
/usr/include/string.h:583:15: error: declaration of 'size_t strlcpy(char*, const char*, size_t) throw ()' has a different exception specifier
 extern size_t strlcpy (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:47:8: note: from previous declaration 'size_t strlcpy(char*, const char*, size_t)'
 size_t strlcpy(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/sysdep.h:16:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:9:
/usr/include/string.h:589:15: error: conflicting declaration of 'size_t strlcat(char*, const char*, size_t)' with 'C' linkage
 extern size_t strlcat (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:49:8: note: previous declaration with 'C++' linkage
 size_t strlcat(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/sysdep.h:16:0,
                 from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:9:
/usr/include/string.h:589:15: error: declaration of 'size_t strlcat(char*, const char*, size_t) throw ()' has a different exception specifier
 extern size_t strlcat (char *__restrict __dest,
               ^~~~~~~
In file included from /usr/src/RPM/BUILD/icewm-githubmod/src/genpref.cc:2:0:
/usr/src/RPM/BUILD/icewm-githubmod/src/base.h:49:8: note: from previous declaration 'size_t strlcat(char*, const char*, size_t)'
 size_t strlcat(char *dest, const char *from, size_t dest_size);
        ^~~~~~~
make[2]: *** [src/CMakeFiles/genpref.dir/genpref.cc.o] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[1]: *** [src/CMakeFiles/genpref.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  0%] Building CXX object src/CMakeFiles/icewmhint.dir/misc.cc.o
[  0%] Building CXX object src/CMakeFiles/icesh.dir/misc.cc.o
make[2]: *** [src/CMakeFiles/icewm-session.dir/icesm.cc.o] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make[1]: *** [src/CMakeFiles/icewm-session.dir/all] Error 2
[  1%] Building CXX object src/CMakeFiles/icesh.dir/mstring.cc.o
[  1%] Linking CXX executable ../icewmhint
[  1%] Linking CXX executable ../icesh
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
[  1%] Built target icewmhint
make[2]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
[  1%] Built target icesh
make[1]: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
make: *** [all] Error 2
make: Leaving directory `/usr/src/RPM/BUILD/icewm-githubmod/BUILD'
error: Bad exit status from /usr/src/tmp/rpm-tmp.97538 (%build)


RPM build errors:
    Bad exit status from /usr/src/tmp/rpm-tmp.97538 (%build)
Command exited with non-zero status 1
2.80user 16.99system 0:16.23elapsed 121%CPU (0avgtext+0avgdata 40236maxresident)k
0inputs+0outputs (0major+607291minor)pagefaults 0swaps
hsh-rebuild: rebuild of `pkg.tar' failed.


Подробная информация о списке рассылки Devel