Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275537 - media-tv/mythtv-0.21_p19961-r2 error: invalid conversion from 'const char*' to 'char*'
Summary: media-tv/mythtv-0.21_p19961-r2 error: invalid conversion from 'const char*' t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 20:49 UTC by Tom Wunder
Modified: 2009-08-03 01:04 UTC (History)
2 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 Tom Wunder 2009-06-26 20:49:15 UTC
I'm trying to emerge mythtv on my currently updated System and I'm always getting the following error regardless of which version of mythtv I'm trying to build (Is there any guide I could use for installing mythtv (Maybe I'm missing some preparations I currently don't know of). I found nothing really helpful...):


...
g++ -c -pipe -march=i686 -fomit-frame-pointer -O3 -DNDEBUG -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -D_REENTRANT -DPIC -fPIC  -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I/usr/qt/3/mkspecs/linux-g++ -I/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/work/mythtv-0.21_p19961/libs/libmythfreemheg -I/usr/include -I/usr/include -I../libmythtv -I/usr/qt/3/include -o BaseActions.o BaseActions.cpp
Text.cpp: In function 'void InterpretAttributes(const MHOctetString&, int&, int&, int&, int&)':
Text.cpp:246: error: invalid conversion from 'const char*' to 'char*'
Text.cpp:253: error: invalid conversion from 'const char*' to 'char*'
Text.cpp:259: error: invalid conversion from 'const char*' to 'char*'
Text.cpp:265: error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [Text.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/work/mythtv-0.21_p19961/libs/libmythfreemheg'
make[1]: *** [sub-libmythfreemheg] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/work/mythtv-0.21_p19961/libs'
make: *** [sub-libs] Error 2
 *
 * ERROR: media-tv/mythtv-0.21_p19961-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3465:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/temp/environment'.




emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.4.0, glibc-2.10.1-r0, 2.6.30-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 26 Jun 2009 16:15:03 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j10"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi apm audiofile berkdb bzip2 cdr cli cracklib crypt ctype cups dri dvd dvdr dvdread encode fam ffmpeg fftw flac foomaticdb fortran ftp gd gdbm geoip ggi gif glut gpm gps gtk gtk2 iconv idn ieee1394 imagemagick imap imlib ipv6 isdnlog java javascript jpeg jpeg2k kerberos krb4 ldap lm_sensors midi mmx mng motif mozilla mp3 mpeg mudflap mysql ncurses nis nls nptl nptlonly ogg openmp pam pcre perl php png ppds pppd python quicktime readline reflection samba scanner session slp snmp spl ssl svg sysfs tcpd tiff truetype unicode usb vcd vorbis wifi win32codecs wmf x86 xine xinerama xml xml2 xorg xpm xsl xv zlib" 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 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" ELIBC="glibc" FOO2ZJS_DEVICES="km2430" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa mach64"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Reproducible: Always

Steps to Reproduce:
1. emerge -av mythtv

Actual Results:  
Text.cpp: In function 'void InterpretAttributes(const MHOctetString&, int&, int&, int&, int&)':
Text.cpp:246: error: invalid conversion from 'const char*' to 'char*'
Text.cpp:253: error: invalid conversion from 'const char*' to 'char*'
Text.cpp:259: error: invalid conversion from 'const char*' to 'char*'
Text.cpp:265: error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [Text.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/work/mythtv-0.21_p19961/libs/libmythfreemheg'
make[1]: *** [sub-libmythfreemheg] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-tv/mythtv-0.21_p19961-r2/work/mythtv-0.21_p19961/libs'
make: *** [sub-libs] Error 2

Expected Results:  
the mythtv ebuild should compile and install completely without errors
Comment 1 James Le Cuirot gentoo-dev 2009-07-05 16:48:38 UTC
That's why GCC 4.4 is masked. ;) This seems to be your problem.
http://blog.flameeyes.eu/2009/07/02/how-_not_-to-fix-gcc-4-4-bugs
Comment 2 James Le Cuirot gentoo-dev 2009-07-05 16:58:11 UTC
Actually it's glibc, sorry. In any case, this is a duplicate of bug #272358.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2009-08-03 01:04:03 UTC
Please use at least mythtv-0.21_p20877 or newer when using glibc 2.10 or higher.