Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187830 - app-admin/apache-tools needlessly appends -Wl,--no-as-needed to LDFLAGS
Summary: app-admin/apache-tools needlessly appends -Wl,--no-as-needed to LDFLAGS
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-05 17:23 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-08-13 12:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
test.c (test.c,39 bytes, text/plain)
2007-08-05 17:43 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 17:23:55 UTC
app-admin/apache-tools needlessly appends -Wl,--no-as-needed to LDFLAGS.

This package doesn't install any libraries, it installs only executables. Nothing is able to link against executables, so -Wl,--no-as-needed is needless.

(www-servers/apache installs some libraries, so -Wl,--no-as-needed still should be appended to LDFLAGS in case of www-servers/apache.)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 17:30:08 UTC
You'll just get broken binaries, not a big deal. Did you at least read the comments in the ebuild before filing this bug?
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 17:43:17 UTC
(In reply to comment #1)
> You'll just get broken binaries, not a big deal.

It's impossible.

> Did you at least read the comments in the ebuild before filing this bug?

Yes.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 17:43:48 UTC
Created attachment 126975 [details]
test.c
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 17:45:31 UTC
Libraries may have references which are resolved at run-time by other libraries, but executables aren't allowed to it.

Try:
gcc -fPIC -shared -o test.so test.c
gcc -o test test.c
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 17:46:07 UTC
Kindly go read the bug referenced in the ebuild.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 17:49:58 UTC
(In reply to comment #5)
> Kindly go read the bug referenced in the ebuild.

I have read that bug. It's about modules linking to libraries, not to executables.

You can also add int main(); to see better messages:
$ cat test.c
void function_A ()
{
        function_B ();
}

int main ()
{
        function_A ();
}
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 17:53:36 UTC
WTH are you talking about here? The binaries themselves (that link against apr) get broken when compiled w/ --as-needed. Leave this bug alone and if you can't live with that, you'll have to stick something into your overlay, we are not going to break this again.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 18:14:33 UTC
(In reply to comment #7)
> The binaries themselves (that link against apr) get broken when compiled
> w/ --as-needed.

You're wrong. Your lack of knowledge doesn't justify marking this bug as invalid. Please ask someone else, if you don't believe.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 18:16:59 UTC
Please stop producing further noise here; the append-flags stuff is needed as explained in the ebuild, is not going away and if you dislike it, then you are free to maintain your own apache/apache-tools ebuilds in your own overlay.

CLOSED.
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 18:29:56 UTC
(In reply to comment #9)
> Please stop producing further noise here

You are producing further noise here, not me.

This bug is completely valid.
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-05 22:01:51 UTC
http://www.gentoo.org/proj/en/qa/asneeded.xml#doc_chap2 contains some evidence that I'm right:
----------------------------------------------------------------------------
Failure in final linking, undefined symbols

 This is the most common error that happens while using --as-needed. It
 happens during the final linking stage of an executable (libraries don't
 create problems, because they are allowed to have undefined symbols). The
 executable linking stage dies because of an undefined symbol that is present
 in one of the libraries fed to the command line.
----------------------------------------------------------------------------

app-admin/apache-tools doesn't contain any libraries. Only dev-libs/apr, dev-libs/apr-util and www-servers/apache do contain. Shared Apache modules are shared libraries (or shared objects (.so files)). And, of course, libraries (e. g. Apache modules) or executables cannot be linked to executables.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 22:23:50 UTC
Great. You've produced 15 bugspams so far in mailboxes of every single person who's on bug-wranglers mailing list. Now you go on bugspamming userrel and apache maintainers in addition, because we apparently don't have better things to do than read your rants about overriding unsupported LDFLAGS which break this thing - as clearly shown on Bug 128505. This really rocks. Sp - will you stop this finally or what? 
Comment 13 Benedikt Böhm (RETIRED) gentoo-dev 2007-08-13 12:05:02 UTC
apache herd does not support as-needed