You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Igor Galić (JIRA)" <ji...@apache.org> on 2011/07/04 01:31:21 UTC

[jira] [Commented] (TS-868) Traffic Server fails to build with --Wl,--as-needed

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

Igor Galić commented on TS-868:
-------------------------------

n.b.: this only really occurs with --no-copy-dt-needed-entries --- --as-needed is *not* enough to trigger it.

See https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition and https://wiki.ubuntu.com/CompilerFlags for more info.

> Traffic Server fails to build with --Wl,--as-needed
> ---------------------------------------------------
>
>                 Key: TS-868
>                 URL: https://issues.apache.org/jira/browse/TS-868
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.0.0
>            Reporter: Arno Toell
>            Assignee: Igor Galić
>             Fix For: 3.1.0
>
>
> As we discuessed before, ATS fails to build from source if --as-needed is passed to the linking flags. This issue was originally reported by Ubuntu folks in Debian and hereby forwarded by me. For reference, the issue in Debian has been reported as [#632546|http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632546].
> Note it is not enough to add this linking flag to _LDFLAGS_ as those are honored too late. --as-needed only works if passed before every other _-llibrary_ argument. 
> The reporter of the bug supplied a patch which fixes this issue for the release tarball in [as_needed.patch|http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=as-needed;att=1;bug=632546] (credited to Ilya Barygin <ba...@gmail.com>) which, I can confirm, fixes the issue for the release tarball. I haven't tried for the SVN trunk which has not (yet) compiled the .in files from autoconf. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira