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

Fix build for boost library from Ubuntu 13.04 repo #6

Merged
merged 1 commit into from Oct 16, 2013

Conversation

roman-verchikov
Copy link
Contributor

Building gearbox for Ubuntu 13.04 failed with linker error:

vagrant@vagrant gearbox$ make
make  all-am
make[1]: Entering directory `/home/vagrant/gearbox'
/bin/bash ./libtool --tag=CXX   --mode=link g++  -g -fpermissive
-L/usr/lib -lboost_program_options  -o workers/gearbox/workerGearbox
workers/gearbox/workerGearboxMain.o gearbox/core/libgearbox_core.la
gearbox/store/libgearbox_store.la workers/gearbox/libworker_gearbox.la
libtool: link: g++ -g -fpermissive -o
workers/gearbox/.libs/workerGearbox workers/gearbox/workerGearboxMain.o
-L/usr/lib -lboost_program_options gearbox/core/.libs/libgearbox_core.so
gearbox/store/.libs/libgearbox_store.so
workers/gearbox/.libs/libworker_gearbox.so
/home/vagrant/gearbox/gearbox/worker/.libs/libgearbox_worker.so
/home/vagrant/gearbox/gearbox/store/.libs/libgearbox_store.so
-lsoci_core /home/vagrant/gearbox/gearbox/job/.libs/libgearbox_job.so
-lgearman -lboost_graph_parallel
/home/vagrant/gearbox/gearbox/core/.libs/libgearbox_core.so -lyajl
/usr/lib/x86_64-linux-gnu/libcurl.so -lboost_filesystem -llog4cxx
-lboost_regex -lcrypto -luuid -lboost_iostreams
/usr/bin/ld: workers/gearbox/workerGearboxMain.o: undefined reference to
symbol '_ZN5boost6system15system_categoryEv'
/usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in
DSO /usr/lib/libboost_system.so.1.53.0 so try adding it to the linker
command line
/usr/lib/libboost_system.so.1.53.0: could not read symbols: Invalid
operation
collect2: error: ld returned 1 exit status
make[1]: *** [workers/gearbox/workerGearbox] Error 1
make[1]: Leaving directory `/home/vagrant/gearbox'
make: *** [all] Error 2

Had to add -lboost_system explicitly to fix given error.

Building gearbox for Ubuntu 13.04 failed with linker error:

vagrant@vagrant gearbox$ make
make  all-am
make[1]: Entering directory `/home/vagrant/gearbox'
/bin/bash ./libtool --tag=CXX   --mode=link g++  -g -fpermissive
-L/usr/lib -lboost_program_options  -o workers/gearbox/workerGearbox
workers/gearbox/workerGearboxMain.o gearbox/core/libgearbox_core.la
gearbox/store/libgearbox_store.la workers/gearbox/libworker_gearbox.la
libtool: link: g++ -g -fpermissive -o
workers/gearbox/.libs/workerGearbox workers/gearbox/workerGearboxMain.o
-L/usr/lib -lboost_program_options gearbox/core/.libs/libgearbox_core.so
gearbox/store/.libs/libgearbox_store.so
workers/gearbox/.libs/libworker_gearbox.so
/home/vagrant/gearbox/gearbox/worker/.libs/libgearbox_worker.so
/home/vagrant/gearbox/gearbox/store/.libs/libgearbox_store.so
-lsoci_core /home/vagrant/gearbox/gearbox/job/.libs/libgearbox_job.so
-lgearman -lboost_graph_parallel
/home/vagrant/gearbox/gearbox/core/.libs/libgearbox_core.so -lyajl
/usr/lib/x86_64-linux-gnu/libcurl.so -lboost_filesystem -llog4cxx
-lboost_regex -lcrypto -luuid -lboost_iostreams
/usr/bin/ld: workers/gearbox/workerGearboxMain.o: undefined reference to
symbol '_ZN5boost6system15system_categoryEv'
/usr/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in
DSO /usr/lib/libboost_system.so.1.53.0 so try adding it to the linker
command line
/usr/lib/libboost_system.so.1.53.0: could not read symbols: Invalid
operation
collect2: error: ld returned 1 exit status
make[1]: *** [workers/gearbox/workerGearbox] Error 1
make[1]: Leaving directory `/home/vagrant/gearbox'
make: *** [all] Error 2

Had to add -lboost_system explicitly to fix given error.
@coryb
Copy link
Owner

coryb commented Oct 16, 2013

Looks good, thanks!
-Cory

coryb added a commit that referenced this pull request Oct 16, 2013
Fix build for boost library from Ubuntu 13.04 repo
@coryb coryb merged commit 402adc3 into coryb:master Oct 16, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants