Bug#1073320: eurephia: FTBFS: eurephia_nullsafe.h:47:43: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]
Source: eurephia
Version: 1.1.1-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>'
> [ 1%] Building C object common/CMakeFiles/eurephiacommon.dir/certinfo.c.o
> [ 2%] Building C object common/CMakeFiles/eurephiacommon.dir/eurephia_getsym.c.o
> [ 4%] Building C object common/CMakeFiles/eurephiacommon.dir/eurephia_log.c.o
> [ 5%] Building C object common/CMakeFiles/eurephiacommon.dir/eurephia_nullsafe.c.o
> [ 6%] Building C object common/CMakeFiles/eurephiacommon.dir/eurephia_values.c.o
> [ 8%] Building C object common/CMakeFiles/eurephiacommon.dir/eurephia_cfgfile.c.o
> [ 9%] Building C object common/CMakeFiles/eurephiacommon.dir/passwd.c.o
> /<<PKGBUILDDIR>>/common/passwd.c: In function ‘eurephia_pwd_crypt’:
> /<<PKGBUILDDIR>>/common/passwd.c:530:17: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
> 530 | strncpy(saltstr, saltinfo, strlen(saltinfo));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /<<PKGBUILDDIR>>/common/passwd.c:530:17: note: length computed here
> 530 | strncpy(saltstr, saltinfo, strlen(saltinfo));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 11%] Building C object common/CMakeFiles/eurephiacommon.dir/randstr.c.o
> /<<PKGBUILDDIR>>/common/randstr.c: In function ‘eurephia_randstring’:
> /<<PKGBUILDDIR>>/common/randstr.c:65:17: warning: ‘RAND_pseudo_bytes’ is deprecated: Since OpenSSL 1.1.0 [-Wdeprecated-declarations]
> 65 | if( RAND_pseudo_bytes((unsigned char *) rndstr, len) ) {
> | ^~
> In file included from /<<PKGBUILDDIR>>/common/randstr.c:33:
> /usr/include/openssl/rand.h:79:29: note: declared here
> 79 | OSSL_DEPRECATEDIN_1_1_0 int RAND_pseudo_bytes(unsigned char *buf, int num);
> | ^~~~~~~~~~~~~~~~~
> [ 12%] Building C object common/CMakeFiles/eurephiacommon.dir/sha512.c.o
> [ 13%] Building C object common/CMakeFiles/eurephiacommon.dir/__/database/eurephiadb.c.o
> [ 15%] Building C object common/CMakeFiles/eurephiacommon.dir/eurephia_xml.c.o
> In file included from /<<PKGBUILDDIR>>/common/eurephia_xml.c:40:
> /<<PKGBUILDDIR>>/common/eurephia_xml.c: In function ‘eurephiaXML_getRoot’:
> /<<PKGBUILDDIR>>/common/./eurephia_nullsafe.h:47:43: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]
> 47 | #define atoi_nullsafe(str) (str != NULL ? atoi(str) : 0)
> | ^~~~
> /<<PKGBUILDDIR>>/common/eurephia_xml.c:183:21: note: in expansion of macro ‘atoi_nullsafe’
> 183 | xmlformat = atoi_nullsafe(xmlformat_str);
> | ^~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[3]: *** [common/CMakeFiles/eurephiacommon.dir/build.make:205: common/CMakeFiles/eurephiacommon.dir/eurephia_xml.c.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/eurephia_1.1.1-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: