Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 647876 Details for
Bug 731012
media-sound/mcdp-0.4b fails to compile: cddev.c:63:38: error: function definition is not allowed here
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 13.95 KB, created by
Agostino Sarubbo
on 2020-07-06 09:27:41 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2020-07-06 09:27:41 UTC
Size:
13.95 KB
patch
obsolete
> * Package: media-sound/mcdp-0.4b > * Repository: gentoo > * Maintainer: sound@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox > > >@@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ >This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; >This ebuild was merged at the following commit: >https://github.com/gentoo-mirror/gentoo/commit/f2dfff72e5344027722518480519835e796c4841 >@@@@@ END @@@@@ > >>>> Unpacking source... >>>> Unpacking mcdp-0.4b.tar.bz2 to /var/tmp/portage/media-sound/mcdp-0.4b/work >>>> Source unpacked in /var/tmp/portage/media-sound/mcdp-0.4b/work >>>> Preparing source in /var/tmp/portage/media-sound/mcdp-0.4b/work/mcdp-0.4b ... > * Applying mcdp-0.4a-dietlibc-fix.patch ... > [ ok ] > * Applying mcdp-0.4a-makefile.patch ... > [ ok ] >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/media-sound/mcdp-0.4b/work/mcdp-0.4b ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/media-sound/mcdp-0.4b/work/mcdp-0.4b ... >make -j2 V=1 CC=x86_64-pc-linux-gnu-clang 'CFLAGS=-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0' >x86_64-pc-linux-gnu-clang -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c cddb.c -o cddb.o >x86_64-pc-linux-gnu-clang -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -c cddev.c -o cddev.o >cddb.c:33:43: warning: passing 'char *' to parameter of type > 'const unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > str_ncpy(cd->t[0].name, fn+7, str_len(fn)); > ^~ >./mcdp.h:145:44: note: passing argument to parameter 'str' here >extern size_t str_len(const unsigned char *str); > ^ >cddb.c:33:14: warning: passing 'char [62]' to parameter of type > 'unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > str_ncpy(cd->t[0].name, fn+7, str_len(fn)); > ^~~~~~~~~~~~~ >./mcdp.h:146:39: note: passing argument to parameter 'dst' here >extern size_t str_ncpy(unsigned char *dst, const unsigned char *src, size_t n); > ^ >cddb.c:33:29: warning: passing 'char *' to parameter of type > 'const unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > str_ncpy(cd->t[0].name, fn+7, str_len(fn)); > ^~~~ >./mcdp.h:146:65: note: passing argument to parameter 'src' here >extern size_t str_ncpy(unsigned char *dst, const unsigned char *src, size_t n); > ^ >cddb.c:35:57: warning: passing 'char *' to parameter of type > 'const unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > str_ncpy(cd->t[tr].name, fn+8+(int)(tr/10), str_len(fn)); > ^~ >./mcdp.h:145:44: note: passing argument to parameter 'str' here >extern size_t str_len(const unsigned char *str); > ^ >cddb.c:35:14: warning: passing 'char [62]' to parameter of type > 'unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > str_ncpy(cd->t[tr].name, fn+8+(int)(tr/10), str_len(fn)); > ^~~~~~~~~~~~~~ >./mcdp.h:146:39: note: passing argument to parameter 'dst' here >extern size_t str_ncpy(unsigned char *dst, const unsigned char *src, size_t n); > ^ >cddb.c:35:30: warning: passing 'char *' to parameter of type > 'const unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > str_ncpy(cd->t[tr].name, fn+8+(int)(tr/10), str_len(fn)); > ^~~~~~~~~~~~~~~~~ >./mcdp.h:146:65: note: passing argument to parameter 'src' here >extern size_t str_ncpy(unsigned char *dst, const unsigned char *src, size_t n); > ^ >cddb.ccddev.c:63:38: error: function definition is not allowed here > unsigned cd_cddbsum(register int n) { > ^ >cddev.c:72:6: warning: implicit declaration of function 'cd_cddbsum' is invalid > in C99 [-Wimplicit-function-declaration] > n+=cd_cddbsum(cd->t[i].cddb/75);i++; > ^ >cddev.c:71:12: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > while (i<=cd->title[1]) { > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >cddev.c:74:61: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > return ((n%0xff)<<24|(cd->t[0].cddb - cd->t[1].cddb/75)<<8|cd->title[1]); > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >:138:29: warning: passing 'char [16]' to parameter of type > 'const unsigned char *' converts between cddev.c:128:2: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > cd->title[1]=cdth.cdth_trk1; /* init all these stuff */ > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >pointers to integer types with > different sign [-Wpointer-sign] > strncat(h.msg,tmp,str_len(tmp)); > ^~~ >./mcdp.h:145:44: note: passing argument to parameter 'str' here >extern size_t str_len(const unsigned char *str); > ^ >cddb.c:141:28: warning: passing 'char [16]' to parameter of type > 'const unsigned char *' converts between pointers to integer types with > different sign [-Wpointer-sign] > strncat(h.msg,tmp,str_len(tmp)); > ^~~ >./mcdp.h:145:44: note: passing argument to parameter 'str' here >extern size_t str_len(const unsigned char *str); > ^ >cddev.c:151:17: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > cd->title[0]==cd->title[1] && > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >cddev.c:192:19: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > if (cd->title[0]>cd->title[1]) cd->title[0]=1; > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >cddev.c:193:35: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > if (cd->title[0]<1) cd->title[0]=cd->title[1]; > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >cddb.c:135:21: warning: arraycddev.c:272:2: warning: array index 4 is past the end of the array (which > contains 4 elements) [-Warray-bounds] > updates[U_ALL]=1; > ^ ~~~~~ >./mcdp.h:85:1: note: array 'updates' declared here >extern short pluskey,updates[4],offset; >^ >8 warnings and 1 error generated. > index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > cd_discid(&cd[0]),cd->title[1]); > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >cddb.c:136:14: warning: array index 1 is past the end of the array (which > contains 1 element) [-Warray-bounds] > for (i=1;i<=cd->title[1];i++) { > ^ ~ >./mcdp.h:73:2: note: array 'title' declared here > int title[1]; /* current/last title */ > ^ >make: *** [Makefile:51: cddev.o] Error 1 >make: *** Waiting for unfinished jobs.... >10 warnings generated. > * ERROR: media-sound/mcdp-0.4b::gentoo failed (compile phase): > * emake failed > * > * If you need support, post the output of `emerge --info '=media-sound/mcdp-0.4b::gentoo'`, > * the complete build log and the output of `emerge -pqv '=media-sound/mcdp-0.4b::gentoo'`. > * The complete build log is located at '/var/log/emerge-log/build/media-sound/mcdp-0.4b:20200706-090404.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-sound/mcdp-0.4b/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/media-sound/mcdp-0.4b/temp/environment'. > * Working directory: '/var/tmp/portage/media-sound/mcdp-0.4b/work/mcdp-0.4b' > * S: '/var/tmp/portage/media-sound/mcdp-0.4b/work/mcdp-0.4b' > > > >emerge --info: >Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r5, 5.4.0-1015-aws x86_64) >================================================================= >System uname: Linux-5.4.0-1015-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 >KiB Mem: 7895548 total, 1749268 free >KiB Swap: 0 total, 0 free >Timestamp of repository gentoo: Mon, 06 Jul 2020 08:05:26 +0000 >sh bash 5.0_p17 >ld GNU ld (Gentoo 2.34 p4) 2.34.0 >app-shells/bash: 5.0_p17::gentoo >dev-lang/perl: 5.30.3-r2::gentoo >dev-lang/python: 2.7.18::gentoo, 3.7.8-r1::gentoo, 3.8.3-r1::gentoo, 3.9.0_beta4::gentoo >dev-util/cmake: 3.18.0_rc3::gentoo >sys-apps/baselayout: 2.7::gentoo >sys-apps/openrc: 0.42.1::gentoo >sys-apps/sandbox: 2.20::gentoo >sys-devel/autoconf: 2.69-r5::gentoo >sys-devel/automake: 1.16.2::gentoo >sys-devel/binutils: 2.34-r1::gentoo >sys-devel/gcc: 10.1.0-r2::gentoo >sys-devel/gcc-config: 2.3.1::gentoo >sys-devel/libtool: 2.4.6-r6::gentoo >sys-devel/make: 4.3::gentoo >sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers) >sys-libs/glibc: 2.31-r5::gentoo >Repositories: > >gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://rsync.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-verify-metamanifest: yes > sync-rsync-verify-jobs: 1 > sync-rsync-extra-opts: > sync-rsync-verify-max-age: 24 > >ACCEPT_KEYWORDS="amd64 ~amd64" >ACCEPT_LICENSE="*" >CBUILD="x86_64-pc-linux-gnu" >CC="x86_64-pc-linux-gnu-clang" >CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >CHOST="x86_64-pc-linux-gnu" >CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" >CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" >CXX="x86_64-pc-linux-gnu-clang++" >CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >DISTDIR="/usr/portage/distfiles" >EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" >ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" >FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" >FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color" >GENTOO_MIRRORS="http://distfiles.gentoo.org" >LANG="C.UTF-8" >LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0" >MAKEOPTS="-j2 V=1" >PKGDIR="/root/.packages" >PORTAGE_CONFIGROOT="/" >PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" >PORTAGE_TMPDIR="/var/tmp" >USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" >Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 731012
: 647876