Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538500 - 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)
Summary: media-video/transcode-1.1.7-r3 with media-video/libav-11.2 - aud_aux.c:329:18...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 540246 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-02 05:35 UTC by Patrick Lauer
Modified: 2015-02-17 03:26 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2015-02-02 05:35:56 UTC
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Wall -Wstrict-prototypes -Wmissing-prototypes -march=native -O2 -pipe -ggdb -module -avoid-version -Wl,-O1 -Wl,--as-needed -o export_ac3.la -rpath /usr/lib64/transcode export_ac3.lo  -lm -lz -ldl 
libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  .libs/export_ac3.o   -Wl,--as-needed -lm -lz -ldl  -march=native -O2 -Wl,-O1   -Wl,-soname -Wl,export_ac3.so -o .libs/export_ac3.so
libtool: link: ( cd ".libs" && rm -f "export_ac3.la" && ln -s "../export_ac3.la" "export_ac3.la" )
/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=native -O2 -pipe -ggdb -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 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -march=native -O2 -pipe -ggdb -c export_divx5.c  -fPIC -DPIC -o .libs/export_divx5_la-export_divx5.o
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, avifile));
                                                      ^
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);
     ^
/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=native -O2 -pipe -ggdb -c -o export_divx5_la-aud_aux.lo `test -f 'aud_aux.c' || echo './'`aud_aux.c
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=native -O2 -pipe -ggdb -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(
           ^
Makefile:864: recipe for target 'export_divx5_la-aud_aux.lo' failed
make[2]: *** [export_divx5_la-aud_aux.lo] Error 1
make[2]: Leaving directory '/chroot/build/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 '/chroot/build/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


Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r1, 3.18.4-gentoo x86_64)
=================================================================
System uname: Linux-3.18.4-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7919076 total,   3783408 free
KiB Swap:   16777208 total,  16759692 free
Timestamp of tree: Unknown
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.4, 3.4.2
dev-util/cmake:           3.1.0
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4, 4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.5
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/chroot/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/"
INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/systemd"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="/chroot/build"
PORTDIR="/home/pl/code/gentoo-x86"
PORTDIR_OVERLAY=""
USE="X a52 aac acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli compat consolekit crypt cups curl cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif glamor gmp gnutls gpm gtk iconv icq idn imagemagick imap imlib innodb ipod ipv6 jabber javascript jingle jpeg jpeg2k kde kdehiddenvisibility kipi lame lcms libav libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn multilib musepack musicbrainz mysql ncurses nls nptl nsplugin offensive ogg openal opencl openexr opengl openmp oscar pam pango pcre pdf perl php plasma png policykit ppds python qt3support qt4 quicktime r600-llvm-compiler raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg syslog taglib tcpd threads tidy tiff tk truetype udev udisks unicode upower usb vdpau vlc vorbis wifi wmf wxwindows x264 xattr xcb xcomposite xine xinerama xml xmlrpc xpm xscreensaver xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel or32 ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 unicore32 xtensa xtensaeb" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze microblazeel mips mipsel or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Reto Gantenbein (ganto) 2015-02-12 21:54:37 UTC
Same here. Seems to be related to media-video/libav-11.2.
Comment 2 SpanKY gentoo-dev 2015-02-17 01:11:15 UTC
*** Bug 540246 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2015-02-17 02:54:31 UTC
Commit message: Handle renamed CODEC_ID defines
http://sources.gentoo.org/media-video/transcode/files/transcode-1.1.7-ffmpeg2.patch?r1=1.1&r2=1.2