[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-imaging
Subject:    Re: [Kde-imaging] Problem Building from SVN
From:       Angelo Naselli <random_lx () yahoo ! com>
Date:       2005-06-10 12:14:52
Message-ID: 20050610121453.19506.qmail () web52801 ! mail ! yahoo ! com
[Download RAW message or body]

> > > > In file included from kexifdata.cpp:39:
> > > > kexifdata.h:73: error: visibility arg must be one of "default",
> > > > "hidden", "protected" or "internal"
> > >
> > > one more try.
> 
> Finally the problem is solved. There seems to be a big BUG in
> kdemacros.h supplied with Fedora Core 3. I finally read about this
> visibility arg and read the file kdemacros.h to see the definition of
> KDE_EXPORT and of-course this is what was creating all the problem
> 
> #define KDE_EXPORT __attribute__((visibility("visible"))); //KDE
> MACROS.h line number 39
>                                                                    -------------
> on changing the "visible" string to default compilation is working
> well. Now as the compiler says visibility arg must be "default",
> "hidden", "protected" or "internal", I don't understand how
> kdemacros.h can have it as "visible".
> 
> ---
> Vardhman
Hi this awful patch I wrote to test if we can take this way should
cover the problem of having gcc and/or kdemacros.h error.

Of course it's not well done yet but can you test if it covers 
your problem? (you should leave your old kdemacros.h settings).
This patch has the check for gcc4 cut off for mandiriva cooker
I apologize for that but i cannot do anything else by now.
that is only a test.

Let me know
   Angelo

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
["TEST_acinclude.m4..in.diff" (text/x-patch)]

Index: acinclude.m4.in
===================================================================
--- acinclude.m4.in	(revision 423987)
+++ acinclude.m4.in	(working copy)
@@ -2905,46 +2905,7 @@
 ])
 
 
-AC_DEFUN([KDE_CHECK_FOR_BAD_COMPILER],
-[
-  AC_MSG_CHECKING([whether $CC is blacklisted])
 
-  dnl In theory we have tu run this test against $CC and $CXX
-  dnl in C and in C++ mode, because its perfectly legal for
-  dnl the user to mix compiler versions, since C has a defined
-  dnl ABI. 
-  dnl 
-  dnl For now, we assume the user is not on crack.
-
-  AC_TRY_COMPILE([
-#ifdef __GNUC__
-#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
-choke me
-#endif
-#endif
-], ,
-  kde_bad_compiler=no, 
-  kde_bad_compiler=yes
-)
-
-  AC_MSG_RESULT($kde_bad_compiler)
-
-if test "$kde_bad_compiler" = "yes"; then
-  AC_MSG_ERROR([
-
-This particular compiler version is blacklisted because it
-is known to miscompile KDE. Please use a newer version, or
-if that is not yet available, choose an older version. 
-
-Please do not report a bug or bother us reporting this
-configure error. We know about it, and we introduced
-it by intention to avoid untraceable bugs or crashes in KDE.
-
-])
-fi
-
-])
-
 dnl AC_VALIDIFY_CXXFLAGS checks for forbidden flags the user may have given
 AC_DEFUN([AC_VALIDIFY_CXXFLAGS],
 [dnl
@@ -3257,7 +3218,7 @@
         AC_TRY_LINK(
         [
           /* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
-	  #include <string>
+	  #include <string> 
           int some_function( void ) __attribute__ ((visibility("default")));
           int some_function( void )
           {
@@ -3284,10 +3245,33 @@
   if test "$GXX" = "yes"; then
     KDE_CHECK_COMPILER_FLAG(fvisibility=hidden, 
     [
+        OLD_CXXFLAGS="$CXXFLAGS"
         CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
-        KDE_CHECK_VISIBILITY_GCC_BUG
 
+        AC_TRY_LINK(
+        [
+          /* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
+          #include <kdemacros.h>
+          #include <string>
+          int other_func( void ) KDE_EXPORT;
+          int other_func( void )
+          {
+            std::string s("KDE_EXPORT");
+            return 0;
+          }
+
+        ], [/* elvis is alive */],
+        kde_cv_val_kde_export_bug=no, kde_cv_val_kde_export_bug=yes)
+
         HAVE_GCC_VISIBILITY=1
+
+        if test x$kde_cv_val_kde_export_bug = xyes; then
+           CXXFLAGS="$OLD_CXXFLAGS"
+           HAVE_GCC_VISIBILITY=0
+        fi
+
+        KDE_CHECK_VISIBILITY_GCC_BUG
+
         AC_DEFINE_UNQUOTED(__KDE_HAVE_GCC_VISIBILITY, "$HAVE_GCC_VISIBILITY", \
[define to 1 if -fvisibility is supported])  ])
   fi



_______________________________________________
Kde-imaging mailing list
Kde-imaging@kde.org
https://mail.kde.org/mailman/listinfo/kde-imaging


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic