Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256987 - net-p2p/ktorrent-3.1.6 - main.cpp:(.text+0x1ef): undefined reference to `kt::DataDir()'
Summary: net-p2p/ktorrent-3.1.6 - main.cpp:(.text+0x1ef): undefined reference to `kt::...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-30 20:31 UTC by Vasilis Lourdas
Modified: 2009-02-05 17:05 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasilis Lourdas 2009-01-30 20:31:01 UTC
[ 90%] Building CXX object plugins/upnp/CMakeFiles/ktupnpplugin.dir/upnppluginsettings.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/plugins/upnp/routermodel.cpp:125: warning: unused parameter ‘parent’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/plugins/upnp/routermodel.cpp:132: warning: unused parameter ‘parent’
Linking CXX shared module ../../lib/ktupnpplugin.so
CMakeFiles/ktupnptest.dir/main.o: In function `main':
main.cpp:(.text+0x1ef): undefined reference to `kt::DataDir()'
collect2: ld returned 1 exit status
make[2]: *** [ktupnptest/ktupnptest] Error 1
make[1]: *** [ktupnptest/CMakeFiles/ktupnptest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 90%] Built target ktupnpplugin
[ 90%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/ktorrent_automoc.o
[ 90%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/main.o
[ 91%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/main.cpp: In function ‘bool GrabPIDLock()’:
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/main.cpp:62: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
[ 91%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/core.o
[ 91%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/gui.o
[ 92%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/app.o
[ 92%] /var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/core.cpp: In member function ‘void kt::Core::loadTorrents()’:
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/core.cpp:591: warning: comparison between signed and unsigned integer expressions
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/view.o
[ 93%] [ 93%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/viewmodel.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/gui.cpp:206: warning: unused parameter ‘dlg_caption’
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/viewmanager.o
[ 93%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/groupfiltermodel.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/viewmodel.cpp:41: warning: unused parameter ‘s’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/viewmodel.cpp:67: warning: unused parameter ‘row’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/viewmodel.cpp:67: warning: unused parameter ‘mdl’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/viewmodel.cpp:469: warning: unused parameter ‘parent’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/viewmodel.cpp:476: warning: unused parameter ‘parent’
[ 93%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/prefdialog.o
[ 93%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/advancedpref.o
[ 94%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/networkpref.o
[ 94%] [ 94%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/statusbar.o
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/proxypref.o
[ 95%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/groupview.o
[ 95%] [ 95%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/trayicon.o
[ 96%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/pastedialog.o
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/scandlg.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/trayicon.cpp:107: warning: unused parameter ‘downloadSpeed’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/trayicon.cpp:107: warning: unused parameter ‘uploadSpeed’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/trayicon.cpp:107: warning: unused parameter ‘downloadBandwidth’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/trayicon.cpp:107: warning: unused parameter ‘uploadBandwidth’
[ 96%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/dbus.o
[ 96%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/ipfilterwidget.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/groupview.cpp:321: warning: unused parameter ‘index’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/groupview.cpp:321: warning: unused parameter ‘data’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/groupview.cpp:321: warning: unused parameter ‘action’
[ 96%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/speedlimitsdlg.o
[ 97%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/speedlimitsmodel.o
[ 97%] [ 97%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/spinboxdelegate.o
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/torrentcreatordlg.o
[ 98%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/missingfilesdlg.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/spinboxdelegate.cpp:73: warning: unused parameter ‘option’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/spinboxdelegate.cpp:73: warning: unused parameter ‘index’
[ 98%] [ 98%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/importdialog.o
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/addpeersdlg.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/missingfilesdlg.cpp: In constructor ‘kt::MissingFilesDlg::MissingFilesDlg(const QString&, const QStringList&, bt::TorrentInterface*, QWidget*)’:
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/missingfilesdlg.cpp:56: warning: comparison between signed and unsigned integer expressions
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/missingfilesdlg.cpp: In member function ‘void kt::MissingFilesDlg::selectNewPressed()’:
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/missingfilesdlg.cpp:89: warning: comparison between signed and unsigned integer expressions
[ 98%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/queuemanagerwidget.o
[ 99%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/queuemanagermodel.o
[ 99%] [ 99%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/torrentmigratordlg.o
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/grouppolicydlg.o
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/importdialog.cpp: In member function ‘void kt::ImportDialog::makeDirs(const QString&, const KUrl&, const QString&)’:
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/importdialog.cpp:302: warning: comparison between signed and unsigned integer expressions
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/importdialog.cpp: In member function ‘void kt::ImportDialog::saveFileInfo(const QString&, QList<unsigned int>&)’:
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/importdialog.cpp:374: warning: comparison between signed and unsigned integer expressions
[100%] /var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/queuemanagermodel.cpp:199: warning: unused parameter ‘column’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/queuemanagermodel.cpp:258: warning: unused parameter ‘parent’
/var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/ktorrent/queuemanagermodel.cpp:265: warning: unused parameter ‘parent’
Building CXX object ktorrent/CMakeFiles/ktorrent.dir/recommendedsettingsdlg.o
Linking CXX executable ktorrent
[100%] Built target ktorrent
make: *** [all] Error 2
 * 
 * ERROR: net-p2p/ktorrent-3.1.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3146:  Called kde4-base_src_compile
 *             environment, line 2288:  Called kde4-base_src_make
 *             environment, line 2348:  Called cmake-utils_src_make
 *             environment, line  809:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-p2p/ktorrent-3.1.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/ktorrent-3.1.6/temp/environment'.
 * 

>>> Failed to emerge net-p2p/ktorrent-3.1.6, Log file:

>>>  '/var/tmp/portage/net-p2p/ktorrent-3.1.6/temp/build.log'


emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.7-r2, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Fri, 30 Jan 2009 19:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.uoi.gr/mirror/OS/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi additions alsa amd64 apache2 asf bash-completion berkdb bluetooth branding bzip2 bzlib cairo caps charconv chm cli cracklib crypt css ctype cups curl custom-optimization dba dbus device-mapper dmi dri dts dvd dvdr dvdread effects encode exif expat fam fat fbcon ffmpeg fftw filter firefox3 flac flatfile fontconfig foomaticdb ftp gcj gd gdbm gif gimp gimpprint glib glx gmp gnomedb gnutls gocr gphoto2 gpm gtk hal hddtemp howl iconv icu id3tag imagemagick imap imlib innodb inotify isdnlog jabber java java6 javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdeprefix lcms libsamplerate libwww lm_sensors madwifi maildir mailwrapper mhash midi mime mmx mmxext motif mozbranding mozdevelop mozilla mozsvg mp3 mpeg mplayer mpm-worker mudflap multilib multiuser mysql mysqli ncurses newspr nls no-old-linux nodrm nomalloccheck nptl nptlonly ntfs nvidia objc odbc offensive ogg opengl openmp pam pcmcia pcntl pcre pdf pear perl php pmu png posix pppd python qt3 qt3support qt4 quicktime rar rdesktop readline reflection reiserfs ruby sasl scanner server session sharedext simplexml slang smp sndfile soap sockets speex spell spl spreadsheet sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg symlink sysfs syslog tcltk tcpd tetex threads tidy tiff tokenizer tordns truetype unicode usb userlocales vda vnc vncviewer vorbis wmf wv wxgtk1 x264 xcomposite xfs xine xml xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xvid xvmc xvnc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hopeless 2009-01-31 16:02:06 UTC
I had the very same issue, until I removed --as-needed from LDFLAGS, which the reporter appears to have enabled too.
Comment 2 Hopeless 2009-01-31 16:07:25 UTC
Oh, forgot to add that 3.1.5 failed for me with the exact same error against kdelibs 4.2, whereas it compiled fine against 4.1.

I know 3.1.5 isn't really "supposed" to work with 4.2, but I just thought it was worth mentionaing, as it may suggest the problem is actually caused (or perhaps just brought to light) by a change in kdelibs rather than ktorrent itself.
Comment 3 Patrizio Bassi 2009-02-01 19:42:19 UTC
same issue for me.
Comment 4 Nikos Chantziaras 2009-02-02 10:16:03 UTC
I confirm also. Removing --as-needed from LDFLAGS works as a workaround.
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2009-02-02 10:29:59 UTC
Removing --as-needed is not an option. It should compile with it. I do not recall pushing this package to the tree... Anyway, this is something that upstream should know of and fix.

*ktorrent-3.1.6 (29 Jan 2009)

  29 Jan 2009; Tomas Chvatal <scarabeus@gentoo.org>

Re-assigning.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-02 12:47:11 UTC
Meh created upstream bugie:
https://bugs.kde.org/show_bug.cgi?id=182860
Comment 7 Patrizio Bassi 2009-02-02 14:22:17 UTC
i'm not home...have u tried the http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-4.tar.bz2?
Comment 8 Nikos Chantziaras 2009-02-03 00:46:29 UTC
(In reply to comment #7)
> i'm not home...have u tried the
> http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-4.tar.bz2?

That's the same tarball that's in the tree (per diff and emerge checksum checks.)
Comment 9 Nikos Chantziaras 2009-02-04 08:35:48 UTC
Fixed upstream with a new tarball:

  http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-5.tar.bz2

The SRC_URI of the current ktorrent-3.1.6.ebuild should be changed to:

  "http://ktorrent.org/downloads/${PV}/${P}-5.tar.bz2"

There should be no revision bump since this fixes a build error rather than a runtime one.

I hope the ebuild change is trivial enough so I'm not attaching an ebuild patch.
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-05 17:05:31 UTC
Fixed upstream.
I fixed ebuild, so wait for mirror and sync :]