Project

General

Profile

Actions

Bug #2516

closed

libwt.so.3.3.1: undefined reference to `boost::thread::join()'

Added by Anonymous about 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
Start date:
12/14/2013
Due date:
% Done:

0%

Estimated time:

Description

I compiling libs, this succeseful, but if I complile examples or my programs buidl failed:

libwt.so.3.3.1: undefined reference to `boost::thread::join()'

libwt.so.3.3.1: undefined reference to `boost::thread::start_thread()'

libwt.so.3.3.1: undefined reference to `boost::this_thread::get_id()'

I experimented, and build test application to boost successeful.

Boost version - 1.53

OS - Gentoo Linux x64.

Actions #1

Updated by Koen Deforche about 11 years ago

Hey,

You'll neer tot add -lboost_thread tot the linking step.

Regards,

Koen

Actions #2

Updated by Boris Vinogradov about 11 years ago

Koen Deforche wrote:

Hey,

You'll neer tot add -lboost_thread tot the linking step.

Regards,

Koen

I append it already. I think this problem in using old boost standarts(1.48).

Actions #3

Updated by Boris Vinogradov about 11 years ago

And I compile libs without boost_thread - It's working.

Actions #4

Updated by Boris Vinogradov about 11 years ago

This bug reply only on Boost 1.53:

nis@jane ~/wt-3.3.0/build/src $ ldd -r libwt.so

linux-vdso.so.1 (0x00007fff9537a000)

libboost_thread.so.1.53.0 => /usr/lib64/libboost_thread.so.1.53.0 (0x00007f2297264000)

libboost_random.so.1.53.0 => /usr/lib64/libboost_random.so.1.53.0 (0x00007f229705f000)

libboost_regex.so.1.53.0 => /usr/lib64/libboost_regex.so.1.53.0 (0x00007f2296d82000)

libboost_signals.so.1.53.0 => /usr/lib64/libboost_signals.so.1.53.0 (0x00007f2296b6b000)

libboost_system.so.1.53.0 => /usr/lib64/libboost_system.so.1.53.0 (0x00007f2296966000)

libboost_filesystem.so.1.53.0 => /usr/lib64/libboost_filesystem.so.1.53.0 (0x00007f229674e000)

libboost_date_time.so.1.53.0 => /usr/lib64/libboost_date_time.so.1.53.0 (0x00007f229653c000)

libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007f22962d1000)

libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f2295efb000)

libhpdf-2.2.1.so => /usr/lib64/libhpdf-2.2.1.so (0x00007f2295c43000)

libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f2295a0c000)

libz.so.1 => /lib64/libz.so.1 (0x00007f22957f6000)

libGraphicsMagick.so.3 => /usr/lib64/libGraphicsMagick.so.3 (0x00007f229543e000)

libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x00007f2295228000)

libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007f2294fdc000)

libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f2294d8a000)

libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f2294a5d000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2294840000)

libm.so.6 => /lib64/libm.so.6 (0x00007f2294543000)

libstdc.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libstdc.so.6 (0x00007f229423a000)

libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1 (0x00007f2294023000)

libc.so.6 => /lib64/libc.so.6 (0x00007f2293c78000)

/lib64/ld-linux-x86-64.so.2 (0x00007f2297ceb000)

librt.so.1 => /lib64/librt.so.1 (0x00007f2293a6f000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f229386b000)

libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f2293657000)

libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f229344e000)

libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f2293232000)

libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f2292ef5000)

libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f2292ce5000)

libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007f2292adb000)

libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007f2292886000)

libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f2292649000)

libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f22923a5000)

libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007f22921a0000)

libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007f2291f98000)

libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f2291d92000)

libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f2291b71000)

libgraphite2.so.3 => /usr/lib64/libgraphite2.so.3 (0x00007f2291953000)

libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f2291728000)

libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f2291524000)

libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f229131e000)

undefined symbol: _ZN5boost6thread12start_threadEv (./libwt.so)

undefined symbol: _ZN5boost11this_thread6get_idEv (./libwt.so)

undefined symbol: _ZN5boost6thread4joinEv (./libwt.so)

On Boost 1.52 problem not found:

nis@jane ~/wt-3.3.0/build/src $ ldd -r libwt.so

