Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412605 - media-plugins/mediastreamer-amr-0.0.1 - msamr.c:24:24: fatal error: interf_dec.h: No such file or directory
Summary: media-plugins/mediastreamer-amr-0.0.1 - msamr.c:24:24: fatal error: interf_de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-19 07:21 UTC by Ben
Modified: 2012-11-19 20:55 UTC (History)
9 users (show)

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


Attachments
fix_include_path.patch (file_412605.txt,491 bytes, text/plain)
2012-05-19 20:43 UTC, Shubhadeep Chaudhuri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben 2012-04-19 07:21:14 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/work/msamr-0.0.1 ...
make -j12 
Making all in src
make[1]: Entering directory `/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/work/msamr-0.0.1/src'
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"msamr\" -DPACKAGE_TARNAME=\"msamr\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"msamr\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"msamr\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -D_REENTRANT -DORTP_INET6     -march=native -mtune=generic -O2 -pipe -Wall -c -o libmsamr_la-msamr.lo `test -f 'msamr.c' || echo './'`msamr.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"msamr\" -DPACKAGE_TARNAME=\"msamr\" -DPACKAGE_VERSION=\"0.0.1\" "-DPACKAGE_STRING=\"msamr 0.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"msamr\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -D_REENTRANT -DORTP_INET6 -march=native -mtune=generic -O2 -pipe -Wall -c msamr.c  -fPIC -DPIC -o .libs/libmsamr_la-msamr.o
msamr.c:24:24: fatal error: interf_dec.h: No such file or directory
compilation terminated.
make[1]: *** [libmsamr_la-msamr.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/work/msamr-0.0.1/src'
make: *** [all-recursive] Error 1
 * ERROR: media-plugins/mediastreamer-amr-0.0.1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =media-plugins/mediastreamer-amr-0.0.1',
 * the complete build log and the output of 'emerge -pqv =media-plugins/mediastreamer-amr-0.0.1'.
 * The complete build log is located at '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/temp/environment'.
 * S: '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/work/msamr-0.0.1'

>>> Failed to emerge media-plugins/mediastreamer-amr-0.0.1, Log file:

>>>  '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/temp/build.log'

 * Messages for package media-plugins/mediastreamer-amr-0.0.1:

 * ERROR: media-plugins/mediastreamer-amr-0.0.1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =media-plugins/mediastreamer-amr-0.0.1',
 * the complete build log and the output of 'emerge -pqv =media-plugins/mediastreamer-amr-0.0.1'.
 * The complete build log is located at '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/temp/environment'.
 * S: '/var/tmp/portage/media-plugins/mediastreamer-amr-0.0.1/work/msamr-0.0.1'
Comment 1 Ben 2012-04-19 07:23:01 UTC
Portage 2.1.10.56 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.3.2-gentoo x86_64)
=================================================================
System uname: Linux-3.3.2-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.1
Timestamp of tree: Thu, 19 Apr 2012 06:45:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 amr amr_nb amr_wb apache2 apic apng arts ati audiofile berkdb bzip2 cdda cddb cdr cli cpufreq cracklib crypt ctype cups curl cxx dba dbus dri dvd dvdr dvdread embedded encode fbcon fbcondecor firefox fontconfigfbdev fortran gallium gd gdbm gif gimp gpm hal i810 iconv icu imagemagick innodb ipv6 ithreads java javascript jpeg jpeg2k jpg kde lame mgcj minizipmplayer mmx mmxext mng modules mozilla mp3 mp4 mpeg msn mudflap multilib mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf png ppds pppd pthreads pythonqt3 qt3support qt4 rdesktop readline samba script sdl session simplexml sip smp spell sse sse2 ssl ssse3 svg sysfs syslog tcl tcpd threads tiff truetype tv unicode usb v4l v4l2 vesa vga video vim-syntax wav wavpack webkit wifi x264 xcb xine xinerama xml xmlwriter xorg xosd xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="nb php cnd ide" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Philipp Richter 2012-05-19 19:23:15 UTC
media-libs/opencore-amr provides the headers interf_dec.h, interf_enc.h in /usr/include/opencore-amrnb but the pkg-config script opencore-amrnb.pc does not specify that subdirectory in its include directives!
A solution would be to patch the source files with
#include <opencore-amrnb/interf_dec.h> 
#include <opencore-amrnb/interf_enc.h>
instead of
#include <interf_dec.h> 
#include <interf_enc.h>

Or add the include directive in the ebuild. But maybe specifying the correct include directives in the pkg-config script of media-libs/opencore-amr would be the more sensible approach?
Comment 3 Shubhadeep Chaudhuri 2012-05-19 20:43:24 UTC
Created attachment 312309 [details]
fix_include_path.patch

Since error occurs because of missing include files, here is a patch that adds the include path to the CFLAGS.
Comment 4 Andrew Savchenko gentoo-dev 2012-06-01 18:21:54 UTC
Since pkg-config --cflags opencore-amr returns nothing, it is assumed that applications should use
#include <opencore-amrnb/interf_dec.h> 
#include <opencore-amrnb/interf_enc.h>
headers.

So the proper way to fix this will be to patch include directives, not CFLAGS.
Comment 5 Nikoli 2012-06-16 09:39:44 UTC
Same problem after update to media-libs/vo-amrwbenc-0.1.1
Comment 6 Mattia Rossi 2012-08-03 11:28:59 UTC
I've just done an emerge -uNDe world, and I run into this bug. Emerge failed, the patch fixed it.

Given that this bug is around since 3 months now, wouldn't it be good to include the patch as is in portage for the time being to fix the ebuild?
Then create an r2 when you come up with a better idea...
Comment 7 Juraj Variny 2012-09-20 21:02:19 UTC
Same problem here, I have temporarily fixed it without patching by running:

CPATH=/usr/include/opencore-amrnb emerge -1v media-plugins/mediastreamer-amr-0.0.1
Comment 8 Guy 2012-10-08 20:22:03 UTC
(In reply to comment #7)
> Same problem here, I have temporarily fixed it without patching by running:
> 
> CPATH=/usr/include/opencore-amrnb emerge -1v
> media-plugins/mediastreamer-amr-0.0.1

Thank you for the tip. That worked for me as well.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-11-19 20:55:09 UTC
Fixed with a patch from Andrew Savchenko.