Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71994 - Povray-3.5 ebuild fails due to conflicting type error
Summary: Povray-3.5 ebuild fails due to conflicting type error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Disenchanted (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-21 16:02 UTC by Greg Tassone
Modified: 2005-01-19 22:13 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Tassone 2004-11-21 16:02:03 UTC
The Povray-3.5 ebuild is failing.  It appears to be having an error with "conflicting type" definitions with the tiff libraries.  The error is as follows:

g++ -DPREFIX=\"/usr\" -DPOV_LIB_DIR=\"/usr/share/povray-3.5\" -DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/etc\" -DUSE_IO_RESTRICTIONS=\"\"   -march=athlon-mp -O2 -pipe -Wall -finline-limit=1200 -falign-functions=32  -finline-functions -ffast-math    `if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -O3 -finline-functions -ffast-math -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -foptimize-sibling-calls -minline-all-stringops -Wno-multichar -c tokenize.cpp
In file included from /usr/include/tiffio.h:33,
                 from tiff_pov.cpp:46:
/usr/include/tiff.h:82: error: conflicting types for `typedef int int32'
frame.h:52: error: previous declaration as `typedef long int int32'
tiff_pov.cpp: In function `void Read_Tiff_Image(IMAGE*, char*)':
tiff_pov.cpp:211: warning: comparison between signed and unsigned integer 
   expressions
tiff_pov.cpp:212: warning: comparison between signed and unsigned integer 
   expressions
tiff_pov.cpp:233: warning: comparison between signed and unsigned integer 
   expressions
tiff_pov.cpp:239: warning: comparison between signed and unsigned integer 
   expressions
tiff_pov.cpp:103: warning: unused variable `int result'
tiff_pov.cpp: At top level:
config.h:237: warning: `uid_t euid' defined but not used
make: *** [tiff_pov.o] Error 1
make: *** Waiting for unfinished jobs....
targa.cpp: At top level:
config.h:237: warning: `uid_t euid' defined but not used
config.h:237: warning: `uid_t euid' defined but not used
config.h:237: warning: `uid_t euid' defined but not used

!!! ERROR: media-gfx/povray-3.5 failed.
!!! Function src_compile, Line 125, Exitcode 2
!!! (no error message)

-------------------

This build is required because I have the povray USE flag enabled for my KDEGraphics build.

Reproducible: Always
Steps to Reproduce:
1. emerge media-gfx/povray-3.5

Actual Results:  
The error happens within the first several hundred lines of output.


"emerge info" output:

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.4.25-gentoo-r9 i686)
=================================================================
System uname: 2.4.25-gentoo-r9 i686 AMD Athlon(tm) MP 2000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -pipe -Wall -finline-limit=1200 -falign-functions=32"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -pipe -Wall -finline-limit=1200 -falign-functions=32"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.ccccom.com
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi aim apm arts audiofile avi berkdb bitmap-fonts
cdparanoia cdr crypt cups curl dedicated divx4linux doc encode esd f77 fam fbcon
flac foomaticdb fortran gdbm gif gpm gtk gtk2 icq imap imlib jabber java jce
joystick jpeg junit kde kerberos ldap libg++ libwww live mad mcal mikmod mmx
motif mozilla mpeg nas ncurses network nls oggvorbis opengl oscar oss pam pda
pdflib perl png povray python qt quicktime readline samba sasl scanner sdl slang
spell sse ssl svga tcpd tetex theora tiff truetype usb x86 xml2 xmms xv xvid
yahoo zlib"
Comment 1 Andre Kloth 2004-11-26 10:11:19 UTC
Povray 3.5 seems to be broken according to

http://lists.freebsd.org/pipermail/freebsd-ports/2003-December/007203.html

The posting provides a patch. Could you please test it?
Comment 2 Björn Michaelsen 2004-12-06 08:39:03 UTC
Failed here too - the bug is not amd64 specific - I removed the
"use amd64 &&" in front of the "epatch ${FILESDIR}/${P}-amd64.patch"
in the ebuild and now it works.

-------------
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,                                   2.6.7 i686)
=================================================================
System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1,sys-kernel/linux26-headers-2.6.8.1-                                  r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s                                  hare/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/                                  dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/c                                  onfig/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
USE="X alsa apache2 apm avi berkdb bitmap-fonts blas bzlib cdparanoia cdr crypt                                   cscope cups devfs26 encode esd f2c f77 fam foomaticdb fortran gif gimp gimpprint                                   gtk gtk2 imagemagick imlib2 java joystick jpeg junit latex ldap libwww lm_senso                                  rs mad maildir mikmod mozilla moznoirc moznomail mozplaintext mozsvg mozxmlterm                                   mp3 mpeg mplayer mysql ncurses nls nptl oggvorbis pam pdf pdflib perl php png po                                  vray pwdb python quicktime readline sasl sdl slang sox spell sse2 ssl svg tcpd t                                  etex tiff x86 xml xml2 zlib"
Comment 3 Greg Tassone 2004-12-09 01:01:46 UTC
Sorry I haven't been able to test sooner -- I've been away and swamped with work.

Since this bug was filed a newer version of povray has been marked stable on x86:  version 3.6.1

I just tested the build for that one and it works perfectly.  Therefore, I'm moving forward with the new build and this issue should probably be closed.

As indicated by message #2 that patch appears to have fixed the original 3.5 problem as well.

Thanks for the input and assistance.
Comment 4 Disenchanted (RETIRED) gentoo-dev 2005-01-19 22:13:07 UTC
ok, finally got 3.6.1-r1 stable on all archs 3.5 was stable on
3.5 is gone, bug closed