Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367435 - app-office/lyx-1.6.10 - insets/InsetInclude.cpp:809:37: error: uninitialized const ‘empty’ [-fpermissive]
Summary: app-office/lyx-1.6.10 - insets/InsetInclude.cpp:809:37: error: uninitialized ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 20:55 UTC by Chris Smith
Modified: 2011-05-23 16:22 UTC (History)
3 users (show)

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


Attachments
build log (app-office:lyx-1.6.10:20110515-204330.log,33.31 KB, text/plain)
2011-05-17 19:56 UTC, Chris Smith
Details
fix.patch (p.txt,403 bytes, patch)
2011-05-17 22:37 UTC, pavel sanda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2011-05-15 20:55:59 UTC
app-office/lyx-1.6.10 fails to compile

Reproducible: Always

Steps to Reproduce:
1. emerge =app-office/lyx-1.6.10
2.
3.
Actual Results:  
  CXX    InsetInclude.lo
insets/InsetInclude.cpp: In member function ‘const lyx::support::FileNameList& lyx::InsetInclude::getBibfilesCache(const lyx::Buffer&) const’:
insets/InsetInclude.cpp:809:37: error: uninitialized const ‘empty’ [-fpermissive]
./support/FileNameList.h:27:7: note: ‘const class lyx::support::FileNameList’ has no user-provided default constructor


Expected Results:  
should compile normally

emerge --info
Portage 2.1.9.49 (default/linux/amd64/10.0, gcc-4.6.0, glibc-2.13-r2, 2.6.38-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 15 May 2011 19:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.51.0.9
sys-devel/gcc:            4.5.2::local, 4.6.0
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j1"
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="/usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi addressbook alsa amd64 amr apache2 audiofile avahi avi bash-completion berkdb bzip2 cairo caps cdaudio cddb cdparanoia cdr cdrdao chm cli consolekit cracklib crypt cups curl cxx dbus designer-plugin devicekit djvu dri dts dv dvb dvd dvdr dvdread ebook encode exif fam ffmpeg flac fortran gdbm gif glitz gmp gnome gphoto2 gpm gps graphite gstreamer gtk gtk2 htmlhandbook iconv icu ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k kpathsea lame lcd lcms ldap libffi libnotify mad marble midi mmap mmx modules mozcalendar mozilla mp3 mudflap multilib musicbrainz ncurses nepomuk nls nodrm nptl nptlonly nsplugin nvidia ofx ogg oggvorbis opencore-amr openexr opengl openmp pam pcre pdf perl png policykit pppd pulseaudio python quicktime readline samba sasl scanner sdl semantic-desktop session slp smp sndfile spell sse sse2 ssl subversion svg sysfs tcltk theora threads tiff tk transparency truetype unicode usb utf8 vcd vim-syntax vorbis wav wavpack wmf x264 xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp" 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" CAMERAS="*" 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="en_US en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86 x86_64" QEMU_USER_TARGETS="i386 x86_64" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 pavel sanda 2011-05-16 18:41:43 UTC
i see gcc 4.6 :)

are you willing to experiment little bit?

if yes ctrl+z during emerge go to the compiling sources in /var/tmp/portage/app-office/lyx/1.6.10/src/insets/InsetInclude.cpp
go to line 809 and remove 'const' at that line. save and 'fg' to awake compilation again. if emerge proceeds please report back and i will prepare patch.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-17 18:26:26 UTC
Please attach the entire build log.
Comment 3 Chris Smith 2011-05-17 19:56:37 UTC
Created attachment 273713 [details]
build log
Comment 4 pavel sanda 2011-05-17 22:37:14 UTC
Created attachment 273729 [details, diff]
fix.patch
Comment 5 Chris Smith 2011-05-17 23:17:22 UTC
(In reply to comment #1)
> i see gcc 4.6 :)
> 
> are you willing to experiment little bit?

Just saw this... looks like you alrea
Comment 6 Chris Smith 2011-05-17 23:18:55 UTC
(In reply to comment #5)
> (In reply to comment #1)
> > i see gcc 4.6 :)
> > 
> > are you willing to experiment little bit?
> 
> Just saw this... looks like you alrea

Ooops, wrong key. Hate this keyboard!

I was saying - looks like you already came up with a patch... will try that when I get a moment. Thanks!
Comment 7 Alexis Ballier gentoo-dev 2011-05-23 03:00:47 UTC
fixed, thanks
Comment 8 pavel sanda 2011-05-23 15:06:32 UTC
so close it?
Comment 9 Alexis Ballier gentoo-dev 2011-05-23 16:22:52 UTC
indeed ;)