Project

General

Profile

undefined reference to `boost::filesystem3::detail::status

Added by Vincent Cridlig almost 13 years ago

Hi,

I built and installed wt-3.2.1 on a freshly installed xubuntu (12.04). Arch is amd x86_64 and libboost is in version 1.46.

The issue I am facing is that my test application fails to link because of some undefined references in libwt.so.

It seems like wt-3.2.1 and libboost-1.46 don't work well together.

Any comment/help appreciated. I am willing to try a patch on wt library if needed:

vincent@vincent-GA-MA69GM-S2H:/media/cs1/ws/cst-04212012/cst/trunk/src$ make

g -I/home/vincent/install/include -c -Wall -g User.C -o User.o

g -I/home/vincent/install/include -c -Wall -g Test.C -o Test.o

g -g User.o Test.o -L/home/vincent/install/lib -lboost_filesystem -lboost_system -lwthttp -lwt -lwtdbosqlite3 -lwtdbo -o foo

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&, boost::system::error_code*)'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::detail::last_write_time(boost::filesystem3::path const&, boost::system::error_code*)'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::path::filename() const'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::detail::file_size(boost::filesystem3::path const&, boost::system::error_code*)'

/home/vincent/install/lib/libwt.so: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'

collect2: ld returned 1 exit status

make: * [cstennis] Error 1

vincent@vincent-GA-MA69GM-S2H:/media/cs1/ws/cst-04212012/cst/trunk/src$

Thanks

Vincent


Replies (10)

RE: undefined reference to `boost::filesystem3::detail::status - Added by Wim Dumon almost 13 years ago

Hello Vincent,

Do the Wt examples compile and link properly? (cd examples; make). If they do, please take a look at the compile and linke parameters that are used there, they will contain hints on how to solve your problem. To see the full compile and link commands, run make VERBOSE=1 in (one of) the examples directory.

It's not clear to me what's happening in your case. Maybe you're mixing files from different boost installations?

Wim.

RE: undefined reference to `boost::filesystem3::detail::status - Added by Vincent Cridlig almost 13 years ago

Thanks for the quick replies. I tried to compile the examples, and it worked fine.

I had seen the other similar discussion, and it refers to compiling boost, but I am using a pre-compiled boost lib from xubuntu packages. Also I am giving the full path to the lib when compiling or just -lboost_filesystem which was the solution in the other thread.

c User.o Test.o -o widgetgallery.wt /usr/lib/libboost_system.so.1.46.1 /usr/lib/libboost_filesystem.so.1.46.1 /usr/local/lib/libwt.so.3.2.1 /usr/local/lib/libwthttp.so.3.2.1 /usr/local/lib/libwtdbo.so.3.2.1

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::detail::status(boost::filesystem3::path const&, boost::system::error_code*)'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::detail::directory_iterator_increment(boost::filesystem3::directory_iterator&, boost::system::error_code*)'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::detail::directory_iterator_construct(boost::filesystem3::directory_iterator&, boost::filesystem3::path const&, boost::system::error_code*)'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::detail::dir_itr_close(void*&, void*&)'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::detail::last_write_time(boost::filesystem3::path const&, boost::system::error_code*)'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::path::filename() const'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::detail::file_size(boost::filesystem3::path const&, boost::system::error_code*)'

/usr/local/lib/libwt.so.3.2.1: undefined reference to `boost::filesystem3::path::wchar_t_codecvt_facet()'

collect2: ld returned 1 exit status

This is a sample when building the examples successfully:

[ 95%] Building CXX object examples/widgetgallery/CMakeFiles/widgetgallery.wt.dir//treeview/TreeViewExample.o

