[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1073324: gmerlin-avdecoder: FTBFS: options.c:46:45: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]



Source: gmerlin-avdecoder
Version: 2.0.0~svn6298~dfsg0-3
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):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -ffast-math -I/usr/include/libxml2   -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wall -Wmissing-declarations -Wdeclaration-after-statement -c -o i_dvd.lo i_dvd.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c avdec_common.c  -fPIC -DPIC -o .libs/avdec_common.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c c_avdec_audio.c  -fPIC -DPIC -o .libs/c_avdec_audio.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c c_avdec_video.c  -fPIC -DPIC -o .libs/c_avdec_video.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c i_dvd.c  -fPIC -DPIC -o .libs/i_dvd.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c i_vcd.c  -fPIC -DPIC -o .libs/i_vcd.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c i_avdec.c  -fPIC -DPIC -o .libs/i_avdec.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c codec_common.c  -fPIC -DPIC -o .libs/codec_common.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -ffast-math -I/usr/include/libxml2 -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-declarations -Wdeclaration-after-statement -c options.c  -fPIC -DPIC -o .libs/options.o
> options.c: In function ‘bg_avdec_option_set_parameter’:
> options.c:46:45: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration]
>    46 |     bgav_options_set_network_bandwidth(opt, atoi(val->v.str));
>       |                                             ^~~~
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -ffast-math -I/usr/include/libxml2   -DLOCALE_DIR=\"/usr/share/locale\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wall -Wmissing-declarations -Wdeclaration-after-statement -c -o i_dvb.lo i_dvb.c
> cc1: some warnings being treated as errors
> make[2]: *** [Makefile:644: options.lo] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/06/15/gmerlin-avdecoder_2.0.0~svn6298~dfsg0-3_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: