Subject: Failed to build graphics/openexr on NetBSD-3.99.21/i386
To: None <tech-pkg@netbsd.org>
From: Ian Zagorskih <ianzag@mail.ru>
List: tech-pkg
Date: 06/14/2006 14:10:57
pkgsrc tree was completely updated from today's CVS.

$ uname -a
NetBSD NBSD1 3.99.21 NetBSD 3.99.21 (GENERIC) #0: Thu Jun  8 23:39:52 
NOVST 2006  toor@NBSD1:/usr/build/obj/i386/sys/arch/i386/compile/GENERIC 
i386

$ gcc --version
gcc (GCC) 4.1.2 20060603 prerelease (NetBSD nb1 20060602)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

--- cut ---
===> Checking for vulnerabilities in openexr-1.2.2nb1
=> Checksum SHA1 OK for OpenEXR-1.2.2.tar.gz.
=> Checksum RMD160 OK for OpenEXR-1.2.2.tar.gz.
===> Installing dependencies for openexr-1.2.2nb1
=> Required installed package libtool-base>=1.5.18nb5: 
libtool-base-1.5.22nb3 found
=> Required installed package gmake>=3.78: gmake-3.81 found
=> Required installed package x11-links>=0.25: x11-links-0.30 found
=> Required installed package fltk>=1.1.7nb1: fltk-1.1.7nb4 found
===> Overriding tools for openexr-1.2.2nb1
===> Extracting for openexr-1.2.2nb1
===> Patching for openexr-1.2.2nb1
===> Creating toolchain wrappers for openexr-1.2.2nb1
===> Configuring for openexr-1.2.2nb1
=> Adding rpaths to pkgconfig files.
[subst.mk] WARNING: Ignoring non-existent file "./OpenExr.pc.in".
configure: WARNING: If you wanted to set the --build type, don't use --host.
     If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-unknown-netbsdelf3.99.21
checking host system type... i386--netbsdelf
checking target system type... i386--netbsdelf

[snip]

if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" 
-DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_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_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1  -I. -I. 
-I/usr/pkg/include -O2 -I/usr/pkg/include -I/usr/X11R6/include 
-DGLX_GLXEXT_LEGACY -I/usr/X11R6/include -I.. -I../Iex -I../Half 
-I../Imath -I../IlmImf  -I/usr/pkg/include -I/usr/X11R6/include 
-DGLX_GLXEXT_LEGACY -I/usr/include -pipe  -O2 -I/usr/pkg/include 
-I/usr/X11R6/include -DGLX_GLXEXT_LEGACY -I/usr/include -MT scaleImage.o 
-MD -MP -MF ".deps/scaleImage.Tpo" \
	  -c -o scaleImage.o `test -f 'scaleImage.cpp' || echo 
'./'`scaleImage.cpp; \
	then mv -f ".deps/scaleImage.Tpo" ".deps/scaleImage.Po"; \
	else rm -f ".deps/scaleImage.Tpo"; exit 1; \
	fi
