GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 0.12.0 undefined reference pthreads · Issue #625 · cpp-netlib/cpp-netlib

0.12.0 undefined reference pthreads #625

New issue
Copy link
New issue
Copy link
Closed
Closed
0.12.0 undefined reference pthreads#625
Copy link

Description

@susnux
susnux
opened on Apr 7, 2016
Issue body actions

When compiling 0.12.0 for openSUSE tumbleweed I get this error (see bottom).

My fast fix for this is applying this patch: http://pastie.org/10789411

CMakeFiles/cppnetlib-client-connections.dir/client.cpp.o: In function asio::detail::posix_global_impl<asio::system_executor::context_impl>::~posix_global_impl()': [ 43s] client.cpp:(.text._ZN4asio6detail17posix_global_implINS_15system_executor12context_implEED2Ev[_ZN4asio6detail17posix_global_implINS_15system_executor12context_implEED5Ev]+0xdb): undefined reference topthread_join'
[ 43s] client.cpp:(.text._ZN4asio6detail17posix_global_implINS_15system_executor12context_implEED2Ev[_ZN4asio6detail17posix_global_implINS_15system_executor12context_implEED5Ev]+0xf9): undefined reference to `pthread_detach'
[ 43s] collect2: error: ld returned 1 exit status
[ 43s] libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/build.make:99: recipe for target 'libs/network/src/libcppnetlib-client-connections.so.0.12.0' failed
[ 43s] make[2]: *** [libs/network/src/libcppnetlib-client-connections.so.0.12.0] Error 1
[ 43s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/cpp-netlib-0.12.0-final/build'
[ 43s] CMakeFiles/Makefile2:129: recipe for target 'libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/all' failed
[ 43s] make[1]: *** [libs/network/src/CMakeFiles/cppnetlib-client-connections.dir/all] Error 2
[ 43s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/cpp-netlib-0.12.0-final/build'
[ 43s] Makefile:141: recipe for target 'all' failed
[ 43s] make: *** [all] Error 2

Cmake config output:

[ 19s] -- The C compiler identification is GNU 5.3.1
[ 19s] -- The CXX compiler identification is GNU 5.3.1
[ 19s] -- Check for working C compiler: /usr/bin/cc
[ 19s] -- Check for working C compiler: /usr/bin/cc -- works
[ 19s] -- Detecting C compiler ABI info
[ 19s] -- Detecting C compiler ABI info - done
[ 19s] -- Detecting C compile features
[ 19s] -- Detecting C compile features - done
[ 19s] -- Check for working CXX compiler: /usr/bin/c++
[ 19s] -- Check for working CXX compiler: /usr/bin/c++ -- works
[ 19s] -- Detecting CXX compiler ABI info
[ 20s] -- Detecting CXX compiler ABI info - done
[ 20s] -- Detecting CXX compile features
[ 20s] -- Detecting CXX compile features - done
[ 20s] -- Linking boost testing libs dynamically...
[ 20s] -- Boost version: 1.60.0
[ 20s] -- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.2g")
[ 20s] -- Looking for pthread.h
[ 20s] -- Looking for pthread.h - found
[ 20s] -- Looking for pthread_create
[ 20s] -- Looking for pthread_create - not found
[ 20s] -- Looking for pthread_create in pthreads
[ 20s] -- Looking for pthread_create in pthreads - not found
[ 20s] -- Looking for pthread_create in pthread
[ 20s] -- Looking for pthread_create in pthread - found
[ 20s] -- Found Threads: TRUE
[ 20s] -- Found PythonInterp: /usr/bin/python (found version "2.7.10")
[ 20s] -- Configuring done
[ 20s] -- Generating done

Activity

  1. deanberris commented on Apr 8, 2016

    @deanberris
    deanberris
    on Apr 8, 2016
    Member
    More actions

    Huh. That's not good. Let me start a 0.12-release branch where we can start incorporating fixes for this. Let me ping back when that's done. Then can you send that as a pull request instead?

  2. deanberris commented on Apr 8, 2016

    @deanberris
    deanberris
    on Apr 8, 2016
    Member
    More actions

    That's done -- can you send a pull request against the 0.12-release branch?

  3. susnux commented on Apr 8, 2016

    @susnux
    susnux
    on Apr 8, 2016
    Author
    More actions

    Ok I will do in few hours.

  4. glynos
    added a commit that references this issue on Apr 10, 2016

    Merge pull request #628 from susnux/fix-pthreads

    This issue will close once commit 5209246 is merged into the 'main' branch.
    5209246
  5. susnux commented on Apr 20, 2016

    @susnux
    susnux
    on Apr 20, 2016
    Author
    More actions

    Should I also send a PR for master?

  6. deanberris commented on Apr 25, 2016

    @deanberris
    deanberris
    on Apr 25, 2016
    Member
    More actions

    @susnux Yes please, send a PR for master.

  7. susnux commented on Apr 26, 2016

    @susnux
    susnux
    on Apr 26, 2016
    Author
    More actions

    OK done

  8. glynos
    closed this as completedin 3190cb7on Apr 26, 2016
  9. glynos
    added a commit that references this issue on Apr 26, 2016

    Merge pull request #646 from susnux/fix-pthreads

    This issue will close once commit b106a8a is merged into the 'main' branch.
    b106a8a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.