cd /home/vincent/Downloads/wt-3.2.1/build/examples/widgetgallery && /usr/bin/c -DWT_WITH_OLD_INTERNALPATH_API -DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE -DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE -DWT_DEPRECATED_3_0_0 -O2 -g -I/home/vincent/Downloads/wt-3.2.1/build -I/home/vincent/Downloads/wt-3.2.1/src -I/home/vincent/Downloads/wt-3.2.1/examples/widgetgallery/../charts -I/home/vincent/Downloads/wt-3.2.1/examples/widgetgallery/../dragdrop -I/home/vincent/Downloads/wt-3.2.1/examples/widgetgallery/../painting -I/home/vincent/Downloads/wt-3.2.1/examples/widgetgallery/../treeview -o CMakeFiles/widgetgallery.wt.dir//treeview/TreeViewExample.o -c /home/vincent/Downloads/wt-3.2.1/examples/treeview/TreeViewExample.C

Linking CXX executable widgetgallery.wt

cd /home/vincent/Downloads/wt-3.2.1/build/examples/widgetgallery && /usr/bin/cmake -E cmake_link_script CMakeFiles/widgetgallery.wt.dir/link.txt ---verbose=1

/usr/bin/c -O2 -g CMakeFiles/widgetgallery.wt.dir/main.o CMakeFiles/widgetgallery.wt.dir/BasicControls.o CMakeFiles/widgetgallery.wt.dir/ChartWidgets.o CMakeFiles/widgetgallery.wt.dir/ControlsWidget.o CMakeFiles/widgetgallery.wt.dir/DialogWidgets.o CMakeFiles/widgetgallery.wt.dir/EventsDemo.o CMakeFiles/widgetgallery.wt.dir/EventDisplayer.o CMakeFiles/widgetgallery.wt.dir/WidgetGallery.o CMakeFiles/widgetgallery.wt.dir/ExtWidgets.o CMakeFiles/widgetgallery.wt.dir/FormWidgets.o CMakeFiles/widgetgallery.wt.dir/GraphicsWidgets.o CMakeFiles/widgetgallery.wt.dir/SpecialPurposeWidgets.o CMakeFiles/widgetgallery.wt.dir/MvcWidgets.o CMakeFiles/widgetgallery.wt.dir/Validators.o CMakeFiles/widgetgallery.wt.dir/StyleLayout.o CMakeFiles/widgetgallery.wt.dir/PaintBrush.o CMakeFiles/widgetgallery.wt.dir/EmwebLoadingIndicator.o CMakeFiles/widgetgallery.wt.dir//charts/ChartsExample.o CMakeFiles/widgetgallery.wt.dir//charts/ChartConfig.o CMakeFiles/widgetgallery.wt.dir//charts/CsvUtil.o CMakeFiles/widgetgallery.wt.dir//charts/PanelList.o CMakeFiles/widgetgallery.wt.dir//dragdrop/Character.o CMakeFiles/widgetgallery.wt.dir//dragdrop/DragExample.o CMakeFiles/widgetgallery.wt.dir//painting/PaintExample.o CMakeFiles/widgetgallery.wt.dir//painting/ShapesWidget.o CMakeFiles/widgetgallery.wt.dir//treeview/TreeViewExample.o -o widgetgallery.wt -rdynamic -L/home/vincent/Downloads/wt-3.2.1/build/src/http -L/home/vincent/Downloads/wt-3.2.1/build/src -L/home/vincent/Downloads/wt-3.2.1/build/src/Wt/Ext ../../src/http/libwthttp.so.3.2.1 ../../src/libwt.so.3.2.1 ../../src/Wt/Ext/libwtext.so.3.2.1 -lz -lboost_filesystem-mt -lboost_program_options-mt ../../src/libwt.so.3.2.1 -lssl -lcrypto -lpthread -lboost_thread-mt -lboost_random-mt -lboost_regex-mt -lboost_signals-mt -lboost_system-mt -lboost_date_time-mt -Wl,-rpath,/home/vincent/Downloads/wt-3.2.1/build/src/http:/home/vincent/Downloads/wt-3.2.1/build/src:/home/vincent/Downloads/wt-3.2.1/build/src/Wt/Ext

make[2]: Leaving directory `/home/vincent/Downloads/wt-3.2.1/build'

/usr/bin/cmake -E cmake_progress_report /home/vincent/Downloads/wt-3.2.1/build/CMakeFiles 31 32 33 34

[100%] Built target widgetgallery.wt

make[1]: Leaving directory `/home/vincent/Downloads/wt-3.2.1/build'

/usr/bin/cmake -E cmake_progress_start /home/vincent/Downloads/wt-3.2.1/build/CMakeFiles 0

vincent@vincent-GA-MA69GM-S2H:~/Downloads/wt-3.2.1/build/examples$

I guess the next step is to compile boost lib myself...

Thanks

Vincent

RE: undefined reference to `boost::filesystem3::detail::status - Added by Thomas Saquet almost 13 years ago

It's not about compiling boost, i didn't, i had exactly the same problem and I did what Jan Hrubeš suggested (ie : boost::filesystem is not a header only library. You have to pass libboost_filesystem.so (on linux is by default located in /usr/local/lib) to your linker (or the location using -L parameter). )

RE: undefined reference to `boost::filesystem3::detail::status - Added by Vincent Cridlig almost 13 years ago

Hi Thomas,

Thanks for your help! I may be missing something here, could you send me the command you use or point to what's missing exactly in mine?

c -g User.o Test.o -L/usr/local/lib -lboost_filesystem-mt -lboost_program_options-mt -lwthttp -lwt -lwtext -lz -lwtdbosqlite3 -lwtdbo -lssl -lcrypto -lpthread -lboost_thread-mt -lboost_random-mt -lboost_regex-mt -lboost_signals-mt -lboost_system-mt -lboost_date_time-mt -o cstennis

By the way, these are the boost libs from /usr/lib and the wt libs from /usr/local/lib:

vincent@vincent-GA-MA69GM-S2H:/media/cs1/ws/cst-04212012/cst/trunk/src$ ls -al /usr/lib/ | grep libboost

-rw-r---r--- 1 root root 139188 Jan 2 08:05 libboost_date_time.a

lrwxrwxrwx 1 root root 20 Jan 2 08:05 libboost_date_time-mt.a -> libboost_date_time.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_date_time-mt.so -> libboost_date_time.so.1.46.1

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_date_time.so -> libboost_date_time.so.1.46.1

-rw-r---r--- 1 root root 68216 Jan 2 08:05 libboost_date_time.so.1.46.1

-rw-r---r--- 1 root root 352566 Jan 2 08:05 libboost_filesystem.a

lrwxrwxrwx 1 root root 21 Jan 2 08:05 libboost_filesystem-mt.a -> libboost_filesystem.a

lrwxrwxrwx 1 root root 29 Jan 2 08:05 libboost_filesystem-mt.so -> libboost_filesystem.so.1.46.1

lrwxrwxrwx 1 root root 29 Jan 2 08:05 libboost_filesystem.so -> libboost_filesystem.so.1.46.1

-rw-r---r--- 1 root root 122280 Jan 2 08:05 libboost_filesystem.so.1.46.1

-rw-r---r--- 1 root root 725590 Jan 2 08:05 libboost_graph.a

lrwxrwxrwx 1 root root 16 Jan 2 08:05 libboost_graph-mt.a -> libboost_graph.a

lrwxrwxrwx 1 root root 24 Jan 2 08:05 libboost_graph-mt.so -> libboost_graph.so.1.46.1

-rw-r---r--- 1 root root 630656 Jan 3 07:59 libboost_graph_parallel.a

lrwxrwxrwx 1 root root 25 Jan 3 07:59 libboost_graph_parallel-mt.a -> libboost_graph_parallel.a

lrwxrwxrwx 1 root root 33 Jan 3 07:59 libboost_graph_parallel-mt.so -> libboost_graph_parallel.so.1.46.1

lrwxrwxrwx 1 root root 33 Jan 3 07:59 libboost_graph_parallel.so -> libboost_graph_parallel.so.1.46.1

