Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 387283

Summary: net-voip/linphone-3.3.2 - linphonecore.c:2460: error: incompatible type for argument 2 of 'video_preview_start'
Product: Gentoo Linux Reporter: progserega <progserega>
Component: Current packagesAssignee: voip herd (OBSOLETE) <voip+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal CC: pva, volkmar
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.bz2

Description progserega 2011-10-16 09:50:23 UTC
Failed to emerge net-voip/linphone-3.3.2 with error:

/bin/sh ../libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -D_REENTRANT       -DIN_LINPHONE -D_REENTRANT   -DOSIP_MT   -DOSIP_MT   -DOSIP_MT  -DENABLE_TRACE -DLOG_DOMAIN=\"LinphoneCore\"  -DORTP_INET6   -O3 -march=amdfam10 -pipe -c -o sal_eXosip2_sdp.lo sal_eXosip2_sdp.c
linphonecore.c: In function 'linphone_core_stop_media_streams':
linphonecore.c:2460: warning: passing argument 1 of 'video_preview_start' from incompatible pointer type
/usr/include/mediastreamer2/mediastream.h:263: note: expected 'struct VideoPreview *' but argument is of type 'struct _MSWebCam *'
linphonecore.c:2460: error: incompatible type for argument 2 of 'video_preview_start'
/usr/include/mediastreamer2/mediastream.h:263: note: expected 'struct MSWebCam *' but argument is of type 'MSVideoSize'
linphonecore.c: In function 'linphone_core_preview_ring':
linphonecore.c:2952: warning: passing argument 4 of 'ring_start_with_cb' from incompatible pointer type
/usr/include/mediastreamer2/mediastream.h:151: note: expected 'MSFilterNotifyFunc' but argument is of type 'void (*)(void *, unsigned int,  void *)'
linphonecore.c: In function 'toggle_video_preview':
linphonecore.c:3172: warning: passing argument 1 of 'video_preview_start' from incompatible pointer type
/usr/include/mediastreamer2/mediastream.h:263: note: expected 'struct VideoPreview *' but argument is of type 'struct _MSWebCam *'
linphonecore.c:3172: error: incompatible type for argument 2 of 'video_preview_start'
/usr/include/mediastreamer2/mediastream.h:263: note: expected 'struct MSWebCam *' but argument is of type 'MSVideoSize'
linphonecore.c: In function 'linphone_core_set_static_picture':
linphonecore.c:3323: error: 'MS_FILTER_SET_IMAGE' undeclared (first use in this function)
linphonecore.c:3323: error: (Each undeclared identifier is reported only once
linphonecore.c:3323: error: for each function it appears in.)
make[3]: *** [linphonecore.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/net-voip/linphone-3.3.2/work/linphone-3.3.2/coreapi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-voip/linphone-3.3.2/work/linphone-3.3.2/coreapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-voip/linphone-3.3.2/work/linphone-3.3.2'
make: *** [all] Error 2
emake failed
 * ERROR: net-voip/linphone-3.3.2 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3105:  Called _eapi2_src_compile
 *     ebuild.sh, line  665:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =net-voip/linphone-3.3.2',
 * the complete build log and the output of 'emerge -pqv =net-voip/linphone-3.3.2'.
 * The complete build log is located at '/var/tmp/portage/net-voip/linphone-3.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-voip/linphone-3.3.2/temp/environment'.
 * S: '/var/tmp/portage/net-voip/linphone-3.3.2/work/linphone-3.3.2'


Reproducible: Always
Comment 1 progserega 2011-10-16 09:52:09 UTC
Created attachment 289937 [details]
build.log.bz2
Comment 2 progserega 2011-10-16 09:53:15 UTC
emerge --info
Portage 2.1.10.3 (default/linux/x86/10.0, gcc-4.4.4, unavailable, 2.6.39-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-i686-AMD_Athlon-tm-_II_X2_255_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 12 Oct 2011 02:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p7
dev-java/java-config:     2.1.11
dev-lang/python:          2.5.4-r2::<unknown repository>, 2.6.5-r3, 3.1.2-r4
dev-util/ccache:          2.4-r7
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.1
sys-apps/openrc:          9999
sys-apps/sandbox:         2.3-r1
sys-devel/autoconf:       2.13::<unknown repository>, 2.65-r1
sys-devel/automake:       1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            3.4.6-r2::<unknown repository>, 4.4.4-r2
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.81-r2
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.5-r4::<unknown repository>, 2.11.3
Repositories: gentoo rion bircoph bitcoin x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA DOOM3 googleearth skype-eula AdobeFlash-10 AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=amdfam10 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -march=amdfam10 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rion /var/lib/layman/bircoph /var/lib/layman/bitcoin /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acpi alsa artist-screen audio bash-completion berkdb bluetooth bzip2 cairo cdr clamav cli clock-screen colors consolekit cpudetection cracklib crypt cue curl custom-cpuopts custom-optimization cxx cyrillic daemon dga dirac directfb djvu dri dtmf dvd dvdnav dvdr enca encode esd exif extras faac faad fbcon ffmpeg fits flac fontconfig fontforge fortran ftp gd gdal gdbm geolocation geos gif git glitz gnutls gpg gpgme gpm gps gsm gstreamer gtk h224 h281 h323 hddtemp hdf5 http iceweasel iconv icq idn ilbc imap imlib iostats ivr jabber jbig jingle jpeg jpeg2k key-screen kpathsea kqemu lirc logrotate lyrics-screen mbox mmx mmxext mod_muc modules mp2 mp3 mpd mpeg mrim mudflap musepack network nfs nls nntp nptl nptlonly nvidia ogdi ogg oggvorbis old-hd-rules opencore-amr opengl openmp oss otr pam pch pcre plasma plugins png pop postproc pppd proj pth qos qt3support qt4 radio raw readline roe rss rtc ru-dv ru-i ru-k sasl sdl search-screen session sidebar sip sipim slang smime soap song-screen sound spamassassin speex spell sql srt srtp sse ssl static-libs stats subversion svg symlink sysfs syslog tcpd tetex theora threads tiff tools tordns truetype type3 unicode usb userlocales v4l v4l2 vdpau vhook video vim-syntax vkontakte vorbis vp8 vpx vxml wav weather-metar weather-xoap webkit win32codecs winetools x264 x86 xcb xcomposite xinerama xml xmlrpc xmp xorg xosd xrandr xv xvid xvmc zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="all" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint nv vesa nvidia radeon radeonhd nouveau" 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
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 14:05:31 UTC
What mediastreamer version you have installed?
Comment 4 progserega 2011-10-22 22:09:09 UTC
[I--] [  ] media-libs/mediastreamer-2.7.3-r3 (0)
[I--] [  ] media-plugins/mediastreamer-ilbc-2.0.3 (0)
[I--] [  ] media-plugins/mediastreamer-x264-1.1.7 (0)
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2011-10-23 04:35:45 UTC
Ok, and could you tell me what USE flags you've used to build mediastreamer?
Comment 6 progserega 2011-10-23 05:21:27 UTC
equery u media-libs/mediastreamer                                                                                                                                                                                16:20 pts/7
[ Searching for packages matching media-libs/mediastreamer... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/mediastreamer-2.7.3-r3 ]
 U I
 + + X          : Adds support for X11
 + + alsa       : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - amr        : Use of AMR Narrow Band codec plugin
 - - bindist    : Flag to enable or disable options for prebuilt (GRP)  packages (eg. due to licensing issues)
 - - coreaudio  : Build the CoreAudio driver on Mac OS X systems
 - - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - examples   : Install examples, usually source code
 + + gsm        : Adds support for the gsm lossy speech compression codec
 + + ilbc       : Use of iLBC (RFC3951) codec plugin
 - - ipv6       : Adds support for IP version 6
 - - jack       : Adds support for the JACK Audio Connection Kit
 + + oss        : Adds support for OSS (Open Sound System)
 - - portaudio  : Adds support for the crossplatform portaudio audio API
 - - pulseaudio : Adds support for PulseAudio sound server
 + + sdl        : Adds support for Simple Direct Layer (media library)
 + + speex      : Adds support for the speex audio codec (used for speech)
 + + theora     : Adds support for the Theora Video Compression Codec
 + + v4l        : Enable support for video4linux (libv4l or v4l2 from sys-kernel/linux-headers)
 + + video      : Enable video support
 + + x264       : Enable h264 encoding using x264
Comment 7 Pacho Ramos gentoo-dev 2012-03-25 10:45:03 UTC
Try with 3.4.3-r1
Comment 8 Roman Belov 2012-10-23 16:24:00 UTC
I have a similar issues with 3.4.3-r1

  CC     lpconfig.lo
  CC     chat.lo
  CC     linphonecall.lo
  CC     sipsetup.lo
  CC     siplogin.lo
  CC     lsd.lo
lsd.c: In function 'lsd_player_set_gain':
lsd.c:218:9: error: 'MSAudioMixerCtl' has no member named 'gain'
make[3]: *** [lsd.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-voip/linphone-3.4.3-r1/work/linphone-3.4.3/coreapi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-voip/linphone-3.4.3-r1/work/linphone-3.4.3/coreapi'
make[1]: *** [all-recursive] Error 1

$ gvim /var/tmp/portage/net-voip/linphone-3.4.3-r1/work/linphone-3.4.3/coreapi/lsd.c
$ ebuild /usr/portage/net-voip/linphone/linphone-3.4.3-r1.ebuild compile

  CC     lsd.lo
  CC     ec-calibrator.lo
  CCLD   liblinphone.la
  CC     test_lsd.o
  CCLD   test_lsd
./.libs/liblinphone.so: undefined reference to `ms_filter_enable_synchronous_notifcations'
collect2: ld returned 1 exit status
make[3]: *** [test_lsd] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-voip/linphone-3.4.3-r1/work/linphone-3.4.3/coreapi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/ne

$ equery u mediastreamer linphone
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/mediastreamer-2.8.2:
 U I
 + + X           : Adds support for X11
 + + alsa        : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - amr         : Use of AMR Narrow Band codec plugin
 - - bindist     : Flag to enable or disable options for prebuilt (GRP)  packages (eg. due to licensing issues)
 - - debug       : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces
                   see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - examples    : Install examples, usually source code
 + + gsm         : Adds support for the gsm lossy speech compression codec
 - - ilbc        : Use of iLBC (RFC3951) codec plugin
 + + ipv6        : Adds support for IP version 6
 + + oss         : Adds support for OSS (Open Sound System)
 - - portaudio   : Adds support for the crossplatform portaudio audio API
 - - pulseaudio  : Adds support for PulseAudio sound server
 + + sdl         : Adds support for Simple Direct Layer (media library)
 + + speex       : Adds support for the speex audio codec (used for speech)
 - - static-libs : Build static libraries
 + + theora      : Adds support for the Theora Video Compression Codec
 + + video       : Enable video support
 + + x264        : Enable h264 encoding using x264

 * Found these USE flags for net-voip/linphone-3.4.3-r1:
 U I
 - - doc           : Adds extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of
                     globally
 + - gtk           : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
 + + ipv6          : Adds support for IP version 6
 - - linguas_cs    : Czech locale
 - - linguas_de    : German locale
 - - linguas_es    : Spanish locale
 - - linguas_fr    : French locale
 - - linguas_hu    : Hungarian locale
 - - linguas_it    : Italian locale
 - - linguas_ja    : Japanese locale
 - - linguas_nl    : Dutch locale
 - - linguas_pl    : Polish locale
 - - linguas_pt_BR : Portuguese locale for Brasil
 + + linguas_ru    : Russian locale
 - - linguas_sv    : Swedish locale
 - - linguas_zh_CN : Chinese locale for Peoples Republic of China
 + + ncurses       : Adds ncurses support (console display library)
 + + nls           : Adds Native Language Support (using gettext - GNU locale utilities)
 + + video         : Enable video support (display/capture)
Comment 9 Julian Ospald 2013-10-09 18:59:48 UTC
this version is gone