Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231663

Summary: dev-tex/mpm- 2.7.3107 failes to compile on gcc-4.3.* (auto_ptr)
Product: Gentoo Linux Reporter: Nico Schlömer <nico.schloemer>
Component: [OLD] GCC PortingAssignee: TeX project <tex>
Status: RESOLVED FIXED    
Severity: normal CC: andres.becerra, fauli, spasswolf
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: Patch for compilation with gcc-4.3
ebuild for patch above
patch rejection

Description Nico Schlömer 2008-07-13 08:46:43 UTC
Well, when compiling MPM, all I get is a a nasty pile of auto_ptr errors (see below). This is a known bug, and has been reported before:

http://www.nabble.com/MikTeX-tools-won%E2%80%99t-compile-on-64-bit-Linux-td18256775.html

-- appearently some headers must be manually included.

Reproducible: Always

Actual Results:  
[ 55%] Building CXX object Libraries/MiKTeX/Core/CMakeFiles/MiKTeX207-core.dir/FileStream.o
Building CXX object Libraries/MiKTeX/Core/CMakeFiles/MiKTeX207-core.dir/FormatInfo.o
In file included from /var/tmp/paludis/dev-tex-mpm-2.7.3107/work/miktex-2.7.3107/Libraries/MiKTeX/Core/CommandLine.cpp:24:
/var/tmp/paludis/dev-tex-mpm-2.7.3107/work/miktex-2.7.3107/Libraries/MiKTeX/Core/internal.h:1408: error: ISO C++ forbids declaration of 'auto_ptr' with no type
/var/tmp/paludis/dev-tex-mpm-2.7.3107/work/miktex-2.7.3107/Libraries/MiKTeX/Core/internal.h:1421: error: expected ';' before '<' token
/var/tmp/paludis/dev-tex-mpm-2.7.3107/work/miktex-2.7.3107/Libraries/MiKTeX/Core/internal.h:1422: error: ISO C++ forbids declaration of 'auto_ptr' with no type
/var/tmp/paludis/dev-tex-mpm-2.7.3107/work/miktex-2.7.3107/Libraries/MiKTeX/Core/internal.h:1422: error: expected ';' before '<' token
make[2]: *** [Libraries/MiKTeX/Core/CMakeFiles/MiKTeX207-core.dir/FileStream.o] Error 1
make[2]: *** [Libraries/MiKTeX/Core/CMakeFiles/MiKTeX207-core.dir/FormatInfo.o] Error 1
make[1]: *** [Libraries/MiKTeX/Core/CMakeFiles/MiKTeX207-core.dir/all] Error 2
make: *** [all] Error 2

!!! ERROR in dev-tex/mpm-2.7.3107:
!!! In cmake-utils_src_make at line 905
!!! Make failed!

!!! Call stack:
!!!    * cmake-utils_src_make (/var/tmp/paludis/dev-tex-mpm-2.7.3107/temp/loadsaveenv:905)
!!!    * cmake-utils_src_compile (/var/tmp/paludis/dev-tex-mpm-2.7.3107/temp/loadsaveenv:865)
!!!    * src_compile (/var/tmp/paludis/dev-tex-mpm-2.7.3107/temp/loadsaveenv:3421)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:460)
!!!    * main (/usr/libexec/paludis/ebuild.bash:479)

diefunc: making ebuild PID 32709 exit with error
die trap: exiting with error.


Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.7-r2, 2.6.26-rc9 x86_64)
=================================================================
System uname: 2.6.26-rc9 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
Timestamp of tree: Sun, 13 Jul 2008 07:45:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/misc /usr/local/portage/kde /usr/local/portage/kdesvn"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 apache2 audiofile berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus divx dri dvd dvdread eds emboss encode evo fam ffmpeg fftw firefox fortran ftp gdbm gif gpm gstreamer hal iconv ifc imagemagick isdnlog isight jack java javascript jikes jpeg jpeg2k kdekdeenablefinal kdehiddenvisibility kdexdeltas kerberos ldap libnotify live madmidi mikmod minimal mmx mmxext mp3 mpeg mudflap multilib musepack nas ncurses nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session speex spell spl sse sse2 ssl ssse3 startup-notification svg tcpd theora tiff truetype unicode usb vcd videos vorbis wifi wmp xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 infolog_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="all" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tobias Müller 2008-07-14 16:28:06 UTC
Same here.

