Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero MQ is linked against wrong stdc (?) #487

Closed
RantyDave opened this issue Apr 22, 2017 · 3 comments
Closed

Zero MQ is linked against wrong stdc (?) #487

RantyDave opened this issue Apr 22, 2017 · 3 comments
Assignees

Comments

@RantyDave
Copy link

RantyDave commented Apr 22, 2017

Specifically that when pyzmq-16.0.2 tries to link against it fails with:

gcc -m64 build/temp.solaris-2.11-i86pc.64bit-3.6/scratch/vers.o -L/opt/local/lib -Wl,-R/opt/local/lib -lzmq -o build/temp.solaris-2.11-i86pc.64bit-3.6/scratch/vers

    Undefined                   first referenced
     symbol                         in file

    ceil                                /opt/local/lib/libzmq.so
    std::basic_string<char, std::char_traits<char>, std::allocator<char> >::rfind(char, unsigned long) const /opt/local/lib/libzmq.so
    std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /opt/local/lib/libzmq.so
    std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, unsigned long) /opt/local/lib/libzmq.so
    std::ios_base::ios_base()           /opt/local/lib/libzmq.so
    std::ios_base::~ios_base()          /opt/local/lib/libzmq.so

Which looks very much like linking against stdc and not stdc++.

Building from source (zeromq-4.2.2 with pkgin libsodium), config:

./configure --with-libsodium --prefix=/opt/local

...then running pip3.6 install pyzmq works just fine.

@RantyDave RantyDave changed the title Zero MQ is linked against wrong stdc ( Zero MQ is linked against wrong stdc (?) Apr 23, 2017
@mamash mamash self-assigned this Apr 23, 2017
@mamash
Copy link

mamash commented Apr 23, 2017

Just guessing you found this in 2017Q1/x86_64? We hit this earlier in the 2017Q1/tools package set and I just realized two days ago it affected the x86_64 package set as well. It will auto-correct with the next rebuild and that's when py-zmq will successfully build too as a package.

For some reason, with the initial 2017Q1 build the zeromq package built with no libgcc/libstdc++ runtime linking at all.

@RantyDave
Copy link
Author

No stdc at all? That's quite impressive - almost like making antimatter. I'll click "close" then :)

@mamash
Copy link

mamash commented Apr 23, 2017

I ran a rebuild earlier today and 2017Q1/x86_64 should be all good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants