[ 
https://issues.apache.org/jira/browse/MESOS-6723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15795716#comment-15795716
 ] 

James Peach commented on MESOS-6723:
------------------------------------

FWIW I'm using {{-fuse-ld=gold}} successfully on Fedora 25 without any 
{{Makefile}} patches.

> Mesos fails to link using gold linker
> -------------------------------------
>
>                 Key: MESOS-6723
>                 URL: https://issues.apache.org/jira/browse/MESOS-6723
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>         Environment: Arch Linux, amd64, GNU gold (GNU Binutils 2.27) 1.12
>            Reporter: Neil Conway
>            Priority: Minor
>              Labels: mesosphere
>
> Configure flags:
> {noformat}
> ../mesos/configure --disable-java --disable-python CC="ccache gcc" 
> CXX="ccache g++" CXXFLAGS=-fuse-ld=gold CFLAGS=-fuse-ld=gold
> {noformat}
> Compile output:
> {noformat}
> /bin/sh ../libtool  --tag=CXX   --mode=link ccache g++ -pthread -fuse-ld=gold 
> -Wno-unused-local-typedefs -std=c++11 -Wl,--as-needed  -o mesos-local 
> local/mesos_local-main.o libmesos.la     -lz -lsvn_delta-1 -lsvn_subr-1 
> -lsasl2 -lcurl -lapr-1 -lz  -lrt -lunwind
> libtool: link: ccache g++ -pthread -fuse-ld=gold -Wno-unused-local-typedefs 
> -std=c++11 -Wl,--as-needed -o .libs/mesos-local local/mesos_local-main.o  
> ./.libs/libmesos.so -lpthread -lsvn_delta-1 -lsvn_subr-1 -lsasl2 -lcurl 
> -lapr-1 -lz -lrt -lunwind -pthread -Wl,-rpath -Wl,/usr/local/lib
> ./.libs/libmesos.so: error: undefined reference to 'dlerror'
> ./.libs/libmesos.so: error: undefined reference to 'dlclose'
> ./.libs/libmesos.so: error: undefined reference to 'dlopen'
> ./.libs/libmesos.so: error: undefined reference to 'dlsym'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:5139: mesos-local] Error 1
> {noformat}



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

Reply via email to