[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Openexr-devel] unresolved symbols in (shared) libs
From: |
Rex Dieter |
Subject: |
[Openexr-devel] unresolved symbols in (shared) libs |
Date: |
Thu, 09 Feb 2006 20:57:09 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
For details:
http://bugzilla.redhat.com/bugzilla/165729
In short, with OpenEXR-1.2.2, both libIlmImf.so and libImath.so contain
undefined symbols (See appended details).
Attached patch does:
1. adds dependant libs to fix unresolved symbols
2. adds -no-undefined -Wl,--no-undefined to <LIB>_la_LDFLAGS
(though I'm not very certain how portable the latter modification is).
One of the resolved symbols is from zlib, so you can also drop/omit -lz
from the pkgconfig file OpenEXR.pc as well.
-- Rex
$ldd -r /usr/lib/libIlmImf.so
undefined symbol: uncompress (/usr/lib/libIlmImf.so)
undefined symbol: _ZN3Iex13throwErrnoExcERKSs (/usr/lib/libIlmImf.so)
undefined symbol: _ZN3Iex7BaseExcD2Ev (/usr/lib/libIlmImf.so)
undefined symbol:
_ZN3Iex7BaseExc6assignERSt18basic_stringstreamIcSt11char_traitsIcESaIcEE
(/usr/lib/libIlmImf.so)
undefined symbol:
_ZN3Iex7BaseExcC2ERSt18basic_stringstreamIcSt11char_traitsIcESaIcEE
(/usr/lib/libIlmImf.so)
undefined symbol: _ZN3Iex7BaseExcC2EPKc (/usr/lib/libIlmImf.so)
undefined symbol: _ZN4half7convertEi (/usr/lib/libIlmImf.so)
undefined symbol: _ZN3Iex7BaseExcC1EPKc (/usr/lib/libIlmImf.so)
undefined symbol: compress (/usr/lib/libIlmImf.so)
undefined symbol: _ZN3Iex7BaseExcD1Ev (/usr/lib/libIlmImf.so)
undefined symbol: _ZTIN3Iex7BaseExcE (/usr/lib/libIlmImf.so)
undefined symbol: _ZN4half5_eLutE (/usr/lib/libIlmImf.so)
undefined symbol: _ZN4half8_toFloatE (/usr/lib/libIlmImf.so)
undefined symbol: _ZNK3Iex7BaseExc4whatEv (/usr/lib/libIlmImf.so)
$ldd -r /usr/lib/libImath.so
...
undefined symbol: _ZN3Iex7BaseExcD2Ev (/usr/lib/libImath.so)
undefined symbol: _ZN3Iex7BaseExcC2EPKc (/usr/lib/libImath.so)
undefined symbol: _ZTIN3Iex7BaseExcE (/usr/lib/libImath.so)
undefined symbol: _ZNK3Iex7BaseExc4whatEv (/usr/lib/libImath.so)
--- OpenEXR-1.2.2/Half/Makefile.am.165729 2004-02-05 23:22:01.000000000
-0600
+++ OpenEXR-1.2.2/Half/Makefile.am 2006-02-09 14:22:21.000000000 -0600
@@ -4,7 +4,7 @@
libHalf_la_SOURCES = half.cpp half.h halfFunction.h halfLimits.h
-libHalf_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
+libHalf_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ -no-undefined
-Wl,--no-undefined
libHalfincludedir = $(includedir)/OpenEXR
--- OpenEXR-1.2.2/IlmImf/Makefile.am.165729 2004-12-16 20:01:57.000000000
-0600
+++ OpenEXR-1.2.2/IlmImf/Makefile.am 2006-02-09 14:37:09.000000000 -0600
@@ -54,7 +54,7 @@
ImfPxr24Compressor.cpp ImfPxr24Compressor.h \
ImfTestFile.cpp ImfTestFile.h
-libIlmImf_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
+libIlmImf_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ ../Half/libHalf.la
../Iex/libIex.la -lz -no-undefined -Wl,--no-undefined
libIlmImfincludedir = $(includedir)/OpenEXR
--- OpenEXR-1.2.2/Imath/Makefile.am.165729 2005-03-07 22:21:53.000000000
-0600
+++ OpenEXR-1.2.2/Imath/Makefile.am 2006-02-09 14:12:17.000000000 -0600
@@ -15,7 +15,7 @@
ImathFrame.h ImathPlatform.h \
ImathBox.cpp ImathRandom.cpp
-libImath_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
+libImath_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ ../Iex/libIex.la
-no-undefined -Wl,--no-undefined
libImathincludedir = $(includedir)/OpenEXR
--- OpenEXR-1.2.2/Iex/Makefile.am.165729 2006-02-09 14:13:11.000000000
-0600
+++ OpenEXR-1.2.2/Iex/Makefile.am 2006-02-09 14:13:24.000000000 -0600
@@ -6,7 +6,7 @@
IexErrnoExc.h Iex.h IexMacros.h IexMathExc.h \
IexThrowErrnoExc.h
-libIex_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
+libIex_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ -no-undefined
-Wl,--no-undefined
libIexincludedir = $(includedir)/OpenEXR
- [Openexr-devel] unresolved symbols in (shared) libs,
Rex Dieter <=