Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 225169

Summary: kde-base/kdepim-3.5.9-r2: fails to compile with undefined symbol gn_cfg_read because symbol is no longer present in app-mobilephone/gnokii-0.6.26-r1
Product: Gentoo Linux Reporter: Robin Johnson <robbat2>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: major CC: ansla80
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kdepim-3.5.9-no-libintl.patch
kdepim-3.5.9-r2.ebuild.patch
kdepim-3.5.9-no-libintl.patch

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-07 02:28:19 UTC
kdekim-3.5.9 checks for a part of gnokii that was removed some versions ago, so it no longer compiles.

From kdepim configure.in.in:
AC_CHECK_LIB(gnokii, gn_cfg_read ....

From the gnokii changelog:
0.6.23 - remove deprecated gn_cfg_read() function
Comment 1 Andrei Slavoiu 2008-06-07 14:28:00 UTC
Did you actually check the config.log that this is the problem? In my config.log I found:
configure:35255: checking for gn_cfg_get in -lgnokii
configure:35290: x86_64-pc-linux-gnu-gcc -o conftest -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strin
gs -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -march=athlon64 -ggdb -O2 -pipe -Wformat-security -Wmissing-format-attribute  -DQT_THREAD_SUPPORT  -D_REEN
TRANT -Wl,-O1,--enable-new-dtags,--sort-common,-z,combreloc,--as-needed conftest.c -lgnokii -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    -lintl -lX
pm -lX11    >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status

After removing -lintl from config.in.in the test for gnokii succeeded (didn't try yet to build the package with this patch. I will attach the patch latter if it will work.
Comment 2 Andrei Slavoiu 2008-06-07 16:25:24 UTC
Created attachment 155839 [details, diff]
kdepim-3.5.9-no-libintl.patch

Patch for configure.in.in to remove -lintl from the commandline used to check for gnokii
Comment 3 Andrei Slavoiu 2008-06-07 16:27:55 UTC
Created attachment 155843 [details, diff]
kdepim-3.5.9-r2.ebuild.patch

Patch for the ebuild to apply the previous patch and rebuild the configure script.
Comment 4 Konstantin Münning 2008-06-11 00:23:47 UTC
Patch works for me.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-11 00:51:30 UTC
The kmobile code DOES use the gn_cfg_read symbol as well. 

./kmobile/devices/gnokii/gnokii_mobile.cpp:217:	if (gn_cfg_read(&BinDir)<0 || !gn_cfg_phone_load("", &state))
./kaddressbook/xxport/gnokii_xxport.cpp:822:	if (gn_cfg_read(&BinDir)<0)
Comment 6 Andrei Slavoiu 2008-06-21 18:39:38 UTC
Actually it's not used. kmobile is some dead code still lying around in kdepim, see http://lists.kde.org/?l=kde-pim&m=114616294018895&w=2 while in kaddressbook if you follow the #ifdefs you will see that the code in line 822 is just some legacy code that is not used if the gnokii installed on the system is newer then 0.6.13 (see line 111 for the beginning of that #ifdef)

Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-21 19:00:04 UTC
ansla80: possible to turn off kmobile in kdepim then?
Comment 8 Andrei Slavoiu 2008-06-21 19:11:41 UTC
(In reply to comment #7)
> ansla80: possible to turn off kmobile in kdepim then?
> 

first line in ./kmobile/configure.in.in:
DO_NOT_COMPILE="$DO_NOT_COMPILE kmobile"

It's allready disabled by default.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-21 19:20:33 UTC
kde team: can we do this in the tree please?
Comment 10 Andrei Slavoiu 2008-10-07 21:35:07 UTC
Created attachment 167562 [details, diff]
kdepim-3.5.9-no-libintl.patch

Fix the patch to use relative paths as the old one did not apply with portage 2.2
Comment 11 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-05-26 09:54:55 UTC
We don't support for monolithic ebuilds any more. This gnokii problem is fixed in monolithic kaddressbook.

*** This bug has been marked as a duplicate of bug 234905 ***