Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475494 - app-text/liblangtag - .../work/liblangtag-0.5.1/liblangtag/lt-trie.c:40:3: error: redefinition of typedef 'lt_trie_iter_t'
Summary: app-text/liblangtag - .../work/liblangtag-0.5.1/liblangtag/lt-trie.c:40:3: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-02 12:12 UTC by Ulrich Fieseler
Modified: 2013-07-30 07:09 UTC (History)
1 user (show)

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


Attachments
build.log from emerge -B liblangtag with gcc 4.5.4 (build.log,61.05 KB, text/x-log)
2013-07-02 19:36 UTC, Ulrich Fieseler
Details
liblangtag-0.5.1 with gcc -4.5.4 build.log (build.log,54.28 KB, text/plain)
2013-07-29 10:27 UTC, Jack MacNaught
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Fieseler 2013-07-02 12:12:55 UTC
Recent update of app-office/libreoffice (to 4.0.4.2) depends on app-text/liblangtag. Trying to emerge the latter with gcc 4.5.4 in place (more precisely, set to x86_64-pc-linux-gnu-4.5.4 using gcc-config), compilation fails with error message "error: redefinition of typedef 'lt_trie_iter_t'". Googling that brings up https://bitbucket.org/tagoh/liblangtag/pull-request/3/fix-duplicate-typedef-introduced-in . According to that the problem may be compiler-dependent, so I tried gcc 4.6.3 (changed using gcc-config to x86_64-pc-linux-gnu-4.6.3, required for libreoffice anyway) and all went fine.

liblangtag's ebuild should be changed to make sure gcc 4.6.3 (or whatever least version appropriate) is used (like libreoffice's ebuild does) or the source fix suggested under the upstream URL above should be used.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-02 14:42:03 UTC
I cannot confirm this with gcc-4.5.3 or gcc-4.5.4.

1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Ulrich Fieseler 2013-07-02 19:36:07 UTC
Created attachment 352468 [details]
build.log from emerge -B liblangtag with gcc 4.5.4
Comment 3 Ulrich Fieseler 2013-07-02 19:38:06 UTC
Output of emerge --info:

Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.5.4, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.2
KiB Mem:    16439068 total,    403928 free
KiB Swap:   25165820 total,  25165820 free
Timestamp of tree: Tue, 02 Jul 2013 01:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
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
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo kde-sunset local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo http://distfiles.gentoo.org"
LANG="de_DE"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /usr/local/portage"
SYNC="rsync://ftp.halifax.rwth-aachen.de/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacplus aacs acl acpi alsa amd64 amr avahi berkdb bittorrent blas bluetooth bluray branding bzip2 cairo caps cblas-external cdda cddb cdparanoia cdr cg chm cli consolekit cracklib crypt cuda cups cxx dbus declarative dga djvu dri dts dv dvb dvd dvdr dvi ebook emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran g3dvl gdbm gif git glew glut gphoto2 gpm graphviz gsm gstreamer gtk http iconv id3tag idn ieee1394 imagemagick java jpeg kde kipi kpathsea ladspa lame lapack latex lcms ldap libnotify libvisual lzma mad mercurial mms mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses network nls nptl nsplugin nvidia ogg okular openal opencl opengl openmp openssl pam pango pcre pdf phonon plasma png policykit postproc postscript ppds pstricks qt3 qt3support qt4 qthelp quicktime readline rtmp samba scanner schroedinger sdl semantic-desktop session sndfile speex spell sse sse2 sse3 sse4a ssl startup-notification subversion svg t1lib tcpd theora threads thumbnail tiff truetype udev udisks upower usb v4l v4l2 vcd vdpau vorbis vpx wavpack windeco wmf wxwidgets x264 xcb xcomposite xine xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" 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" 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="ptp2 agfa_cl20" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="snapscan hp" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev" 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, USE_PYTHON
Comment 4 Jack MacNaught 2013-07-29 10:27:07 UTC
Created attachment 354490 [details]
liblangtag-0.5.1 with gcc -4.5.4 build.log
Comment 5 Jack MacNaught 2013-07-29 10:29:16 UTC
I am have the same issue, build failing on gcc-4.5.4



Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.2
KiB Mem:    12305576 total,   8047624 free
KiB Swap:     499708 total,    499708 free
Timestamp of tree: Mon, 29 Jul 2013 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
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
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 avahi avi berkdb bitmap-fonts bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dirac divx4linux dri dts dv dvb dvd dvdr dvdread encode exif fame firefox flac foomaticdb fortran fuse gdbm gdu gif gnome gphoto2 gpm gstreamer gtk gtk2 iconv id3tag introspection ipv6 java jpeg lcd libnotify lirc\ lm_sensors mad matroska mime mmx modules mono mp3 mp4 mpeg mtp mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre png policykit ppds quicktime readline samba schroedinger sdl session sse sse2 ssl subtitles tcpd theora tiff tk truetype truetype-fonts type1-fonts uk_bleb uk_rt unicode upnp usb vorbis x264 xine xulrunner xv xvid xvmc zlib" ABI_X86="64" 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" 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 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nouveau vesa radeon" 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, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 6 Fabio Rossi 2013-07-29 21:31:44 UTC
I have solved by applying the patch at https://bitbucket.org/tagoh/liblangtag/commits/4a5ec00d229d9ccf293dc21ce64eb42de7e8118c/raw/
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2013-07-30 07:09:20 UTC
Thanks for finding the patch. Fixed in cvs.