-rw-r---r--- 1 root root 287512 Jan 3 07:59 libboost_graph_parallel.so.1.46.1

lrwxrwxrwx 1 root root 24 Jan 2 08:05 libboost_graph.so -> libboost_graph.so.1.46.1

-rw-r---r--- 1 root root 324192 Jan 2 08:05 libboost_graph.so.1.46.1

-rw-r---r--- 1 root root 282048 Jan 2 08:05 libboost_iostreams.a

lrwxrwxrwx 1 root root 20 Jan 2 08:05 libboost_iostreams-mt.a -> libboost_iostreams.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_iostreams-mt.so -> libboost_iostreams.so.1.46.1

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_iostreams.so -> libboost_iostreams.so.1.46.1

-rw-r---r--- 1 root root 101592 Jan 2 08:05 libboost_iostreams.so.1.46.1

-rw-r---r--- 1 root root 321920 Jan 2 08:05 libboost_math_c99.a

-rw-r---r--- 1 root root 322184 Jan 2 08:05 libboost_math_c99f.a

lrwxrwxrwx 1 root root 20 Jan 2 08:05 libboost_math_c99f-mt.a -> libboost_math_c99f.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_c99f-mt.so -> libboost_math_c99f.so.1.46.1

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_c99f.so -> libboost_math_c99f.so.1.46.1

-rw-r---r--- 1 root root 105264 Jan 2 08:05 libboost_math_c99f.so.1.46.1

-rw-r---r--- 1 root root 321244 Jan 2 08:05 libboost_math_c99l.a

lrwxrwxrwx 1 root root 20 Jan 2 08:05 libboost_math_c99l-mt.a -> libboost_math_c99l.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_c99l-mt.so -> libboost_math_c99l.so.1.46.1

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_c99l.so -> libboost_math_c99l.so.1.46.1

-rw-r---r--- 1 root root 109264 Jan 2 08:05 libboost_math_c99l.so.1.46.1

lrwxrwxrwx 1 root root 19 Jan 2 08:05 libboost_math_c99-mt.a -> libboost_math_c99.a

lrwxrwxrwx 1 root root 27 Jan 2 08:05 libboost_math_c99-mt.so -> libboost_math_c99.so.1.46.1

lrwxrwxrwx 1 root root 27 Jan 2 08:05 libboost_math_c99.so -> libboost_math_c99.so.1.46.1

-rw-r---r--- 1 root root 109312 Jan 2 08:05 libboost_math_c99.so.1.46.1

-rw-r---r--- 1 root root 2128282 Jan 2 08:05 libboost_math_tr1.a

-rw-r---r--- 1 root root 2167746 Jan 2 08:05 libboost_math_tr1f.a

lrwxrwxrwx 1 root root 20 Jan 2 08:05 libboost_math_tr1f-mt.a -> libboost_math_tr1f.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_tr1f-mt.so -> libboost_math_tr1f.so.1.46.1

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_tr1f.so -> libboost_math_tr1f.so.1.46.1

-rw-r---r--- 1 root root 265088 Jan 2 08:05 libboost_math_tr1f.so.1.46.1

-rw-r---r--- 1 root root 2128438 Jan 2 08:05 libboost_math_tr1l.a

lrwxrwxrwx 1 root root 20 Jan 2 08:05 libboost_math_tr1l-mt.a -> libboost_math_tr1l.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_tr1l-mt.so -> libboost_math_tr1l.so.1.46.1

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_math_tr1l.so -> libboost_math_tr1l.so.1.46.1

-rw-r---r--- 1 root root 244536 Jan 2 08:05 libboost_math_tr1l.so.1.46.1

lrwxrwxrwx 1 root root 19 Jan 2 08:05 libboost_math_tr1-mt.a -> libboost_math_tr1.a

lrwxrwxrwx 1 root root 27 Jan 2 08:05 libboost_math_tr1-mt.so -> libboost_math_tr1.so.1.46.1