/bin/sh ../libtool --mode=link c++ -pipe  -O2 -I/usr/pkg/include 
-I/usr/X11R6/include -DGLX_GLXEXT_LEGACY -I/usr/include  -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/lib 
-Wl,-R/usr/lib -o exrdisplay  main.o ImageView.o  loadImage.o 
scaleImage.o -L/usr/pkg/lib -L/usr/X11R6/lib -L/usr/X11R6/lib 
-Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -lfltk_gl -lGLU -lGL -lfltk 
-lpthread -lm -lXext -lX11 -L../Iex -L../Half -L../Imath -L../IlmImf 
-lIlmImf -lImath -lHalf -lIex -lz
*** [buildlink3] Warning: libtool replaced -lIlmImf with 
../IlmImf/libIlmImf.la
*** [buildlink3] Warning: libtool replaced -lImath with ../Imath/libImath.la
*** [buildlink3] Warning: libtool replaced -lHalf with ../Half/libHalf.la
*** [buildlink3] Warning: libtool replaced -lIex with ../Iex/libIex.la
mkdir .libs
c++ -pipe -O2 -I/usr/pkgsrc/graphics/openexr/work/.buildlink/include 
-I/usr/pkgsrc/graphics/openexr/work/.x11-buildlink/include 
-DGLX_GLXEXT_LEGACY -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o 
.libs/exrdisplay main.o ImageView.o loadImage.o scaleImage.o 
-L/usr/pkgsrc/graphics/openexr/work/.buildlink/lib 
-L/usr/pkgsrc/graphics/openexr/work/.x11-buildlink/lib 
/usr/pkgsrc/graphics/openexr/work/.buildlink/lib/libfltk_gl.so 
/usr/pkgsrc/graphics/openexr/work/.buildlink/lib/libfltk.so -lGLU -lGL 
-lpthread -lm -lXext -lX11 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/Iex 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/Half 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/Imath 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/IlmImf 
../IlmImf/.libs/libIlmImf.so ../Imath/.libs/libImath.so 
../Half/.libs/libHalf.so ../Iex/.libs/libIex.so -lz -Wl,--rpath 
-Wl,/usr/pkgsrc/graphics/openexr/work/.buildlink/lib -Wl,--rpath 
-Wl,/usr/pkg/lib
creating exrdisplay
gmake[1]: Leaving directory 
`/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/exrdisplay'
Making all in exrheader
gmake[1]: Entering directory 
`/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/exrheader'
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" 
-DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_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_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1  -I. -I. -I.. -I../Iex 
-I../Half -I../Imath -I../IlmImf  -I/usr/pkg/include 
-I/usr/X11R6/include -DGLX_GLXEXT_LEGACY -I/usr/include -pipe  -O2 
-I/usr/pkg/include -I/usr/X11R6/include -DGLX_GLXEXT_LEGACY 
-I/usr/include -MT main.o -MD -MP -MF ".deps/main.Tpo" \
	  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
	then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
	else rm -f ".deps/main.Tpo"; exit 1; \
	fi
/bin/sh ../libtool --mode=link c++ -pipe  -O2 -I/usr/pkg/include 
-I/usr/X11R6/include -DGLX_GLXEXT_LEGACY -I/usr/include  -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/lib 
-Wl,-R/usr/lib -o exrheader  main.o -L../Iex -L../Half -L../Imath 
-L../IlmImf -lIlmImf -lImath -lHalf -lIex -lz
*** [buildlink3] Warning: libtool replaced -lIlmImf with 
../IlmImf/libIlmImf.la
*** [buildlink3] Warning: libtool replaced -lImath with ../Imath/libImath.la
*** [buildlink3] Warning: libtool replaced -lHalf with ../Half/libHalf.la
*** [buildlink3] Warning: libtool replaced -lIex with ../Iex/libIex.la
mkdir .libs
c++ -pipe -O2 -I/usr/pkgsrc/graphics/openexr/work/.buildlink/include 
-I/usr/pkgsrc/graphics/openexr/work/.x11-buildlink/include 
-DGLX_GLXEXT_LEGACY -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o 
.libs/exrheader main.o 
-L/usr/pkgsrc/graphics/openexr/work/.buildlink/lib 
-L/usr/pkgsrc/graphics/openexr/work/.x11-buildlink/lib 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/Iex 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/Half 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/Imath 
-L/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/IlmImf 
../IlmImf/.libs/libIlmImf.so ../Imath/.libs/libImath.so 
../Half/.libs/libHalf.so ../Iex/.libs/libIex.so -lz -Wl,--rpath 
-Wl,/usr/pkg/lib
creating exrheader
gmake[1]: Leaving directory 
`/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/exrheader'
Making all in exrmaketiled
gmake[1]: Entering directory 
`/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/exrmaketiled'
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" 
-DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_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_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1  -I. -I. -I.. -I../Iex 
-I../Half -I../Imath -I../IlmImf  -I/usr/pkg/include 
-I/usr/X11R6/include -DGLX_GLXEXT_LEGACY -I/usr/include -pipe  -O2 
-I/usr/pkg/include -I/usr/X11R6/include -DGLX_GLXEXT_LEGACY 
-I/usr/include -MT main.o -MD -MP -MF ".deps/main.Tpo" \
	  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
	then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
	else rm -f ".deps/main.Tpo"; exit 1; \
	fi
if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" 
-DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_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_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1  -I. -I. -I.. -I../Iex 
-I../Half -I../Imath -I../IlmImf  -I/usr/pkg/include 
-I/usr/X11R6/include -DGLX_GLXEXT_LEGACY -I/usr/include -pipe  -O2 
-I/usr/pkg/include -I/usr/X11R6/include -DGLX_GLXEXT_LEGACY 
-I/usr/include -MT Image.o -MD -MP -MF ".deps/Image.Tpo" \
	  -c -o Image.o `test -f 'Image.cpp' || echo './'`Image.cpp; \
	then mv -f ".deps/Image.Tpo" ".deps/Image.Po"; \
	else rm -f ".deps/Image.Tpo"; exit 1; \
	fi
./Image.h:59: error: expected `)' before '&' token
./Image.h:64: error: ISO C++ forbids declaration of 'Image' with no type
./Image.h:64: error: expected ';' before '&' token
./Image.h:65: error: expected `;' before 'const'
./Image.h:65: error: ISO C++ forbids declaration of 'Image' with no type
./Image.h:65: error: expected ';' before '&' token
./Image.h:67: error: expected `;' before 'private'
./Image.h:71: error: ISO C++ forbids declaration of 'Image' with no type
./Image.h:71: error: expected ';' before '&' token
./Image.h:80: error: expected `)' before '&' token
./Image.h:143: error: no 
'TypedImageChannel<T>::TypedImageChannel(Image&, int, int)' member 
function declared in class 'TypedImageChannel<T>'
./Image.h:143: error: template definition of non-template 
'TypedImageChannel<T>::TypedImageChannel(Image&, int, int)'
./Image.h: In member function 'virtual Imf::Slice 
TypedImageChannel<T>::slice() const':
./Image.h:186: error: there are no arguments to 'image' that depend on a 
template parameter, so a declaration of 'image' must be available
./Image.h:186: error: (if you use '-fpermissive', G++ will accept your 
code, but allowing the use of an undeclared name is deprecated)
Image.cpp: At global scope:
Image.cpp:49: error: prototype for 'ImageChannel::ImageChannel(Image&)' 
does not match any in class 'ImageChannel'
./Image.h:54: error: candidates are: ImageChannel::ImageChannel(const 
ImageChannel&)
./Image.h:54: error:                 ImageChannel::ImageChannel()
Image.cpp: In constructor 'ImageChannel::ImageChannel(Image&)':
Image.cpp:49: error: class 'ImageChannel' does not have any field named 
'_image'
Image.cpp: In member function 'void Image::addChannel(const 
std::string&, Imf::PixelType)':
Image.cpp:96: error: no matching function for call to 
'TypedImageChannel<half>::TypedImageChannel(Image&, int, int)'
./Image.h:77: note: candidates are: 
TypedImageChannel<half>::TypedImageChannel()
./Image.h:77: note: 
TypedImageChannel<half>::TypedImageChannel(const TypedImageChannel<half>&)
Image.cpp:100: error: no matching function for call to 
'TypedImageChannel<float>::TypedImageChannel(Image&, int, int)'
./Image.h:77: note: candidates are: 
TypedImageChannel<float>::TypedImageChannel()
./Image.h:77: note: 
TypedImageChannel<float>::TypedImageChannel(const TypedImageChannel<float>&)
Image.cpp:104: error: no matching function for call to 
'TypedImageChannel<unsigned int>::TypedImageChannel(Image&, int, int)'
./Image.h:77: note: candidates are: TypedImageChannel<unsigned 
int>::TypedImageChannel()
./Image.h:77: note:                 TypedImageChannel<unsigned 
int>::TypedImageChannel(const TypedImageChannel<unsigned int>&)
gmake[1]: *** [Image.o] Error 1
gmake[1]: Leaving directory 
`/usr/pkgsrc/graphics/openexr/work/OpenEXR-1.2.2/exrmaketiled'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/graphics/openexr
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/graphics/openexr/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/openexr
--- cut ---

Any ideas?

ps: The problem is that openexr package is required to build KDE stuff :-/

// wbr