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

Bug 62015

Summary: media-libs/openexr-1.0.7 fails to compile
Product: Gentoo Linux Reporter: Simon Stelling (RETIRED) <blubb>
Component: New packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED INVALID    
Severity: normal CC: amd64
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Imath.h patch

Description Simon Stelling (RETIRED) gentoo-dev 2004-08-28 01:31:18 UTC
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 - DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_STL_LIMITS=1 -Drestr ict= -I. -I. -I.. -I../Half -I../Iex -I../Imath -O2 -funroll-loops -pipe -UVERSI ON -g3 -O2 -pipe -march=k8 -MT libIlmImf_la-ImfChannelList.lo -MD -MP -MF .deps/ libIlmImf_la-ImfChannelList.Tpo -c ImfChannelList.cpp  -fPIC -DPIC -o .libs/libI lmImf_la-ImfChannelList.o
In file included from ../Imath/ImathVec.h:48,
                 from ../Imath/ImathBox.h:66,
                 from ./ImfBoxAttribute.h:48,
                 from ImfBoxAttribute.cpp:44:
../Imath/ImathMath.h: In static member function `static T Imath::Math<T>::modf(T , T*)':
../Imath/ImathMath.h:121: error: cannot convert `double' to `double*' for argume nt `2' to `double modf(double, double*)'
make[1]: *** [libIlmImf_la-ImfBoxAttribute.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 - DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_STL_LIMITS=1 -Drestr ict= -I. -I. -I.. -I../Half -I../Iex -I../Imath -O2 -funroll-loops -pipe -UVERSI ON -g3 -O2 -pipe -march=k8 -MT libIlmImf_la-ImfCRgbaFile.lo -MD -MP -MF .deps/li bIlmImf_la-ImfCRgbaFile.Tpo -c ImfCRgbaFile.cpp  -fPIC -DPIC -o .libs/libIlmImf_ la-ImfCRgbaFile.o
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 - DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_STL_LIMITS=1 -Drestr ict= -I. -I. -I.. -I../Half -I../Iex -I../Imath -O2 -funroll-loops -pipe -UVERSI ON -g3 -O2 -pipe -march=k8 -MT libIlmImf_la-ImfAttribute.lo -MD -MP -MF .deps/li bIlmImf_la-ImfAttribute.Tpo -c ImfAttribute.cpp  -fPIC -DPIC -o .libs/libIlmImf_ la-ImfAttribute.o
In file included from ../Imath/ImathVec.h:48,
                 from ./ImfHeader.h:49,
                 from ./ImfRgbaFile.h:51,
                 from ImfCRgbaFile.cpp:43:
../Imath/ImathMath.h: In static member function `static T Imath::Math<T>::modf(T , T*)':
../Imath/ImathMath.h:121: error: cannot convert `double' to `double*' for argume nt `2' to `double modf(double, double*)'
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 - DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_STL_LIMITS=1 -Drestr ict= -I. -I. -I.. -I../Half -I../Iex -I../Imath -O2 -funroll-loops -pipe -UVERSI ON -g3 -O2 -pipe -march=k8 -MT libIlmImf_la-ImfChannelList.lo -MD -MP -MF .deps/ libIlmImf_la-ImfChannelList.Tpo -c ImfChannelList.cpp -o libIlmImf_la-ImfChannel List.o >/dev/null 2>&1
make[1]: *** [libIlmImf_la-ImfCRgbaFile.lo] Error 1
 g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE _STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" -DVERSION=\"1.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 - DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 -DHAVE_IOS_BASE=1 -DHAVE_STL_LIMITS=1 -Drestr ict= -I. -I. -I.. -I../Half -I../Iex -I../Imath -O2 -funroll-loops -pipe -UVERSI ON -g3 -O2 -pipe -march=k8 -MT libIlmImf_la-ImfAttribute.lo -MD -MP -MF .deps/li bIlmImf_la-ImfAttribute.Tpo -c ImfAttribute.cpp -o libIlmImf_la-ImfAttribute.o > /dev/null 2>&1
make[1]: Leaving directory `/var/tmp/portage/openexr-1.0.7/work/OpenEXR-1.0.7/Il mImf'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/openexr-1.0.7 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! make failed

# emerge info
Portage 2.0.51_pre20 (default-linux/amd64/gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r14 x86_64 5)
=================================================================
System uname: 2.6.7-gentoo-r14 x86_64 5
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
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.6-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-g3 -O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-g3 -O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/blubb/gentoo/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apach2 apm avi bonobo bzlib cdr chroot crypt cups divx4linux dvd encode esd flash foomaticdb ftp gdbm gif gimp gimpprint glx gnome gphoto2 gpm gtk gtk2 gtkhtml imlib jpeg libg++ libwww mikmod mng motif mozdomi moznoirc moznomail moznoxft mozp3p mozsvg mpeg msn mysql ncurses nls oggvorbis opengl pam pdflib perl png posix python quicktime readline samba sdl sematicfix slang ssl svg tcltk tcpd threads tiff truetype xml xml2 xmms xsl xv zlib"
Comment 1 Marc Hildebrand (RETIRED) gentoo-dev 2004-08-28 04:07:48 UTC
Do you have version 1.0.6 installed? If so, please try to unmerge the old version first.
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2004-08-28 04:14:12 UTC
no, just 1.0.7
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2004-08-28 04:21:21 UTC
err, of course no version is installed :D
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-28 05:17:57 UTC
-> Bug 47224
Comment 5 Chris White (RETIRED) gentoo-dev 2004-08-28 10:34:11 UTC
Created attachment 38395 [details, diff]
Imath.h patch

This solves half the battle (with the imath fun...)
Still dies about halfway though.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2004-09-10 09:20:24 UTC
openexr-1.0.7 fails as described here (I use gcc-3.4.2, -march=athlon-xp) but openexr-1.2.1 (the ebuild given in bug #47224) emerges fine.
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2004-10-04 08:38:45 UTC
1.2.1 works fine here