Jerry <[email protected]> writes:

>     g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/
> temp.linux-x86_64-2.6/mwlib/_uscan.o -o build/lib.linux-x86_64-2.6/
> mwlib/_uscan.so
>     /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc+
> +.a(ios_init.o): relocation R_X86_64_32 against `pthread_cancel' can
> not be used when making a shared object; recompile with -fPIC
>     /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.a: could not read
> symbols: Bad value
>     collect2: ld returned 1 exit status
>     error: command 'g++' failed with exit status 1

I can provoke the same error on ubuntu 10.04 by removing
/usr/lib/gcc/x86_64-linux-gnu/4.4/libstdc++.so. You generally can't link
python extensions against the .a libraries since they are normally not
compiled with -fPIC.

So, I think the above file is missing. But I don't know the reason for
that. I'm pretty sure it should get installed when installing g++.

dpkg says this is part of libstdc++6-4.4-dev:

,----
| # dpkg -S /usr/lib/gcc/x86_64-linux-gnu/4.4/libstdc++.so
| libstdc++6-4.4-dev: /usr/lib/gcc/x86_64-linux-gnu/4.4/libstdc++.so
`----

-- 
Cheers
Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to