| Summary: | media-video/transcode-1.1.7-r3 with media-video/libav-11.2 - aud_aux.c:329:18: error: 'CODEC_ID_MP2' undeclared (first use in this function) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | klaus818 |
| Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
*** This bug has been marked as a duplicate of bug 538500 *** |
If you switch from ffmpeg to libav, you had to rebuild some packages. With libav-11.2 I can't compile transcode-1.1.7-r3. With ffmpeg I have no problems. Making all in export make[2]: Entering directory '/var/tmp/portage/media-video/transcode-1.1.7-r3/work/transcode-1.1.7/export' /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c -o export_ac3.lo export_ac3.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c -o export_divx5_la-export_divx5.lo `test -f 'export_divx5.c' || echo './'`export_divx5.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c export_ac3.c -fPIC -DPIC -o .libs/export_ac3.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c export_divx5.c -fPIC -DPIC -o .libs/export_divx5_la-export_divx5.o export_ac3.c: In function 'export_ac3_encode': export_ac3.c:146:22: warning: pointer targets in passing argument 1 of 'p_write' differ in signedness [-Wpointer-sign] if (p_write (param->buffer, param->size) != param->size) ^ export_ac3.c:41:19: note: expected 'char *' but argument is of type 'uint8_t *' static inline int p_write (char *buf, size_t len) ^ /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c -o export_divx5_la-aud_aux.lo `test -f 'aud_aux.c' || echo './'`aud_aux.c export_divx5.c: In function 'export_divx5_encode': export_divx5.c:699:54: warning: pointer targets in passing argument 1 of 'tc_audio_encode' differ in signedness [-Wpointer-sign] if(param->flag == TC_AUDIO) return(tc_audio_encode(param->buffer, param->size ^ In file included from export_divx5.c:62:0: aud_aux.h:33:5: note: expected 'char *' but argument is of type 'uint8_t *' int tc_audio_encode(char *aud_buffer, int aud_size, avi_t *avifile); ^ libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c aud_aux.c -fPIC -DPIC -o .libs/export_divx5_la-aud_aux.o aud_aux.c: In function 'tc_audio_init_ffmpeg': aud_aux.c:329:18: error: 'CODEC_ID_MP2' undeclared (first use in this function) codeid = CODEC_ID_MP2; ^ aud_aux.c:329:18: note: each undeclared identifier is reported only once for each function it appears in aud_aux.c:332:18: error: 'CODEC_ID_AC3' undeclared (first use in this function) codeid = CODEC_ID_AC3; ^ aud_aux.c: In function 'tc_audio_encode_mp3': aud_aux.c:757:17: warning: pointer targets in passing argument 5 of 'lame_encode_buffer' differ in signedness [-Wpointer-sign] output+output_len, ^ In file included from aud_aux.c:41:0: /usr/include/lame/lame.h:715:11: note: expected 'unsigned char *' but argument is of type 'char *' int CDECL lame_encode_buffer ( ^ aud_aux.c:764:17: warning: pointer targets in passing argument 4 of 'lame_encode_buffer_interleaved' differ in signedness [-Wpointer-sign] output + output_len, ^ In file included from aud_aux.c:41:0: /usr/include/lame/lame.h:730:11: note: expected 'unsigned char *' but argument is of type 'char *' int CDECL lame_encode_buffer_interleaved( ^ aud_aux.c:814:39: warning: pointer targets in passing argument 1 of 'tc_get_mp3_header' differ in signedness [-Wpointer-sign] while((size=tc_get_mp3_header(output+offset, NULL, NULL)) > 0) ^ aud_aux.c:140:12: note: expected 'unsigned char *' but argument is of type 'char *' static int tc_get_mp3_header(unsigned char* hbuf, int* chans, int* srate); ^ aud_aux.c: In function 'tc_audio_encode_ffmpeg': aud_aux.c:870:5: warning: implicit declaration of function 'avcodec_encode_audio' [-Wimplicit-function-declaration] out_size = avcodec_encode_audio(&mpa_ctx, (unsigned char *)output, ^ aud_aux.c: In function 'tc_audio_close': aud_aux.c:1038:46: warning: pointer targets in passing argument 2 of 'lame_encode_flush' differ in signedness [-Wpointer-sign] outsize = lame_encode_flush(lgf, output, 0); ^ In file included from aud_aux.c:41:0: /usr/include/lame/lame.h:856:11: note: expected 'unsigned char *' but argument is of type 'char *' int CDECL lame_encode_flush( ^ /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c -o export_divx5_la-divx4_vbr.lo `test -f 'divx4_vbr.c' || echo './'`divx4_vbr.c Makefile:864: recipe for target 'export_divx5_la-aud_aux.lo' failed make[2]: *** [export_divx5_la-aud_aux.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/lib64/transcode\" -I.. -I../src -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe -c divx4_vbr.c -fPIC -DPIC -o .libs/export_divx5_la-divx4_vbr.o divx4_vbr.c: In function 'VbrControl_init_2pass_vbr_encoding': divx4_vbr.c:151:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread(head, 10, 1, m_pFile); ^ divx4_vbr.c:157:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(m_pFile, "%d\n", &version); ^ divx4_vbr.c:158:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(m_pFile, "quality %d\n", &iOldQual); ^ divx4_vbr.c:204:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(m_pFile, "Frame %d: intra %d, quant %d, texture %d, " ^ divx4_vbr.c:236:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(m_pFile, "Frame %d: intra %d, quant %d, texture %d, " ^ make[2]: Leaving directory '/var/tmp/portage/media-video/transcode-1.1.7-r3/work/transcode-1.1.7/export' Makefile:474: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-video/transcode-1.1.7-r3/work/transcode-1.1.7' Makefile:381: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: media-video/transcode-1.1.7-r3::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-video/transcode-1.1.7-r3::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-video/transcode-1.1.7-r3::gentoo'`. * The complete build log is located at '/var/tmp/portage/media-video/transcode-1.1.7-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/transcode-1.1.7-r3/temp/environment'. * Working directory: '/var/tmp/portage/media-video/transcode-1.1.7-r3/work/transcode-1.1.7' * S: '/var/tmp/portage/media-video/transcode-1.1.7-r3/work/transcode-1.1.7' >>> Failed to emerge media-video/transcode-1.1.7-r3 Reproducible: Always Portage 2.2.17 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.9.2, glibc-2.20-r1, 3.19.0-gentoo x86_64) ================================================================= System uname: Linux-3.19.0-gentoo-x86_64-Intel-R-_Pentium-R-_CPU_B960_@_2.20GHz-with-gentoo-2.2 KiB Mem: 3897536 total, 987212 free KiB Swap: 8191996 total, 8115400 free Timestamp of repository gentoo: Mon, 16 Feb 2015 02:45:01 +0000 sh bash 4.3_p33-r1 ld GNU ld (Gentoo 2.25 p1.0) 2.25 app-shells/bash: 4.3_p33-r1::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.2::gentoo dev-util/cmake: 3.1.0::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.13.9::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25::gentoo sys-devel/gcc: 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: git://git.overlays.gentoo.org/proj/kde.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-march=corei7-avx -mno-avx -mno-aes -mno-rdrnd -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 berkdb branding btrfs bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif extraengine fam fat ffmpeg firefox flac fortran gdbm geoip gif glamor google gpm gtk iconv ipv6 jpeg kde kdepim kipi lcms ldap libav libnotify live lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ntfs ntp ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds pulseaudio qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sync-plugin-portage systemd tcpd theora thumbnail tiff truetype udev udisks unicode upnp upower usb vaapi vorbis vpx webp wxwidgets x264 x265 xcb xcomposite xinerama xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="niash" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON