Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134405 - twinkle 0.7 compile aborts due to incorrectly set KDE_LDFLAGS
Summary: twinkle 0.7 compile aborts due to incorrectly set KDE_LDFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
Depends on:
Reported: 2006-05-26 04:47 UTC by Jeremy Sonander
Modified: 2006-07-07 09:46 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Sonander 2006-05-26 04:47:16 UTC
When I try and emerge twinkle 0.7 I find it aborts at the final link reporting that it cannot find libkdecore thus:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkdecore

Looking at the Makefile in /var/tmp/portage/twinkle-0.7/work/twinkle-0.7 I see it sets
KDE_LDFLAGS = -L/usr/kde/3.2/lib
instead of the correct value for my system which would be
KDE_LDFLAGS = -L/usr/kde/3.5/lib
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-05-26 06:13:00 UTC
please attach /var/tmp/portage/twinkle-0.7/work/twinkle-0.7/config.log

Does the same apply with 0.7.1?
Comment 2 Jeremy Sonander 2006-05-26 08:28:53 UTC
It does for me:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkdecore
collect2: ld returned 1 exit status
make[3]: *** [twinkle] Error 1
make[3]: Leaving directory `/var/tmp/portage/twinkle-0.7.1/work/twinkle-0.7.1/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/twinkle-0.7.1/work/twinkle-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/twinkle-0.7.1/work/twinkle-0.7.1/src'
make: *** [all-recursive] Error 1

!!! ERROR: net-im/twinkle-0.7.1 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! Error: emake failed!
!!! If you need support, post the topmost build error, NOT this status message.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2006-06-30 07:13:02 UTC
note to self: 0.7.1 released

I'll get to this shortly. Been a busy month.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2006-07-05 22:38:57 UTC
This is a local problem for you. The Makefile is autogenerated from the connfigure script and in your case this seems to be detecting the old version.

Have a look at: kde-config --version

Try to run: env-update && source /etc/profile
to ensure your environment is up to date.

To check your libraries are correctly marked run:

If that does work read my instructions in comment #1 and I may be able to help.

FYI I've added 0.8 too.
Comment 5 Jeremy Sonander 2006-07-07 09:46:05 UTC
(In reply to comment #4)
> Have a look at: kde-config --version

kde-config --version returned 
KDE: 3.4.1

This turns out to be because root had /usr/kde/3.4/bin in the path.
Fixing this and kde-config returns 3.5.2 as expected. 

Installation still tries to pick up kde 3.2

I also found a bunch of files in env.d that related to old versions of kde and deleted these. And finally, and probably the most relevant, in /etc/profile.csh 
setenv KDEDIR='/usr/kde/3.2'
which I changed to 3.5.

Twinkle then emerged fine.

Thanks for your help.