You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Laxer (JIRA)" <ji...@apache.org> on 2014/11/07 13:38:34 UTC

[jira] [Reopened] (THRIFT-2799) Build Problem(s): ld: library not found for -l:libboost_unit_test_framework.a

     [ https://issues.apache.org/jira/browse/THRIFT-2799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Laxer reopened THRIFT-2799:
---------------------------------

I have tried to build Thrift with the static 'boost' libraries, however, the build still has linker errors.

This was my config command:

./configure --with-boost=/Users/davidlaxer/boost --with-boost-libdir=/Users/davidlaxer/boost/stage/lib

Here are the boost libraries:

David-Laxers-MacBook-Pro:boost davidlaxer$ ls -l stage/lib
total 470016
-rw-r--r--  1 davidlaxer  staff      6224 Nov  6 10:45 libboost_atomic.a
-rwxr-xr-x  1 davidlaxer  staff     13304 Nov  6 10:57 libboost_atomic.dylib
-rw-r--r--  1 davidlaxer  staff    280576 Nov  6 10:45 libboost_chrono.a
-rwxr-xr-x  1 davidlaxer  staff     50180 Nov  6 10:57 libboost_chrono.dylib
-rw-r--r--  1 davidlaxer  staff      1208 Nov  6 10:45 libboost_context.a
-rwxr-xr-x  1 davidlaxer  staff     12632 Nov  6 10:57 libboost_context.dylib
-rw-r--r--  1 davidlaxer  staff     76072 Nov  6 10:45 libboost_coroutine.a
-rwxr-xr-x  1 davidlaxer  staff     36108 Nov  6 10:57 libboost_coroutine.dylib
-rw-r--r--  1 davidlaxer  staff    494096 Nov  6 10:45 libboost_date_time.a
-rwxr-xr-x  1 davidlaxer  staff    116960 Nov  6 10:57 libboost_date_time.dylib
-rw-r--r--  1 davidlaxer  staff      3472 Nov  6 10:57 libboost_exception.a
-rw-r--r--  1 davidlaxer  staff   1257568 Nov  6 10:45 libboost_filesystem.a
-rwxr-xr-x  1 davidlaxer  staff    149444 Nov  6 10:16 libboost_filesystem.dylib
-rw-r--r--  1 davidlaxer  staff   4959656 Nov  6 10:48 libboost_graph.a
-rwxr-xr-x  1 davidlaxer  staff    541268 Nov  6 10:18 libboost_graph.dylib
-rw-r--r--  1 davidlaxer  staff   1094944 Nov  6 10:48 libboost_iostreams.a
-rwxr-xr-x  1 davidlaxer  staff    205128 Nov  6 10:18 libboost_iostreams.dylib
-rw-r--r--  1 davidlaxer  staff  16822768 Nov  6 10:51 libboost_log.a
-rwxr-xr-x  1 davidlaxer  staff   1442588 Nov  6 10:21 libboost_log.dylib
-rw-r--r--  1 davidlaxer  staff  38618632 Nov  6 11:04 libboost_log_setup.a
-rwxr-xr-x  1 davidlaxer  staff   3597428 Nov  6 10:25 libboost_log_setup.dylib
-rw-r--r--  1 davidlaxer  staff   3399992 Nov  6 11:08 libboost_math_c99.a
-rwxr-xr-x  1 davidlaxer  staff    192600 Nov  6 10:35 libboost_math_c99.dylib
-rw-r--r--  1 davidlaxer  staff   3310240 Nov  6 11:08 libboost_math_c99f.a
-rwxr-xr-x  1 davidlaxer  staff    145568 Nov  6 10:36 libboost_math_c99f.dylib
-rw-r--r--  1 davidlaxer  staff   3283640 Nov  6 11:09 libboost_math_c99l.a
-rwxr-xr-x  1 davidlaxer  staff    151580 Nov  6 10:36 libboost_math_c99l.dylib
-rw-r--r--  1 davidlaxer  staff  13519976 Nov  6 11:05 libboost_math_tr1.a
-rwxr-xr-x  1 davidlaxer  staff    717724 Nov  6 10:28 libboost_math_tr1.dylib
-rw-r--r--  1 davidlaxer  staff  13969728 Nov  6 11:06 libboost_math_tr1f.a
-rwxr-xr-x  1 davidlaxer  staff    800012 Nov  6 10:33 libboost_math_tr1f.dylib
-rw-r--r--  1 davidlaxer  staff  13456296 Nov  6 11:08 libboost_math_tr1l.a
-rwxr-xr-x  1 davidlaxer  staff    733660 Nov  6 10:35 libboost_math_tr1l.dylib
-rw-r--r--  1 davidlaxer  staff    421960 Nov  6 11:13 libboost_prg_exec_monitor.a
-rwxr-xr-x  1 davidlaxer  staff     83628 Nov  6 10:41 libboost_prg_exec_monitor.dylib
-rw-r--r--  1 davidlaxer  staff   6802680 Nov  6 11:10 libboost_program_options.a
-rwxr-xr-x  1 davidlaxer  staff    711000 Nov  6 10:37 libboost_program_options.dylib
-rw-r--r--  1 davidlaxer  staff   6422936 Nov  6 11:12 libboost_python.a
-rwxr-xr-x  1 davidlaxer  staff    534936 Nov  6 10:39 libboost_python.dylib
-rw-r--r--  1 davidlaxer  staff     87976 Nov  6 11:12 libboost_random.a
-rwxr-xr-x  1 davidlaxer  staff     37996 Nov  6 10:39 libboost_random.dylib
-rw-r--r--  1 davidlaxer  staff  12464344 Nov  6 10:47 libboost_regex.a
-rwxr-xr-x  1 davidlaxer  staff   1442864 Nov  6 10:17 libboost_regex.dylib
-rw-r--r--  1 davidlaxer  staff   8760600 Nov  6 11:13 libboost_serialization.a
-rwxr-xr-x  1 davidlaxer  staff    883184 Nov  6 10:40 libboost_serialization.dylib
-rw-r--r--  1 davidlaxer  staff   1206104 Nov  6 11:13 libboost_signals.a
-rwxr-xr-x  1 davidlaxer  staff    158976 Nov  6 10:41 libboost_signals.dylib
-rw-r--r--  1 davidlaxer  staff    468232 Nov  6 11:13 libboost_sync.a
-rwxr-xr-x  1 davidlaxer  staff     61468 Nov  6 10:41 libboost_sync.dylib
-rw-r--r--  1 davidlaxer  staff    125104 Nov  6 10:45 libboost_system.a
-rwxr-xr-x  1 davidlaxer  staff     34136 Nov  6 10:57 libboost_system.dylib
-rw-r--r--  1 davidlaxer  staff   9639336 Nov  6 10:42 libboost_test_exec_monitor.a
-rw-r--r--  1 davidlaxer  staff    981480 Nov  6 10:48 libboost_thread.a
-rwxr-xr-x  1 davidlaxer  staff    169784 Nov  6 10:18 libboost_thread.dylib
-rw-r--r--  1 davidlaxer  staff    168520 Nov  6 11:13 libboost_timer.a
-rwxr-xr-x  1 davidlaxer  staff     34672 Nov  6 10:43 libboost_timer.dylib
-rw-r--r--  1 davidlaxer  staff  10779240 Nov  6 11:13 libboost_unit_test_framework.a
-rwxr-xr-x  1 davidlaxer  staff   1252444 Nov  6 10:43 libboost_unit_test_framework.dylib
-rw-r--r--  1 davidlaxer  staff  43398616 Nov  6 11:15 libboost_wave.a
-rwxr-xr-x  1 davidlaxer  staff   2554656 Nov  6 10:45 libboost_wave.dylib
-rw-r--r--  1 davidlaxer  staff   6716576 Nov  6 11:13 libboost_wserialization.a
-rwxr-xr-x  1 davidlaxer  staff    634708 Nov  6 10:41 libboost_wserialization.dylib

The linker couldn't resolve the semi-colon between -l and 'libboost_unit_test_framework.a'.  I was advised to manually edit Makefile.am
and remove the semi-colons.

That also failed:
David-Laxers-MacBook-Pro:thrift davidlaxer$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in compiler/cpp
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[3]: Nothing to be done for `all-am'.
Making all in lib
Making all in cpp
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in test
 cd ../../.. && /bin/sh /Users/davidlaxer/thrift/missing automake-1.14 --foreign lib/cpp/test/Makefile
 cd ../../.. && /bin/sh ./config.status lib/cpp/test/Makefile depfiles
config.status: creating lib/cpp/test/Makefile
config.status: executing depfiles commands
Makefile:1350: *** missing separator.  Stop.
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


> Build Problem(s): ld: library not found for -l:libboost_unit_test_framework.a
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-2799
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2799
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>    Affects Versions: 0.9.1
>         Environment: Mac OS X Yosemite
>            Reporter: David Laxer
>            Assignee: Jake Farrell
>              Labels: boost
>             Fix For: 0.9.3
>
>         Attachments: Makefile, Makefile, Makefile.am, config.log
>
>
> /bin/sh ../../../libtool  --tag=CXX   --mode=link g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -L/usr/local/lib  -o processor_test processor/ProcessorTest.o processor/EventLog.o processor/ServerThread.o libprocessortest.la ../../../lib/cpp/libthrift.la ../../../lib/cpp/libthriftnb.la -L/usr/local/lib -levent -l:libboost_unit_test_framework.a -lssl -lcrypto -lpthread 
> libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -o .libs/processor_test processor/ProcessorTest.o processor/EventLog.o processor/ServerThread.o -Wl,-bind_at_load  -L/usr/local/lib ./.libs/libprocessortest.a ../../../lib/cpp/.libs/libthrift.dylib ../../../lib/cpp/.libs/libthriftnb.dylib /usr/local/lib/libevent.dylib -l:libboost_unit_test_framework.a -lssl -lcrypto -lpthread
> ld: library not found for -l:libboost_unit_test_framework.a
> collect2: error: ld returned 1 exit status
> make[4]: *** [processor_test] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> David-Laxers-MacBook-Pro:thrift davidlaxer$ sudo port list select boost
> Password:
> boost                          @1.56.0         devel/boost



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)