lrwxrwxrwx 1 root root 27 Jan 2 08:05 libboost_math_tr1.so -> libboost_math_tr1.so.1.46.1

-rw-r---r--- 1 root root 240440 Jan 2 08:05 libboost_math_tr1.so.1.46.1

-rw-r---r--- 1 root root 3128256 Jan 3 07:59 libboost_mpi.a

lrwxrwxrwx 1 root root 14 Jan 3 07:59 libboost_mpi-mt.a -> libboost_mpi.a

lrwxrwxrwx 1 root root 22 Jan 3 07:59 libboost_mpi-mt.so -> libboost_mpi.so.1.46.1

lrwxrwxrwx 1 root root 22 Jan 3 07:59 libboost_mpi.so -> libboost_mpi.so.1.46.1

-rw-r---r--- 1 root root 180320 Jan 3 07:59 libboost_mpi.so.1.46.1

-rw-r---r--- 1 root root 116720 Jan 2 08:05 libboost_prg_exec_monitor.a

lrwxrwxrwx 1 root root 27 Jan 2 08:05 libboost_prg_exec_monitor-mt.a -> libboost_prg_exec_monitor.a

lrwxrwxrwx 1 root root 35 Jan 2 08:05 libboost_prg_exec_monitor-mt.so -> libboost_prg_exec_monitor.so.1.46.1

lrwxrwxrwx 1 root root 35 Jan 2 08:05 libboost_prg_exec_monitor.so -> libboost_prg_exec_monitor.so.1.46.1

-rw-r---r--- 1 root root 56352 Jan 2 08:05 libboost_prg_exec_monitor.so.1.46.1

-rw-r---r--- 1 root root 1070448 Jan 2 08:05 libboost_program_options.a

lrwxrwxrwx 1 root root 26 Jan 2 08:05 libboost_program_options-mt.a -> libboost_program_options.a

lrwxrwxrwx 1 root root 34 Jan 2 08:05 libboost_program_options-mt.so -> libboost_program_options.so.1.46.1

lrwxrwxrwx 1 root root 34 Jan 2 08:05 libboost_program_options.so -> libboost_program_options.so.1.46.1

-rw-r---r--- 1 root root 414280 Jan 2 08:05 libboost_program_options.so.1.46.1

lrwxrwxrwx 1 root root 22 Apr 30 09:11 libboost_python.a -> libboost_python-py27.a

lrwxrwxrwx 1 root root 22 Jan 2 08:05 libboost_python-mt-py27.a -> libboost_python-py27.a

lrwxrwxrwx 1 root root 30 Jan 2 08:05 libboost_python-mt-py27.so -> libboost_python-py27.so.1.46.1

lrwxrwxrwx 1 root root 22 Jan 2 08:05 libboost_python-mt-py32.a -> libboost_python-py32.a

lrwxrwxrwx 1 root root 30 Jan 2 08:05 libboost_python-mt-py32.so -> libboost_python-py32.so.1.46.1

-rw-r---r--- 1 root root 665816 Jan 2 08:05 libboost_python-py27.a

lrwxrwxrwx 1 root root 30 Jan 2 08:05 libboost_python-py27.so -> libboost_python-py27.so.1.46.1

-rw-r---r--- 1 root root 311168 Jan 2 08:05 libboost_python-py27.so.1.46.1

-rw-r---r--- 1 root root 659046 Jan 2 08:05 libboost_python-py32.a

lrwxrwxrwx 1 root root 30 Jan 2 08:05 libboost_python-py32.so -> libboost_python-py32.so.1.46.1

-rw-r---r--- 1 root root 307072 Jan 2 08:05 libboost_python-py32.so.1.46.1

lrwxrwxrwx 1 root root 23 Apr 30 09:11 libboost_python.so -> libboost_python-py27.so

-rw-r---r--- 1 root root 7964 Jan 2 08:05 libboost_random.a

lrwxrwxrwx 1 root root 17 Jan 2 08:05 libboost_random-mt.a -> libboost_random.a

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_random-mt.so -> libboost_random.so.1.46.1

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_random.so -> libboost_random.so.1.46.1

-rw-r---r--- 1 root root 10472 Jan 2 08:05 libboost_random.so.1.46.1

-rw-r---r--- 1 root root 2626798 Jan 2 08:05 libboost_regex.a

lrwxrwxrwx 1 root root 16 Jan 2 08:05 libboost_regex-mt.a -> libboost_regex.a

lrwxrwxrwx 1 root root 24 Jan 2 08:05 libboost_regex-mt.so -> libboost_regex.so.1.46.1

lrwxrwxrwx 1 root root 24 Jan 2 08:05 libboost_regex.so -> libboost_regex.so.1.46.1

-rw-r---r--- 1 root root 1054456 Jan 2 08:05 libboost_regex.so.1.46.1

-rw-r---r--- 1 root root 1240436 Jan 2 08:05 libboost_serialization.a

lrwxrwxrwx 1 root root 24 Jan 2 08:05 libboost_serialization-mt.a -> libboost_serialization.a

lrwxrwxrwx 1 root root 32 Jan 2 08:05 libboost_serialization-mt.so -> libboost_serialization.so.1.46.1

lrwxrwxrwx 1 root root 32 Jan 2 08:05 libboost_serialization.so -> libboost_serialization.so.1.46.1

-rw-r---r--- 1 root root 446584 Jan 2 08:05 libboost_serialization.so.1.46.1

-rw-r---r--- 1 root root 179532 Jan 2 08:05 libboost_signals.a

lrwxrwxrwx 1 root root 18 Jan 2 08:05 libboost_signals-mt.a -> libboost_signals.a

lrwxrwxrwx 1 root root 26 Jan 2 08:05 libboost_signals-mt.so -> libboost_signals.so.1.46.1

lrwxrwxrwx 1 root root 26 Jan 2 08:05 libboost_signals.so -> libboost_signals.so.1.46.1

-rw-r---r--- 1 root root 80600 Jan 2 08:05 libboost_signals.so.1.46.1

-rw-r---r--- 1 root root 48666 Jan 2 08:05 libboost_system.a

lrwxrwxrwx 1 root root 17 Jan 2 08:05 libboost_system-mt.a -> libboost_system.a

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_system-mt.so -> libboost_system.so.1.46.1

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_system.so -> libboost_system.so.1.46.1

-rw-r---r--- 1 root root 14568 Jan 2 08:05 libboost_system.so.1.46.1

-rw-r---r--- 1 root root 1617622 Jan 2 08:05 libboost_test_exec_monitor.a

lrwxrwxrwx 1 root root 28 Jan 2 08:05 libboost_test_exec_monitor-mt.a -> libboost_test_exec_monitor.a

-rw-r---r--- 1 root root 211414 Jan 2 08:05 libboost_thread.a

lrwxrwxrwx 1 root root 17 Jan 2 08:05 libboost_thread-mt.a -> libboost_thread.a

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_thread-mt.so -> libboost_thread.so.1.46.1

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_thread.so -> libboost_thread.so.1.46.1

-rw-r---r--- 1 root root 101304 Jan 2 08:05 libboost_thread.so.1.46.1

-rw-r---r--- 1 root root 1850282 Jan 2 08:05 libboost_unit_test_framework.a

lrwxrwxrwx 1 root root 30 Jan 2 08:05 libboost_unit_test_framework-mt.a -> libboost_unit_test_framework.a

lrwxrwxrwx 1 root root 38 Jan 2 08:05 libboost_unit_test_framework-mt.so -> libboost_unit_test_framework.so.1.46.1

lrwxrwxrwx 1 root root 38 Jan 2 08:05 libboost_unit_test_framework.so -> libboost_unit_test_framework.so.1.46.1

-rw-r---r--- 1 root root 656824 Jan 2 08:05 libboost_unit_test_framework.so.1.46.1

-rw-r---r--- 1 root root 3734376 Jan 2 08:05 libboost_wave.a