Portage 2.2_rc1 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5-twam x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-twam-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Mon, 14 Jul 2008 16:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -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"
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/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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://server.space.twam.info/gentoo-portage"
USE="X a52 aac acl acpi alsa amarok amazon amd64 amrnb arts asf async berkdb bluetooth bzip2 cddb cdio cdparanoia chipcard chm cli cracklib crypt css cups curl dbus dga dio doc dri dts dv dvb dvd dvdnav dvdr dvdread emul-linux-x86 encode epiphany exif expat fam fat fax fbcondecor ffmpeg fftw firefox flatfile foomaticdb fortran ftp gcj gd gdbm geldkarte gif gmedia gpm gps gtk hal hbci hddtemp humanities iconv icq idn imagemagick imap innodb isdnlog ithreads java javascript jpeg jpeg2k kde kerberos latex libwww live logitech-mouse lzo mad maildir mbox md5sum memlimit mhash midi mime mjpeg mmx mmxext mng mono mozilla mp2 mp3 mpeg mplayer mudflap multilib musepack music musicbrainz mysql nas ncurses nemesi nis nls nptl nptlonly nsplugin nvidia ogg ole omega openal opengl openmp pam pcre pcsc-lite pdf perl plotutils png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl sensord session simplexml slang smartcard snmp sockets socks5 speex spl srt sse sse2 ssl ssse3 svg svgz tcpd threads thunderbird tidy tiff truetype type1 unicode usb v4l v4l2 vcd visualization vlm vorbis wxwindows x264 xanim xinerama xml xmlrpc xorg xosd xsl xv xvid xvmc 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 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="evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Comment 2 Bert Karwatzki 2008-07-14 19:44:29 UTC
Created attachment 160378 [details, diff]
Patch for compilation with gcc-4.3

This Patch solves the Problem for me (gcc-4.3.1-r1, glibc-2.7-r2). I hope glibc-2.8 doesn't cause additional Problems.
Comment 3 Bert Karwatzki 2008-07-14 19:45:10 UTC
Created attachment 160380 [details]
ebuild for patch above
Comment 4 Nico Schlömer 2008-07-15 08:10:50 UTC
Patch application failed here:

patching file miktex-2.7.3107/Libraries/MiKTeX/PackageManager/internal.h
Hunk #1 FAILED at 28.
1 out of 1 hunk FAILED -- saving rejects to file miktex-2.7.3107/Libraries/MiKTeX/PackageManager/internal.h.rej

internal.h.rej is enclosed.
Comment 5 Nico Schlömer 2008-07-15 08:12:02 UTC
Created attachment 160423 [details]
patch rejection
Comment 6 Bert Karwatzki 2008-07-15 16:49:14 UTC
That's strange, did you apply the patch to a newly untarred miktex-2.7.3107 source tree, or was it already preprocessed in some way?
Comment 7 Nico Schlömer 2008-07-15 17:58:55 UTC
yeah, it's prolly my bad. i checked the files and everything seems okay, i even generated the patch myself and got what you uploaded, just it won't apply.

let's just wait for to confirm that the thing is working (tobi from comment #1?) or for me to have figured out what's going wrong, then it should be allright.
Comment 8 Franz Brauße 2008-07-16 09:26:56 UTC
Thanks, the patch and the new ebuild compile and work fine here with gcc-4.3.1 and glibc-2.8_p20080602.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2008-07-16 09:47:26 UTC
Thanks for the patch and report.  Is now fixed in CVS, please report it upstream.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2008-07-17 07:16:48 UTC
*** Bug 231965 has been marked as a duplicate of this bug. ***