Bug 102777 - kdelibs 3.4.0 and ppc64. compile problems.
Summary: kdelibs 3.4.0 and ppc64. compile problems.
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dirk Mueller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 19:40 UTC by Markus Rothe
Modified: 2006-03-20 17:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe 2005-03-29 19:40:18 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.3 gentoo specific patches: -r1
OS:                Linux

Hi,

this bugs came from this gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=85593

there are two problems compiling kdelibs 3.4.0 on ppc64.

1.

kdelibs-3.4.0 has the problem which displays 'undefined symbol'.
This was not displayed on version 3.3.x.
For example, the following messages are displayed. 

kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.4/lib/kde3/kcm_kdnssd.so:
undefined symbol: init_kdnssd

following patch is a _workaround_ for this problem, but should be solved in a better way I think.

#######################################################################################
diff -Nur kdelibs-3.4.0.orig/admin/acinclude.m4.in kdelibs-3.4.0/admin/acinclude.m4.in
--- kdelibs-3.4.0.orig/admin/acinclude.m4.in	2005-02-23 20:56:27.000000000 +0900
+++ kdelibs-3.4.0/admin/acinclude.m4.in	2005-03-27 21:11:58.430884137 +0900
@@ -3200,12 +3200,12 @@
     KDE_CHECK_COMPILER_FLAG(fno-exceptions,[CXXFLAGS="$CXXFLAGS -fno-exceptions"])
     KDE_CHECK_COMPILER_FLAG(fno-check-new, [CXXFLAGS="$CXXFLAGS -fno-check-new"])
     KDE_CHECK_COMPILER_FLAG(fno-common, [CXXFLAGS="$CXXFLAGS -fno-common"])
-    KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, 
-    [
-        CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
-        HAVE_GCC_VISIBILITY=1
-        AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported])
-    ])
+#    KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, 
+#    [
+#        CXXFLAGS="$CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
+#        HAVE_GCC_VISIBILITY=1
+#        AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", [define to 1 if -fvisibility is supported])
+#    ])
   fi
 ])
#######################################################################################


2.

an segmentation fault occues, if we don't compile with -mminimal-toc:

(...)
../../dcop/dcopidl2cpp/dcopidl2cpp --c++-suffix cpp --no-signals --no-skel observer.kidl
make[3]: *** [observer_stub.h] Segmentation fault
make[3]: *** Deleting file `observer_stub.h'
make[3]: *** Waiting for unfinished jobs....
yacc.y:64: warning: no previous prototype for 'KTraderParse_mainParse'
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kio/kio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0/kio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.4.0/work/kdelibs-3.4.0'
make: *** [all] Error 2


If we compile with -mminimal-toc everything compiles fine, but that isn't the proper way I think. In contrast to the first bug this one isn't new with version 3.4.0.

Markus
Comment 1 Stephan Kulow 2005-03-30 10:07:30 UTC
the first one might be easy to fix. THe second sounds like a bug in your compiler you should report elsewhere
Comment 2 Yuta SATOH 2005-03-30 21:16:24 UTC
Probably the first one relates to gcc.
In my environment, when it compiled by gcc-3.4.3-20050110-r1(gentoo specific), this problem did not occur. 

Please see following Bug, if detailed information is required. 
http://bugs.gentoo.org/show_bug.cgi?id=78720

About the second one, I don't know a cause yet.

Thank you.
Comment 3 Dirk Mueller 2006-03-20 17:52:14 UTC
the kcm_kdnssd.so issue was fixed long ago. the other one is a compiler issue, sorry.