Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118264 - app-text/tetex-2.0.2-r5 compile failure in dvi-draw.c (possibly gcc4-related)
Summary: app-text/tetex-2.0.2-r5 compile failure in dvi-draw.c (possibly gcc4-related)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-08 01:57 UTC by David Korth
Modified: 2006-01-21 03:47 UTC (History)
3 users (show)

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


Attachments
Patch for dvi-draw.c compile error (tetex-2.0.2-dvi-draw-compile-fix.patch,410 bytes, text/plain)
2006-01-08 01:58 UTC, David Korth
Details
tetex-2.0.2-r5 compile failure log (tetex-2.0.2-r5.log,184.69 KB, text/plain)
2006-01-21 00:37 UTC, David Korth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Korth 2006-01-08 01:57:18 UTC
While recompiling my system with gcc-4.0.2, I encountered a compile problem with app-text/tetex-2.0.2-r5:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H -DHAVE_LIBWWW -DHAVE_WWWLIB_H -I../../libs/t1lib -I./../../libs/t1lib -I../../libs/t1lib/../type1 -I./../../libs/t1lib/../type1 -DPS_GS -DOmega -DXSERVER_INFO -I../../libs/t1lib/lib/t1lib -I../kpathsea -I/usr/X11R6/include  -O2 -march=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -pipe  -c dvi-draw.c
dvi-draw.c:521: error: conflicting types for 'home'
dvi-draw.c:521: note: an argument type that has a default promotion can't match an empty parameter name list declaration
xdvi.h:1269: error: previous declaration of 'home' was here
dvi-draw.c:521: error: conflicting types for 'home'
dvi-draw.c:521: note: an argument type that has a default promotion can't match an empty parameter name list declaration
xdvi.h:1269: error: previous declaration of 'home' was here
make[2]: *** [dvi-draw.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/tetex-2.0.2-r5/work/tetex-src-2.0.2/texk/oxdvik'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/tetex-2.0.2-r5/work/tetex-src-2.0.2/texk'
make: *** [all] Error 1

!!! ERROR: app-text/tetex-2.0.2-r5 failed.
!!! Function tetex_src_compile, Line 196, Exitcode 2
!!! make teTeX failed
!!! If you need support, post the topmost build error, NOT this status message.

This problem seems to occur with gcc-3.4 as well, which seems odd. The fix is a one-liner though, and is attached in the next message.

emerge --info:

Portage 2.0.53 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.14-gentoo-r5-grsec i686)
=================================================================
System uname: 2.6.14-gentoo-r5-grsec i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -msse -mmmx -m3dnow -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://sonic.gerbilsoft.gsft/gentoo-portage"
USE="x86 3dnow 3dnowext X aac aalib accessibility acpi alsa arts artswrappersuid asm audiofile avi berkdb bidi bitmap-fonts bonobo bzip2 cairo cdb cddb cdparanoia cdr cjk clamav crypt cups curl dbus dga directfb dlloader doc dri dv dvd dvdr dvdread edl emboss encode exif expat fam fbcon ffmpeg flac foomaticdb fortran fuse gd gdbm gif gimp gimpprint ginac glitz glut glx gmp gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal idn imagemagick imlib java javascript jbig joystick jpeg jpeg2k kde kdeenablefinal kipi lcms libcaca libclamav libg++ libwww live lm_sensors lzo lzw mad mhash mikmod mime mjpeg mmap mmx mmxext mng motif mozdevelop mozilla mozsvg mp3 mpeg mpi musicbrainz mysql ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openal openexr opengl oss pam pcre pda pdflib perl pic png postgres ppds python qt quicktime readline real recode rtc ruby samba sasl scanner sdk sdl session simplexml slang smime sndfile speex spell sqlite sqlite3 sse ssl subversion svg symlink tcltk tcpd test tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis win32codecs wmf xanim xine xinerama xml xml2 xmms xosd xpm xscreensaver xsl xv xvid xvmc yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LINGUAS
Comment 1 David Korth 2006-01-08 01:58:11 UTC
Created attachment 76507 [details]
Patch for dvi-draw.c compile error
Comment 2 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-19 03:24:56 UTC
I can't make it fail with neither gcc-3.4.5 nor gcc-4.0.2!
Can you please re-sync and try again once more?
Comment 3 Viðar Svansson 2006-01-20 03:40:20 UTC
I have the same error with gcc-3.4.4 on a new install.
Comment 4 Viðar Svansson 2006-01-20 04:23:28 UTC
I can confirm that the patch works with gcc-3.4.4 and tetex-2.0.2-r5
Comment 5 David Korth 2006-01-21 00:37:45 UTC
Created attachment 77687 [details]
tetex-2.0.2-r5 compile failure log

After re-syncing, I recompiled tetex and logged the compilation. It failed again without the patch, but with the patch it works fine.
Comment 6 Alexandre Buisse (RETIRED) gentoo-dev 2006-01-21 03:47:52 UTC
Fixed in CVS. Thanks for the report and the patch.