After unmerging tetex and update world the texlive-core package is pulled in and fails with: gsftopk.c:420: error: redefinition of 'struct option' The behavior appears on every install (3 pc's). I followed the upgrade guide from http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml. Reproducible: Always Steps to Reproduce: 1. emerge -C tetex (and followed the upgrade guide at http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml) 2. emerge -uND world or emerge texlive 3. Actual Results: The build breaks with "gsftopk.c:420: error: redefinition of 'struct option'". Expected Results: The build runs without error.
dev64 / # emerge --info Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r7 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5 Timestamp of tree: Sun, 12 Apr 2009 00:20:01 +0000 distcc 3.0 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -momit-leaf-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -momit-leaf-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.intergenia.de http://gentoo.inode.at/" LANG="de_DE@euro" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de" 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="/usr/portage/local/layman/science /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X X509 Xaw3d a52 aac aalib accessibility acl acpi ada alsa amd64 amr apache2 arts async atk audiofile automount avahi berkdb bidi big-tables bl bonobo browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cgi chipcard chroot cjk clearcase cli cpudetection cracklib crypt cups cvs d dba dbus dga directfb divx4linux djbfft dlloader doc dri dtaus dts dv dvd dvdread ecc ecsm edl emacs enca encode erandom examples exif extraengine fam fb fbcon ffmpeg foomaticdb fortran fpx freetype gcj gdbm ggi gif gimp gimpprint glitz gnokii gnome gnutls gphoto2 gpm graphviz gtk hal haskell hbci hdf5 howl iconv idea ieee1394 imagemagick inkjar innodb ipv6 isdnlog ithreads jack java javamail javascript jbig jce jikes jms jmx jpeg jpeg2k junit kde kdeenablefinal kerberos kipi kpathsea lcms ldap libcaca lm_sensors log4j loop-aes lua lzo mad math matroska matrox mdnsresponder-compat midi mmx mmx2 mmxext mng modplug mono mozilla mozsvg mozxmlterm mp2 mp3 mpeg mudflap multilib musepack mysql mythtv nas ncurses nls nntp nptl nptlonly objc ogg openal openexr opengl openmp pam pascal pcre pda pdf perforce perl php physfs pic plotutils png ppds pppd pwdb python qt3 qt3support qt4 quotas readline reflection rhino rtc ruby samba sasl scanner sdl session sftplogging slang slp sndfile snmp source speex spell spl sql sqlite sse sse2 ssl subversion svg swat sysfs syslog tcltk tcpd tga theora threads tiff tk toolbar truetype truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 vcd vhosts visualization vlm wifi winbind wmf x264 xanim xattr xcb xcomposite xine xinerama xml xorg xosd xprint xulrunner xv xvid xvmc zeroconf 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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="de" USERLAND="GNU" VIDEO_CARDS="mga nv s3 s3virge savage sis sisusb trident tseng v4l vesa via vmware voodoo r128 radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 188039 [details] Build log
The problem cames from a quite old getopt.h inside /usr/local/include, shadowing the current one. It has nothing to do with this ebuild or with texlive.