<div class="gmail_quote">Hi all!<br>
I want to share my experience of updating kde to version 4.6.2.<br>
It was very long way to get in work as expected...<br>
Sorry for my poor English... and absense of logs and configs. I<br>
wrote this after many tries of steps forward so I haven't logs of my<br>
faults for now....<br>
<br>
Any way, from the tart:<br>
<br>
1. Wrong step 1 (pre KDE):<br>
While updating python from 2.6 to 2.7 I checked option "Use GNU Pth<br>
for threading/multiprocessing", so after that many ports failed to<br>
build...<br>
Googling from links get me to the problem and I unchecked this<br>
option and proced to updating of all ports.<br>
<br>
2. Wrong step 2 (redland):<br>
While compiling redland port with error like from this mail:<br>
<a href="http://mail.kde.org/pipermail/kde-freebsd/2008-June/002620.html" target="_blank">http://mail.kde.org/pipermail/kde-freebsd/2008-June/002620.html</a><br>
After some experiments I find out that on my system there is 3<br>
different versions of db database: 41, 42 and 51<br>
following idea, that no one in different mails mention 51 version<br>
I tried to remove it and redland builds fine for me after that<br>
<br>
3. Error in configuring kdepimlibs4:<br>
Next error station is kdepimlibs4 port with following error:<br>
<br>
-----------------------------------------------------------------------------<br>
-- The following REQUIRED packages could NOT be located on your system.<br>
-- You must install these packages before continuing.<br>
-----------------------------------------------------------------------------<br>
* Nepomuk <<a href="http://www.kde.org" target="_blank">http://www.kde.org</a>><br>
Support for the semantic desktop, including indexing of PIM data<br>
Nepomuk is part of kdelibs<br>
<br>
All suggestions about this problem where in updating soprano... but I<br>
already have up to date redland and soprano ports... strange ... it's<br>
not typical error.<br>
<br>
So I start to read build logs and found this line:<br>
-- Found Redland storage:<br>
/usr/local/lib/redland/librdf_storage_mysql.so;/usr/local/lib/redland/librdf_storage_sqlite.so;/usr/local/lib/redland/librdf_storage_postgresql.so;/usr/local/lib/redland/librdf_storage_virtuoso.so<br>
--<br>
-- Redland with broken NEEDED section detected, disabling<br>
-- Could NOT find Redland (missing: _REDLAND_VERSION_OK)<br>
<br>
I see strange thing: libs are found but some thing still wrong so<br>
configure script<br>
think that there is no Redland in my system...<br>
I found place in make file where test happened<br>
(it's /usr/ports/textproc/soprano/work/soprano-2.6.0/cmake/modules/<br>
FindRedland.cmake )<br>
I manualy compile test program witch loads dinamic libraries from it's<br>
agrs and run it aganst string in output...<br>
[root@free-cgi ~/tmp]# ./a.out<br>
/usr/local/lib/redland/librdf_storage_mysql.so;/usr/local/lib/redland/librdf_storage_sqlite.so;/usr/local/lib/redland/librdf_storage_postgresql.so;/usr/local/lib/redland/librdf_storage_virtuoso.so<br>
Segmentation fault: 11 (core dumped)<br>
Segmentation fault: 11 (core dumped)<br>
Segmentation fault: 11 (core dumped)<br>
<br>
But wait a minute... all libs paths are send in one line...<br>
It strange I think... so command 2 is:<br>
[root@free-cgi ~/tmp]# ./a.out<br>
/usr/local/lib/redland/librdf_storage_mysql.so \<br>
/usr/local/lib/redland/librdf_storage_sqlite.so \<br>
/usr/local/lib/redland/librdf_storage_postgresql.so \<br>
/usr/local/lib/redland/librdf_storage_virtuoso.so<br>
It's working!!!<br>
But why in cmake file there is no any replacements?<br>
So I tried to patch this file to get redlang detection to work...<br>
this is my diff<br>
--- /usr/ports/textproc/soprano/work/soprano-2.6.0/cmake/modules/FindRedland.cmake<br>
2011-02-01 17:51:41.000000000 +0300<br>
+++ FindRedland.cmake 2011-04-12 12:17:35.000000000 +0400<br>
@@ -105,6 +105,8 @@<br>
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_SUFFIXES})<br>
if(_REDLAND_STORAGE_LIBS)<br>
message(STATUS "Found Redland storage: ${_REDLAND_STORAGE_LIBS}")<br>
+ string( REPLACE ";" " " _REDLAND_STORAGE_LIBS "${_REDLAND_STORAGE_LIBS}" )<br>
+ message(STATUS "Found Redland storage2: ${_REDLAND_STORAGE_LIBS}")<br>
try_run(_TEST_EXITCODE _TEST_COMPILED<br>
"${CMAKE_CURRENT_BINARY_DIR}"<br>
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/CheckLibraryLoads.c"<br>
@@ -114,7 +116,8 @@<br>
)<br>
if(NOT "${_TEST_EXITCODE}" EQUAL 0)<br>
set(_REDLAND_VERSION_OK)<br>
- message(STATUS "${_OUTPUT}")<br>
+ message(STATUS "TEST_OUTPUT: ${_OUTPUT} ")<br>
+ message(STATUS "TEST_EXITCODE: ${_TEST_EXITCODE}-${_TEST_COMPILED} ")<br>
message(STATUS "Redland with broken NEEDED section detected, disabling")<br>
endif(NOT "${_TEST_EXITCODE}" EQUAL 0)<br>
endif(_REDLAND_STORAGE_LIBS)<br>
<br>
But even with this changes output is folloing:<br>
-- Found Raptor 1.4.21: libs - /usr/local/lib/libraptor.so; includes -<br>
/usr/local/include<br>
-- Found Redland storage:<br>
/usr/local/lib/redland/librdf_storage_mysql.so;/usr/local/lib/redland/librdf_storage_sqlite.so;/usr/local/lib/redland/librdf_storage_postgresql.so;/usr/local/lib/redland/librdf_storage_virtuoso.so<br>
-- TEST_OUTPUT:<br>
-- TEST_EXITCODE: -FALSE<br>
-- Redland with broken NEEDED section detected, disabling<br>
-- Could NOT find Redland (missing: _REDLAND_VERSION_OK)<br>
So build status in error log = FALSE, e.g. error while compiling test prog.<br>
After that I comment line with unset result variable and building with<br>
redland support goes fine...<br>
<br>
4. Error start kde ( dbus):<br>
while starting KDE under ordinal user message box appired with that text:<br>
"startkde: Could not start D-Bus. Can you call qdbus?"<br>
<br>
I don't understand how dbus could breake in that way... but I rebuild<br>
dbus port and problem goes away.<br>
<br>
5. Current status:<br>
After solving error on step 4 I cat lunch kde 4.6.2 on freebsd 8.2 amd64...<br>
but some points get me sed...<br>
a. Terminal application ends up with core dump:<br>
[root@free-cgi /usr/ports/textproc/soprano]# Terminal<br>
:1: error: unexpected character `\35', expected keyword - e.g. `style'<br>
Segmentation fault: 11 (core dumped)<br>
...<br>
[root@free-cgi /usr/ports/textproc/soprano]# gdb Terminal<br>
GNU gdb 6.1.1 [FreeBSD]<br>
Copyright 2004 Free Software Foundation, Inc.<br>
GDB is free software, covered by the GNU General Public License, and you are<br>
welcome to change it and/or distribute copies of it under certain conditions.<br>
Type "show copying" to see the conditions.<br>
There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
This GDB was configured as "amd64-marcel-freebsd"...(no debugging<br>
symbols found)...<br>
(gdb) r<br>
Starting program: /usr/local/bin/Terminal<br>
:1: error: unexpected character `\35', expected keyword - e.g. `style'<br>
Program received signal SIGSEGV, Segmentation fault.<br>
[Switching to Thread 8066041c0 (LWP 100364)]<br>
0x0000000801c15e71 in pthread_condattr_setclock () from /lib/libthr.so.3<br>
(gdb) bt<br>
#0 0x0000000801c15e71 in pthread_condattr_setclock () from /lib/libthr.so.3<br>
#1 0x000000080747e601 in _dbus_pthread_condvar_new () at<br>
dbus-sysdeps-pthread.c:207<br>
#2 0x00000008074733a9 in _dbus_condvar_new_at_location<br>
(location_p=0x8066f37d8) at dbus-threads.c:203<br>
#3 0x000000080745f667 in _dbus_connection_new_for_transport<br>
(transport=0x806725e00) at dbus-connection.c:1279<br>
#4 0x0000000807461187 in _dbus_connection_open_internal<br>
(address=Variable "address" is not available.<br>
) at dbus-connection.c:1791<br>
#5 0x000000080745c3a8 in internal_bus_get (type=Variable "type" is<br>
not available.<br>
#6 0x000000080720b334 in g_io_module_load () from<br>
/usr/local/lib/gio/modules/libgvfsdbus.so<br>
#7 0x00000008016db880 in g_type_create_instance () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#8 0x00000008016bf0cc in g_object_set () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#9 0x00000008016bf5bf in g_object_newv () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#10 0x00000008016c055c in g_object_new () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#11 0x0000000801515383 in g_vfs_is_active () from /usr/local/lib/libgio-2.0.so.0<br>
#12 0x000000080185eeae in g_once_impl () from /usr/local/lib/libglib-2.0.so.0<br>
#13 0x00000008014dfbce in g_file_new_for_path () from<br>
/usr/local/lib/libgio-2.0.so.0<br>
#14 0x0000000800b64505 in gtk_icon_theme_add_builtin_icon () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#15 0x0000000800b64baa in gtk_icon_info_load_icon () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#16 0x0000000800b66b68 in gtk_icon_theme_load_icon () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#17 0x0000000800cb677f in gtk_window_get_default_icon_list () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#18 0x0000000800cb6cfe in gtk_window_get_default_icon_list () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#19 0x0000000800cbf073 in gtk_window_new () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#20 0x00000008016b807f in g_closure_invoke () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#21 0x00000008016ceccd in g_signal_handlers_block_matched () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#22 0x00000008016d0e70 in g_signal_emit_valist () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#23 0x00000008016d1273 in g_signal_emit () from<br>
/usr/local/lib/libgobject-2.0.so.0<br>
#24 0x0000000800cae797 in gtk_widget_realize () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#25 0x0000000800cae890 in gtk_widget_realize () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#26 0x0000000800cae890 in gtk_widget_realize () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#27 0x0000000800cae890 in gtk_widget_realize () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#28 0x0000000800cae890 in gtk_widget_realize () from<br>
/usr/local/lib/libgtk-x11-2.0.so.0<br>
#29 0x000000000041670c in ?? ()<br>
<br>
I sow source of bus function from bt and threading function... it's magical...<br>
One more thing: if I unset DBUS_SESSION_BUS_ADDRESS variable before<br>
start Terminal - it's start without error...<br>
<br>
b. Simmilar problem with firefox port<br>
c. I can't shutdown kde from start menu (nothing happend)<br>
I even tryed to use command line commant (qdbus to shutdown ... nothing woks...)<br>
<br>
So trevel is not completed yet...<br>
<br>
Sory for long story... I think my mistakes could help some one to<br>
solve same errors.<br>
If one could dvice me with this strange terminations - it would be great...<br>
<font color="#888888"><br>
--<br>
С Уважением,<br>
Ермолин Илья<br>
Ermolin Ilya<br>
</font></div><br>