[Kstars-devel] Errors compiling 3.5 on Fedora Core 4

Jason Harris kstars at 30doradus.org
Thu Oct 27 16:06:54 CEST 2005


Hi Chris,

Are you using KDE-3.3.1 or older?  I have seen this bug before:
http://lists.kde.org/?l=kde-edu&m=111031234011623&w=2

That post has a lot of details, but basically you're right about it being a 
compiler issue.  Older KDE used definitions for the "visibility" macro that 
have since changed in GCC.

Your options are: 

(1) upgrade KDE (it may be fixed later in the 3.3.x series, but hey, maybe 
this is a good excuse to bump up to 3.4.x or even 3.5-beta2!)

(2) modify every file under libkdeedu that contains "KDE_EXPORT" in the way I 
describe in that post.

(3) Simply remove all instances of the string "KDE_EXPORT" under libkdeedu.
(I am not absolutely sure this will work, but I think it probably will)

Hope this helps,
Jason

On Thursday 27 October 2005 06:29, Chris Curran wrote:
> Hi guys; I'm beginning work on the SBIG INDI driver and I'm trying to
> compile version 3.5 of kstars on a FC4 box. Getting compile errors right
> at the start. My settings:
>
> KDEDIR: /usr
> QTDIR: /usr/lib/qt-3.3
> gcc: 3.4.3 20050227
>
> Due to the nature of the compile error I wonder if it's a compiler
> version issue?
>
> cheers,
> Chris Curran
>
> [root at ns1 kdeedu]# cd libkdeedu
> [root at ns1 libkdeedu]# make
> Making all in kdeeducore
> make[1]: Entering directory `/usr/src/zxc/kdeedu/libkdeedu/kdeeducore'
> Making all in .
> make[2]: Entering directory `/usr/src/zxc/kdeedu/libkdeedu/kdeeducore'
> if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++
> -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde
> -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT
> -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
> -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
> -DQT_NO_TRANSLATION  -MT keduvocdata.lo -MD -MP -MF
> ".deps/keduvocdata.Tpo" -c -o keduvocdata.lo keduvocdata.cpp; \
> then mv -f ".deps/keduvocdata.Tpo" ".deps/keduvocdata.Plo"; else rm -f
> ".deps/keduvocdata.Tpo"; exit 1; fi
> In file included from keduvocdata.cpp:19:
> keduvocdata.h:41: error: visibility arg must be one of "default",
> "hidden", "protected" or "internal"
> keduvocdata.h:49: error: visibility arg must be one of "default",
> "hidden", "protected" or "internal"
> make[2]: *** [keduvocdata.lo] Error 1
> make[2]: Leaving directory `/usr/src/zxc/kdeedu/libkdeedu/kdeeducore'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/zxc/kdeedu/libkdeedu/kdeeducore'
> make: *** [all-recursive] Error 1
> [root at ns1 libkdeedu]#
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel

-- 
KStars: KDE Desktop Planetarium
http://edu.kde.org/kstars


More information about the Kstars-devel mailing list