Re: OpenEXR 1.6.1 build problem (Linux): "configure: error: Could not compile IlmBase test program"

Ger Hobbelt <[email protected]> Sun, 30 Aug 2009 18:46:15 +0200
Newsgroups gmane.comp.video.openexr.user
Message-ID <[email protected]>
Off the cuff, by only looking at the functions that are reported
missing by the linker, my first guess would be that the configure
script couldn't find a viable pthread library. This most probably
happened to the ./configure for IlmBase as IlmThread wraps those, the
effect becoming 'visible' once you compile&link OpenEXR itself..

Also, check to make sure IlmBase and OpenEXR are both build with
'--enable-threading' turned on (this is the default).


> configure:20491: g++ -o conftest -g -O2
> -I/usr/struct/pack/openexr-1.6/include/OpenEXR
> -L/usr/struct/pack/openexr-1.6/lib -L/usr/lib64 -L/usr/local/lib conftest=
.cc
> =A0-lImath -lHalf -lIex -lIlmThread >&5
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `sem_init'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `sem_destroy'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `pthread_create'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `sem_post'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `sem_trywait'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `sem_getvalue'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `sem_wait'
> /usr/struct/pack/openexr-1.6/lib/libIlmThread.so: undefined reference to
> `pthread_join'

--=20
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------