lrwxrwxrwx 1 root root 15 Jan 2 08:05 libboost_wave-mt.a -> libboost_wave.a

lrwxrwxrwx 1 root root 23 Jan 2 08:05 libboost_wave-mt.so -> libboost_wave.so.1.46.1

lrwxrwxrwx 1 root root 23 Jan 2 08:05 libboost_wave.so -> libboost_wave.so.1.46.1

-rw-r---r--- 1 root root 1320168 Jan 2 08:05 libboost_wave.so.1.46.1

-rw-r---r--- 1 root root 845954 Jan 2 08:05 libboost_wserialization.a

lrwxrwxrwx 1 root root 25 Jan 2 08:05 libboost_wserialization-mt.a -> libboost_wserialization.a

lrwxrwxrwx 1 root root 33 Jan 2 08:05 libboost_wserialization-mt.so -> libboost_wserialization.so.1.46.1

lrwxrwxrwx 1 root root 33 Jan 2 08:05 libboost_wserialization.so -> libboost_wserialization.so.1.46.1

-rw-r---r--- 1 root root 323128 Jan 2 08:05 libboost_wserialization.so.1.46.1

vincent@vincent-GA-MA69GM-S2H:/media/cs1/ws/cst-04212012/cst/trunk/src$

vincent@vincent-GA-MA69GM-S2H:/media/cs1/ws/cst-04212012/cst/trunk/src$ ls -al /usr/local/lib/

total 123244

drwxr-xr-x 3 root root 4096 Apr 30 19:36 .

drwxr-xr-x 11 root root 4096 Apr 29 08:58 ..

lrwxrwxrwx 1 root root 22 Apr 29 08:58 libwtdbopostgres.so -> libwtdbopostgres.so.32

lrwxrwxrwx 1 root root 25 Apr 29 08:58 libwtdbopostgres.so.32 -> libwtdbopostgres.so.3.2.1

-rw-r---r--- 1 root root 843721 Apr 30 09:48 libwtdbopostgres.so.3.2.1

lrwxrwxrwx 1 root root 14 Apr 29 08:58 libwtdbo.so -> libwtdbo.so.32

lrwxrwxrwx 1 root root 17 Apr 29 08:58 libwtdbo.so.32 -> libwtdbo.so.3.2.1

-rw-r---r--- 1 root root 8809425 Apr 30 09:38 libwtdbo.so.3.2.1

lrwxrwxrwx 1 root root 21 Apr 29 08:58 libwtdbosqlite3.so -> libwtdbosqlite3.so.32

lrwxrwxrwx 1 root root 24 Apr 29 08:58 libwtdbosqlite3.so.32 -> libwtdbosqlite3.so.3.2.1

-rw-r---r--- 1 root root 2802929 Apr 30 09:39 libwtdbosqlite3.so.3.2.1

lrwxrwxrwx 1 root root 14 Apr 29 08:58 libwtext.so -> libwtext.so.32

lrwxrwxrwx 1 root root 17 Apr 29 08:58 libwtext.so.32 -> libwtext.so.3.2.1

-rw-r---r--- 1 root root 10390978 Apr 30 09:48 libwtext.so.3.2.1

lrwxrwxrwx 1 root root 15 Apr 29 08:58 libwtfcgi.so -> libwtfcgi.so.32

lrwxrwxrwx 1 root root 18 Apr 29 08:58 libwtfcgi.so.32 -> libwtfcgi.so.3.2.1

-rw-r---r--- 1 root root 2511423 Apr 30 09:43 libwtfcgi.so.3.2.1

lrwxrwxrwx 1 root root 15 Apr 29 08:58 libwthttp.so -> libwthttp.so.32

lrwxrwxrwx 1 root root 18 Apr 29 08:58 libwthttp.so.32 -> libwthttp.so.3.2.1

-rw-r---r--- 1 root root 10677177 Apr 30 09:45 libwthttp.so.3.2.1

lrwxrwxrwx 1 root root 11 Apr 29 08:58 libwt.so -> libwt.so.32

lrwxrwxrwx 1 root root 14 Apr 29 08:58 libwt.so.32 -> libwt.so.3.2.1

-rw-r---r--- 1 root root 89041770 Apr 30 09:36 libwt.so.3.2.1

lrwxrwxrwx 1 root root 14 Apr 29 08:58 libwttest.so -> libwttest.so.2

lrwxrwxrwx 1 root root 18 Apr 29 08:58 libwttest.so.2 -> libwttest.so.3.2.1

-rw-r---r--- 1 root root 1100149 Apr 30 09:38 libwttest.so.3.2.1

drwxrwsr-x 4 root staff 4096 Apr 25 09:13 python2.7

vincent@vincent-GA-MA69GM-S2H:/media/cs1/ws/cst-04212012/cst/trunk/src$

Thanks

Vincent

RE: undefined reference to `boost::filesystem3::detail::status - Added by Wim Dumon almost 13 years ago

Vincent,

Try to move filesystem more to the rear end of your command line. If this solves it, please send me your CMakeCache.txt file (wim@emweb.be). I believe there is something wrong on our cmake config for your system.

Regards,

Wim.

RE: undefined reference to `boost::filesystem3::detail::status - Added by Thomas Saquet almost 13 years ago

I don't know what is missing in your command, it seems you link more things than i do ! I use Netbeans and link the libaries through the gui which produces the Makefile with the following line :

LDLIBSOPTIONS=-lwt -lwtdbo -lwtdbopostgres -lwthttp -lboost_signals -lboost_system -lboost_filesystem

Hope you are going to find a way to solve your problem ! My libs are located in the same folders than yours and i use Ubuntu, it should not be too different :)

RE: undefined reference to `boost::filesystem3::detail::status - Added by Vincent Cridlig almost 13 years ago

I ended up building my own boost library in different versions. Each one had a specific issue.

- 1.43 and 1.45. When building wt:

/home/vincent/install/include/boost/asio/ssl/detail/openssl_context_service.hpp:73:28: error: '::SSLv2_method' has not been declared

/home/vincent/install/include/boost/asio/ssl/detail/openssl_context_service.hpp:76:28: error: '::SSLv2_client_method' has not been declared

/home/vincent/install/include/boost/asio/ssl/detail/openssl_context_service.hpp:79:28: error: '::SSLv2_server_method' has not been declared

- 1.49

[ 84%] Building CXX object test/CMakeFiles/test.dir/dbo/Benchmark.o

[ 84%] Building CXX object test/CMakeFiles/test.dir/private/DboImplTest.o

Linking CXX executable test

../src/libwt.so.3.2.1: undefined reference to `boost::random::random_device::operator()()'

../src/libwt.so.3.2.1: undefined reference to `boost::random::random_device::~random_device()'

../src/libwt.so.3.2.1: undefined reference to `boost::random::random_device::random_device()'

collect2: ld returned 1 exit status

make[2]: * [test/test] Error 1

With 1.45, I commented out the three switch cases related to SSLv2 in the boost header file. Then, I still hit the original linker issue, and I got around it by linking with the static library. I guess I could have tried that from the beginning. Not sure why it doesn't work with the dynamic library.

Vincent

RE: undefined reference to `boost::filesystem3::detail::status - Added by Wim Dumon almost 13 years ago

Vincent,

recent git versions contain a modification on how wt links against boost::filesystem, so that should resolve the filesystem problems. I have never seen the SSL errors you mention...

The boost random errors is due to boost who has changed the random library in an incompatible way. You should be able to resolve this by toggling the cmake variable WT_NO_BOOST_RANDOM.

Best regards,

Wim.

RE: undefined reference to `boost::filesystem3::detail::status - Added by Zhimin Song almost 13 years ago

the same to me when 3.1.10 update-to 3.2.1

I used the find_package and resolved it.

    (1-10/10)