Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277415 - net-ftp/kasablanca: fails with kde4 installed
Summary: net-ftp/kasablanca: fails with kde4 installed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kde3-on-kde4
  Show dependency tree
 
Reported: 2009-07-11 11:51 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-11-12 11:39 UTC (History)
1 user (show)

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


Attachments
Build log (kasablanca-0.4.0.2:20090711-010418.log,629.90 KB, text/plain)
2009-07-11 11:51 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch for src/Makefile.am as announched in comment #3 (Makefile.am.patch,1.05 KB, patch)
2009-10-14 08:02 UTC, Mart K
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-11 11:51:09 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details).

Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too.

Check the attached build log.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-11 11:51:36 UTC
Created attachment 197518 [details]
Build log
Comment 2 Oliver Maurhart 2009-08-26 07:43:01 UTC
Same here.

What can I do without mixing gcc settings as described in the link above? I've tried to manipulate the Makefile.am to include $(LIB_KDECORE) and $(LIB_QT) but it is still broken.
Comment 3 Mart K 2009-10-14 07:58:15 UTC
I have the same problem with the program. The problem seems to be the sequence of library paths. Because it is -L/usr/lib64 -L/usr/kde/3.5/lib, it first find the kde-4-libraries (which are in /usr/lib64), and thus doesn't link to the kde-3.5-libraries (which are in /usr/kde/3.5/lib).

A workaround is using a different src/Makefile.am (I will attach a patch). I added $(KDE_LDFLAGS) before $(all_libraries), to make sure that -L/usr/kde/3.5/lib is before -L/usr/lib64. I also added $(LIB_QT) such that the Qt-libraries are linked (haven't checked if it also works without this).

Changing src/Makefile.am does mean that some build-files needs be to be generated again (for example with "make -f Makefile.cvs"). But this causes some other problems.
Comment 4 Mart K 2009-10-14 08:02:33 UTC
Created attachment 207060 [details, diff]
Patch for src/Makefile.am as announched in comment #3

Patch for src/Makefile.am as announched in comment #3.

This patch added $(KDE_LDFLAGS) to Makefile.am to make sure that -L/usr/kde/3.5/lib is before -L/usr/lib64. It also adds $(LIB_QT).
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-11-12 11:39:23 UTC
gone