linux-vdso.so.1 (0x00007fff3528f000)

libboost_thread.so.1.52.0 => /usr/lib64/libboost_thread.so.1.52.0 (0x00007f70276bb000)

libboost_random.so.1.52.0 => /usr/lib64/libboost_random.so.1.52.0 (0x00007f70274b6000)

libboost_regex.so.1.52.0 => /usr/lib64/libboost_regex.so.1.52.0 (0x00007f70271da000)

libboost_signals.so.1.52.0 => /usr/lib64/libboost_signals.so.1.52.0 (0x00007f7026fc3000)

libboost_system.so.1.52.0 => /usr/lib64/libboost_system.so.1.52.0 (0x00007f7026dbe000)

libboost_filesystem.so.1.52.0 => /usr/lib64/libboost_filesystem.so.1.52.0 (0x00007f7026ba6000)

libboost_date_time.so.1.52.0 => /usr/lib64/libboost_date_time.so.1.52.0 (0x00007f7026994000)

libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007f7026729000)

libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f7026353000)

libhpdf-2.2.1.so => /usr/lib64/libhpdf-2.2.1.so (0x00007f702609b000)

libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f7025e64000)

libz.so.1 => /lib64/libz.so.1 (0x00007f7025c4e000)

libGraphicsMagick.so.3 => /usr/lib64/libGraphicsMagick.so.3 (0x00007f7025896000)

libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x00007f7025680000)

libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007f7025434000)

libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007f70251e2000)

libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f7024eb5000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7024c98000)

libm.so.6 => /lib64/libm.so.6 (0x00007f702499b000)

libstdc.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libstdc.so.6 (0x00007f7024692000)

libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/libgcc_s.so.1 (0x00007f702447b000)

libc.so.6 => /lib64/libc.so.6 (0x00007f70240d0000)

/lib64/ld-linux-x86-64.so.2 (0x00007f702814f000)

librt.so.1 => /lib64/librt.so.1 (0x00007f7023ec7000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f7023cc3000)

libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f7023aaf000)

libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f70238a6000)

libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f702368a000)

libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f702334d000)

libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f702313d000)

libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007f7022f33000)

libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007f7022cde000)

libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f7022aa1000)

libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f70227fd000)

libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007f70225f8000)

libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007f70223f0000)

libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f70221ea000)

libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f7021fc9000)

libgraphite2.so.3 => /usr/lib64/libgraphite2.so.3 (0x00007f7021dab000)

libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f7021b80000)

libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f702197c000)

libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f7021776000)

Project's worked and examples too.

Actions #5

Updated by Wim Dumon about 11 years ago

  • Status changed from New to Feedback

At first sight, this looks like you're using a version of the boost header file that doesn't match the library version that you link to. Is that possible? You should be able to see this in Wt's CMakeCache.txt.

BR,

Wim.

Actions #6

Updated by Koen Deforche about 11 years ago

Hey,

Can you also paste the exact linking command that you use, which is failing ?

Regards,

koen

Actions #7

Updated by Boris Vinogradov about 11 years ago

Wim Dumon wrote:

At first sight, this looks like you're using a version of the boost header file that doesn't match the library version that you link to. Is that possible? You should be able to see this in Wt's CMakeCache.txt.

BR,

Wim.

Khm. I'm using headers and libs simulary versions. I think this problem in libs code because I make examle lib with boost using and hasn't problem.

Actions #8

Updated by Boris Vinogradov about 11 years ago

Koen Deforche wrote:

Hey,

Can you also paste the exact linking command that you use, which is failing ?

Regards,

koen

TEMPLATE = app

CONFIG += console

CONFIG -= app_bundle

CONFIG -= qt

SOURCES += main.cpp

unix:!macx: LIBS += -lwt

unix:!macx: LIBS += -lwthttp

unix:!macx: LIBS += -lboost_signals

unix:!macx: LIBS += -lboost_thread

unix:!macx: LIBS += -lboost_system

Actions #9

Updated by Koen Deforche almost 11 years ago

Hey,

Can you also post the actual command line of the underlying linking step that is executed and which fails?

Regards,

koen

Actions #10

Updated by Koen Deforche about 10 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF