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

Leif Hedstrom commented on TS-2634:
-----------------------------------

Looks like some linker defaults have changed (--as-needed enabled). So a couple 
of options.

1. Add an explicit -lhwloc to mgmt/Makefile.am, i.e.

{code}
diff --git a/mgmt/Makefile.am b/mgmt/Makefile.am
index 55c105a..873b886 100644
--- a/mgmt/Makefile.am
+++ b/mgmt/Makefile.am
@@ -106,6 +106,7 @@ traffic_manager_LDADD = \
   $(top_builddir)/proxy/shared/liberror.a \
   $(top_builddir)/proxy/shared/libdiagsconfig.a \
   @LIBRESOLV@ @LIBEXPAT@ @LIBPCRE@ @LIBTCL@ @LIBCAP@ \
+  @hwloc_LIBS@ \
   -lm
 
 # Must do it this way or the dependencies aren't detected.
{code}

2. Restore the old default, the equivalent of doing this (which makes the build 
work too):

{code}
make CXX='c++ -Wl,--no-as-needed'
{code}


> Build broken on Ubuntu Saucy
> ----------------------------
>
>                 Key: TS-2634
>                 URL: https://issues.apache.org/jira/browse/TS-2634
>             Project: Traffic Server
>          Issue Type: Bug
>            Reporter: Phil Sorber
>            Assignee: Leif Hedstrom
>
> libhwloc not linked properly on ubuntu 13.10:
> /usr/bin/ld: ../lib/ts/.libs/libtsutil.so: undefined reference to symbol 
> 'hwloc_get_type_depth'
> /usr/lib/x86_64-linux-gnu/libhwloc.so: error adding symbols: DSO missing from 
> command line



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to