OpenEXR linking error

eculp at encontacto.net eculp at encontacto.net
Thu Oct 11 10:57:28 PDT 2007


Quoting Robert Huff <roberthuff at rcn.com>:

>
> 	Read the entry in /usr/ports/UPDATING.
>
>
> 	Robert "been there, followed directions, everything works" Huff

It didn't work quite that well for me.  I followed the instructions in  
UPDATING except for the pkgdb -F because the install didn't complete.  
I tried on 4 current boxes and one RELENG6 box and they all broke as  
shown below:

c++ -pipe -O2 -fno-strict-aliasing -pipe -o imfexamples main.o  
drawImage.o rgbaInterfaceExamples.o rgbaInterfaceTiledExamples.o  
generalInterfaceExamples.o lowLevelIoExamples.o previewImageExamples.o  
generalInterfaceTiledExamples.o  -L/usr/local/lib  
/usr/local/lib/libImath.so  
-L/usr/ports/graphics/OpenEXR/work/openexr-1.6.0/IlmImf  
/usr/local/lib/libIlmImf.so /usr/local/lib/libHalf.so  
/usr/local/lib/libIlmThread.so /usr/local/lib/libIex.so -pthread -lz    
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: warning: libHalf.so.4, needed by  
/usr/local/lib/libIlmImf.so, may conflict with libHalf.so.6
/usr/bin/ld: warning: libIex.so.4, needed by  
/usr/local/lib/libIlmImf.so, may conflict with libIex.so.6
/usr/bin/ld: warning: libIlmThread.so.4, needed by  
/usr/local/lib/libIlmImf.so, may conflict with libIlmThread.so.6
generalInterfaceExamples.o(.text+0xe8): In function `writeGZ1(char  
const*, half const*, float const*, int, int)':
: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int,  
int, bool)'
generalInterfaceExamples.o(.text+0x132): In function `writeGZ1(char  
const*, half const*, float const*, int, int)':
: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int,  
int, bool)'
generalInterfaceExamples.o(.text+0x949): In function `writeGZ2(char  
const*, half const*, float const*, int, int,  
Imath::Box<Imath::Vec2<int> > const&)':
: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int,  
int, bool)'
generalInterfaceExamples.o(.text+0x990): In function `writeGZ2(char  
const*, half const*, float const*, int, int,  
Imath::Box<Imath::Vec2<int> > const&)':
: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int,  
int, bool)'
generalInterfaceTiledExamples.o(.text+0x368): In function  
`writeTiled1(char const*, Imf::Array2D<GZ>&, int, int, int, int)':
: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int,  
int, bool)'
generalInterfaceTiledExamples.o(.text+0x3b2): more undefined  
references to `Imf::Channel::Channel(Imf::PixelType, int, int, bool)'  
follow
gmake[1]: *** [imfexamples] Error 1
gmake[1]: Leaving directory  
`/usr/ports/graphics/OpenEXR/work/openexr-1.6.0/IlmImfExamples'
gmake: *** [all-recursive] Error 1
*** Error code 2

Not that I'm overly concerned.  All the boxes are with todays sources  
and are running kernels reset within this week.

Thanks,

ed



More information about the freebsd-ports mailing list