Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502408 - mail-client/thunderbird-24.3 - clang: mailnews/base/search/src/nsMsgSearchTerm.cpp:200:13: error: assigning to 'const char *' from incompatible type 'char'
Summary: mail-client/thunderbird-24.3 - clang: mailnews/base/search/src/nsMsgSearchTer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2014-02-25 15:16 UTC by Toni Ballesta
Modified: 2014-03-21 13:27 UTC (History)
3 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 Toni Ballesta 2014-02-25 15:16:28 UTC
Compiling it with clang 3.4 causes error on nsMsgSearchTerm.cpp

[quote]mailnews/base/search/src/nsMsgSearchTerm.cpp:200:13: error: 
      assigning to 'const char *' from incompatible type 'char'
     *string = '\0'; // don't leave the string uninitialized
           ^ ~~~~
[/quote]

Error is located on the next page:
https://bugzilla.mozilla.org/show_bug.cgi?id=885538

The patch is there. Need to create the 24.3.0-r1 with this path.
Comment 1 Toni Ballesta 2014-02-25 15:17:21 UTC
Oops, the quote doesn't work... :(
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-26 22:41:29 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 3 Toni Ballesta 2014-02-27 07:26:03 UTC
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.31-gentoo x86_64)
=================================================================
System uname: Linux-3.10.31-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:     4054120 total,   2738724 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Sat, 22 Feb 2014 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc[3600] (dcc_mkdir) ERROR: mkdir '/var/tmp/portage/.distcc/state' failed: No such file or directory [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles keepwork merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://91.121.125.139/gentoo-distfiles/ http://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacplus aalib acl acpi ads aiglx alac alsa amd64 apache2 apng audacious automount berkdb bzip2 cairo caps cdda cddax cddb cdr cgi cli cracklib crypt cups curl cxx dbus declarative device-mapper directfb dri dvb dvd dvdr encode examples exif extras faac fbcon ffmpeg flac fortran freerdp ftp fuse gbm gd gdbm geoip gif gnutls gphoto2 gpm gtk gudev hddtemp hwdb iconv id3tag ipv6 jpeg jpeg2k kdrive kerberos krb5 lame ldap libcanberra libmad libnotify libsamplerate lm_sensors lua lzma lzo mad matroska md5sum mdnsresponder-compat midi mikmod minizip mjpeg mmx mmxext mng mod modplug modules mp3 mp4 mpeg mplayer multilib mysql ncurses nls nptl nsplugin ntfs odbc ogg oggvorbis openal opengl openmp openvg pam pango pcre pdf php php5 png postgres postgresql ppds python qt3support quicktime quota rdesktop rdp readline reiserfs samba scanner scsi sdl sensord server session shout slp sndfile snmp soap sqlite sse sse2 ssh ssl static-libs subtitles svg syslog system-libvncserver tcl tcpd theora threads thunar tidy tiff timidity tk toolbar truetype udev udisks unicode usb v4l v4l2 vboxwebsrv vcd vcdinfo vcdx virtualbox vnc vorbis wavpack winbind wma x264 xcomposite xend xinerama xml xmlreader xmlwriter xrandr xsl xvid zip zlib" ABI_X86="64" ALSA_CARDS="emu10k1 ice1712" 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="panasonic" 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 ublox ubx" GRUB_PLATFORMS="efi-32 efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" LINGUAS="es es_ES ca ca_ES" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev nv 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Toni Ballesta 2014-02-27 07:29:08 UTC
The build.log is very extensive, because compile the 99% of Thunderbird and it's very big. But is not necessary because the error is the same of the bug reported on Mozilla.org and attached here.
Comment 5 Bernard Cafarelli gentoo-dev 2014-03-03 13:53:20 UTC
@mozilla looks like this was only committed upstream in next version, not stable 24.x ?
Comment 6 Jory A. Pratt gentoo-dev 2014-03-08 01:04:41 UTC
(In reply to Bernard Cafarelli from comment #5)
> @mozilla looks like this was only committed upstream in next version, not
> stable 24.x ?

That is correct, we can request that the fix be landed on esr there are no guarantees tho.
Comment 7 Jory A. Pratt gentoo-dev 2014-03-08 01:08:54 UTC
(In reply to Jory A. Pratt from comment #6)
> (In reply to Bernard Cafarelli from comment #5)
> > @mozilla looks like this was only committed upstream in next version, not
> > stable 24.x ?
> 
> That is correct, we can request that the fix be landed on esr there are no
> guarantees tho.

Patch has been approved on the esr branch. This will resolve itself with 24.4.0
Comment 8 Jory A. Pratt gentoo-dev 2014-03-21 13:27:50 UTC
24.4 is in tree, confirmed to be working fine with clang.