On 02/15/2010 05:36 PM, David Haller wrote:
Hello,
On Mon, 15 Feb 2010, Michael Matz wrote:
On Mon, 15 Feb 2010, Dave Plater wrote:
Strangely after finally checking the package into BS with the static library build, it succeeds on 11.0 and 11.1 but the collada lib build fails on 11.2 and factory with :- |g++ -o COLLADAValidator/bin/posix/x86_64/debuglibexpat/OpenCOLLADAValidator -static COLLADAValidator/obj/posix/x86_64/debuglibexpat/src/ValidationErrorHandler.o COLLADAValidator/obj/posix/x86_64/debuglibexpat/src/main.o -LCOLLADABaseUtils/lib/posix/x86_64/debug -Lcommon/libftoa/lib/posix/x86_64/debug -Lcommon/libBuffer/lib/posix/x86_64/debug -LCOLLADAFramework/lib/posix/x86_64/debug -LExternals/MathMLSolver/lib/posix/x86_64/debug -LExternals/UTF/lib/posix/x86_64/debug -LCOLLADASaxFrameworkLoader/lib/posix/x86_64/debuglibexpat -LGeneratedSaxParser/lib/posix/x86_64/debuglibexpat -lOpenCOLLADASaxFrameworkLoader -lMathMLSolver -lOpenCOLLADAFramework -lOpenCOLLADABaseUtils -lGeneratedSaxParser -lpcre -lftoa -lbuffer -lUTF -lexpat /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -lpcre collect2: ld returned 1 exit status
Why would this happen?
Because libpcre.so is missing, which means pcre-devel is missing from BuildRequires. If it works in 11.0/11.1 it just means that the split into libpcre0 and pcre-devel was only done for 11.2 onwards.
Have you seen the -static? 11.1 still shiped libpcre.a. 11.2 does not.
Dave: try without '-static' but with '-Wl,-Bstatic' before the Collada-Libs and '-Wl,-Bdynamic' after them (or at least before -lpcre).
-dnh
I think this is the answer I was looking for, if it enables the static build to link against the shared libs. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org