Bug 74706 - libgnokii dependency check is missing or erratic
Summary: libgnokii dependency check is missing or erratic
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 12:15 UTC by wwp
Modified: 2009-08-05 16:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wwp 2004-02-09 12:15:15 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2 
OS:          Linux

kdepim 3.2 failed to compile in kaddressbook's gnokii_export module, complaining
about unresolved symbols at link time.

I've found that my gnokii version (0.5.7) did not install libgnokii, that's why kdepim's
configure found the .h and thought that the .o was installed then failed.

In fact the libgnokii installation has been made unconditional since 0.5.8, so it would
be nice if kdepim's configure also try to find the lib and not only the headers..
I saw some code related to this in configure.in but I'm not sure of what is done, I'm
only sure that ./configure did not fail about missing libgnokii (or maybe it should
have disabled gnokii support?).

I've installed gnokii 0.5.10 so that libgnokii.so is installed, re-configured kaddressbook sources and everything went well.
Comment 1 wwp 2004-02-09 12:16:11 UTC
Here is the exact link error (for further search in archives):
.libs/gnokii_xxport.o: In function `busterminate()':
.libs/gnokii_xxport.o(.text+0x24f): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x275): undefined reference to `gn_device_unlock'
.libs/gnokii_xxport.o: In function `businit()':
.libs/gnokii_xxport.o(.text+0x2a0): undefined reference to `gn_cfg_read'
.libs/gnokii_xxport.o(.text+0x2c3): undefined reference to `gn_cfg_phone_load'
.libs/gnokii_xxport.o(.text+0x301): undefined reference to `gn_data_clear'
.libs/gnokii_xxport.o(.text+0x318): undefined reference to `gn_cfg_info'
.libs/gnokii_xxport.o(.text+0x320): undefined reference to `gn_cfg_get'
.libs/gnokii_xxport.o(.text+0x362): undefined reference to `gn_gsm_initialise'
.libs/gnokii_xxport.o(.text+0x39d): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o(.text+0x44b): undefined reference to `gn_data_clear'
.libs/gnokii_xxport.o(.text+0x47c): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x4f3): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x539): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0xa71): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o(.text+0xc28): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o(.text+0xe6b): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o(.text+0x1055): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o(.text+0x1219): undefined reference to `gn_device_lock'
.libs/gnokii_xxport.o: In function `read_phone_memstat(gn_memory_type, gn_memory_status*)':
.libs/gnokii_xxport.o(.text+0x1263): undefined reference to `gn_data_clear'
.libs/gnokii_xxport.o(.text+0x128e): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x152b): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o: In function `read_phone_entry(int, gn_memory_type, gn_phonebook_entry*)':
.libs/gnokii_xxport.o(.text+0x176e): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x17b5): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o: In function `.L969':
.libs/gnokii_xxport.o(.text+0x3505): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o: In function `xxport_phone_write_entry(int, gn_memory_type, KABC::Addressee const*)':
.libs/gnokii_xxport.o(.text+0x454d): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x47d7): undefined reference to `gn_error_print'
.libs/gnokii_xxport.o: In function `xxport_phone_delete_entry(int, gn_memory_type)':
.libs/gnokii_xxport.o(.text+0x5932): undefined reference to `gn_sm_functions'
.libs/gnokii_xxport.o(.text+0x596f): undefined reference to `gn_error_print'
collect2: ld returned 1 exit status
make: *** [libkaddrbk_gnokii_xxport.la] Error 1
Comment 2 Tobias Koenig 2004-02-19 18:41:41 UTC
CVS commit by tokoe: 

Add gnokii_xxport compile check.

CCMAIL:74706-done@bugs.kde.org


  M +7 -3      Makefile.am   1.19
  M +3 -1      configure.in.in   1.4


--- kdepim/kaddressbook/xxport/Makefile.am  #1.18:1.19
@@ -2,9 +2,13 @@
            -I$(top_srcdir)/kaddressbook $(all_includes) 
 
+if compile_GNOKIIXXPORT
+  gnokii_MODULE = libkaddrbk_gnokii_xxport.la
+  gnokii_RCFILE = gnokii_xxportui.rc 
+endif
+
 kde_module_LTLIBRARIES = libkaddrbk_csv_xxport.la libkaddrbk_vcard_xxport.la \
                          libkaddrbk_kde2_xxport.la libkaddrbk_bookmark_xxport.la \
                          libkaddrbk_eudora_xxport.la libkaddrbk_ldif_xxport.la \
-                         libkaddrbk_gnokii_xxport.la libkaddrbk_opera_xxport.la \
-                         libkaddrbk_pab_xxport.la 
+                         libkaddrbk_opera_xxport.la libkaddrbk_pab_xxport.la $(gnokii_MODULE)
 
 AM_LDFLAGS = -module $(KDE_PLUGIN) $(KDE_RPATH) $(all_libraries) -no-undefined
@@ -53,3 +57,3 @@
 rc_DATA = csv_xxportui.rc vcard_xxportui.rc kde2_xxportui.rc \
           bookmark_xxportui.rc eudora_xxportui.rc ldif_xxportui.rc \
-          gnokii_xxportui.rc opera_xxportui.rc pab_xxportui.rc
+          opera_xxportui.rc pab_xxportui.rc $(gnokii_RCFILE)

--- kdepim/kaddressbook/xxport/configure.in.in  #1.3:1.4
@@ -3,2 +3,4 @@
 KDE_CHECK_BLUETOOTH
 KDE_CHECK_GNOKII
+
+AM_CONDITIONAL(compile_GNOKIIXXPORT, test -n "$LIB_GNOKII")


Comment 3 Tobias Koenig 2009-08-05 16:04:39 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.