Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271052 - app-text/texlive-core-2008-r5 fails to compile with glibc-2.10.1/gcc-4.4 combo
Summary: app-text/texlive-core-2008-r5 fails to compile with glibc-2.10.1/gcc-4.4 combo
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
: 271627 (view as bug list)
Depends on:
Blocks: glibc-2.10
  Show dependency tree
Reported: 2009-05-24 12:31 UTC by Peter Alfredsen (RETIRED)
Modified: 2009-06-08 14:18 UTC (History)
4 users (show)

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

logfile (app-text:texlive-core-2008-r5:20090524-122242.log,176.76 KB, text/plain)
2009-05-24 12:32 UTC, Peter Alfredsen (RETIRED)
Patch to fix const checks (220_all_gcc44-glibc210.patch,1.23 KB, patch)
2009-05-25 15:23 UTC, Jussi Kosunen
Details | Diff
Ebuild which applies the patch (texlive-core-2008-r5.ebuild,11.33 KB, text/plain)
2009-05-25 15:23 UTC, Jussi Kosunen

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2009-05-24 12:31:25 UTC
Looks like the const checks introduced in glibc-2.10.1 are only being hit when gcc-4.4 is also installed:

x86_64-pc-linux-gnu-g++ -O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -pipe -Wall -ggdb -DHAVE_CONFIG_H -I.. -I./.. -I. -I. -I../../../texk -I./../../../texk -DPDF_PARSER_ONLY -c
x86_64-pc-linux-gnu-gcc -O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -pipe -Wall -ggdb -DHAVE_CONFIG_H -I.. -I./.. -I. -I. -I../../../texk -I./../../../texk -c parseargs.c In function 'GString* grabPath(const char*)': error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [gfile.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/app-text/texlive-core-2008-r5/work/texlive-20080816-source/libs/xpdf/goo'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-text/texlive-core-2008-r5/work/texlive-20080816-source/libs/xpdf'
make: *** [all] Error 1
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-24 12:32:51 UTC
Created attachment 192295 [details]

Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.10.1-r0, x86_64)
System uname: Linux-
Timestamp of tree: Sun, 24 May 2009 11:45:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
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="amd64 ~amd64"
CFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -pipe -Wall -ggdb"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /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/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="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 -mtune=core2 -pipe -Wall -ggdb"
FEATURES="buildpkg distlocks fixlafiles fixpackages installsources multilib-strict parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
LINGUAS="en da"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/dirtyepic /home/pa/loki_overlay /home/pa/dotnet-overlay /home/pa/poppler-overlay"
USE="3dnow 3dnowext X a52 aac acpi aiglx aim alsa amarok amd64 archive authdaemond avahi bash-completion berkdb bidi bzip2 cairo cdda cddb cdparanoia cdr cdrtools cgi cjk cleartype cli consolekit cpudetection cracklib crypt css cups curl dbus dirac directfb djbfft djvu dri dts dvd dvdr dvdread encode evdev exif fam fastcgi fbcon ffmpeg firefox flac fontconfig fortran ftp gadu gif glib gnome gnutls gphoto2 gpm graphviz gstreamer gtk hal hbci iconv icq icu idea ieee1394 imagemagick imap imlib isdnlog jabber java javascript jbig jpeg jpeg2k kdeenablefinal kdeprefix lcd libnotify logitech-mouse logrotate lzma lzo mad matroska mbox metric midi mikmod mime mmx mmxext mng mono moznopango mp3 mp4 mpeg mplayer msn mudflap multilib musepack ncurses network-cron nls nocd nptl nptlonly objc objc++ objc-gc offensive ogg openal openexr opengl openmp oscar pam pcre pdf perl php png pop ppds pppd python qt3support qt4 quicktime readline reflection rle sasl schroedinger sdl sensord session shorten slang smime sms speex spell spl sse sse2 ssl ssse3 svg sysfs t1lib tcpd texteffect theora threads tiff translator truetype unicode usb vcd vorbis wavpack wmf wxwindows x264 xanim xcb xface xfce xine xml xmlrpc xorg xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zip 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 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en da" USERLAND="GNU" VIDEO_CARDS="vesa i810 intel"
Comment 2 Jussi Kosunen 2009-05-25 15:22:10 UTC
Not entirely sure of the procedure, but I've attached a bug and ebuild to fix this. Just adding some const keywords worked.
Comment 3 Jussi Kosunen 2009-05-25 15:23:11 UTC
Created attachment 192410 [details, diff]
Patch to fix const checks
Comment 4 Jussi Kosunen 2009-05-25 15:23:44 UTC
Created attachment 192412 [details]
Ebuild which applies the patch
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-31 14:21:38 UTC
*** Bug 271627 has been marked as a duplicate of this bug. ***
Comment 6 Alexis Ballier gentoo-dev 2009-06-08 14:18:49 UTC
applied, thanks