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

List:       kde-devel
Subject:    Re: [kde-freebsd] wrong include order for custom KDEDIR(S)
From:       Raphael Langerhorst <raphael-langerhorst () gmx ! at>
Date:       2004-12-24 11:19:36
Message-ID: 200412241219.36579.raphael-langerhorst () gmx ! at
[Download RAW message or body]

On Friday 24 December 2004 11:24, Raphael Langerhorst wrote:
> Hi all,
>
> /usr/local/include is in some places included BEFORE
> $KDEDIRS/include is included. This results in build errors when
> building a different KDE version (CVS HEAD in my case) into a
> custom location, because all KDE headers (from a standard ports
> installation) are located in /usr/local/include.
>
> I even removed the --with-extra-includes=/usr/local/include
> argument to configure, but still at some places, /usr/local/include
> gets included before $KDEDIRS/include, which is obviously a wrong
> behaviour. I consider this as a KDE bug and will make a bug-report.
> But as some people on this list obviously manage to build a
> complete KDE CVS snapshot into a custom location, I guess there are
> workarounds or whatever. So how can this issue be solved?
>
> (yes, I looked at
> http://freebsd.kde.org/howtos/fbsd-kde-head-and-ports.php) ...
> besides, this script should be updated to honor KDEDIRS instead of
> the deprecated KDEDIR environment variable.
>
> Regards,
> Raphael

Attached is an example run, sorry that I haven't attached it with the 
first mail.

As you can see the at the compile line, -I/usr/local/include comes 
BEFORE -I/usr/home/kdedev/local/kde-head/include (which is 
$KDEDIR/include). The stable KDE header files are located 
in /usr/local/include.

This leads to including wrong headers. As long as the headers are 
fairly compatible, this doesn't matter much of course, but in this 
case the visibility patch was applied AFTER the 3.3 release, so this 
leads to failure because wrong headers are used.

If I compile this file by hand and move -I/usr/local/include after the 
KDE includes, then it compiles fine.

Regards,
Raphael

-- 
G System, The Evolving Universe - http://www.g-system.at

["output" (text/plain)]

gmake  all-recursive

<snip making of previous directories/>

Making all in kfontinst
gmake[3]: Entering directory \
`/usr/home/raphael/devel/kde/build/kdebase/kcontrol/kfontinst' Making all in lib
gmake[4]: Entering directory \
`/usr/home/raphael/devel/kde/build/kdebase/kcontrol/kfontinst/lib' if /bin/sh \
../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. \
-I/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib -I../../..  \
-I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include   \
-I/usr/home/kdedev/local/kde-head/include -I/usr/X11R6//include -I/usr/X11R6/include \
-D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT  -D_THREAD_SAFE   -Wnon-virtual-dtor \
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -g3 -fno-inline \
-fno-exceptions -fno-check-new -fno-common -fno-exceptions -fno-check-new -fno-common \
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT \
-DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT Misc.lo -MD -MP -MF ".deps/Misc.Tpo" -c -o \
Misc.lo /home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.cpp; \ then mv -f \
".deps/Misc.Tpo" ".deps/Misc.Plo"; else rm -f ".deps/Misc.Tpo"; exit 1; fi In file \
                included from \
                /home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.cpp:29:
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:53: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:54: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:55: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:56: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:57: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:58: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:59: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:60: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:61: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:62: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:63: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:64: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:65: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:66: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:67: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:68: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:69: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:70: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.h:71: error: visibility \
                arg must be one of "default", "hidden", "protected" or "internal"
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.cpp: In function `bool \
                KFI::Misc::check(const QString&, unsigned int, bool)':
/home/raphael/devel/kde/kdebase/kcontrol/kfontinst/lib/Misc.cpp:233: warning: \
comparison between signed and unsigned integer expressions gmake[4]: *** [Misc.lo] \
Error 1 gmake[4]: Leaving directory \
`/usr/home/raphael/devel/kde/build/kdebase/kcontrol/kfontinst/lib' gmake[3]: *** \
[all-recursive] Error 1 gmake[3]: Leaving directory \
`/usr/home/raphael/devel/kde/build/kdebase/kcontrol/kfontinst' gmake[2]: *** \
[all-recursive] Error 1 gmake[2]: Leaving directory \
`/usr/home/raphael/devel/kde/build/kdebase/kcontrol' gmake[1]: *** [all-recursive] \
Error 1 gmake[1]: Leaving directory `/usr/home/raphael/devel/kde/build/kdebase'
gmake: *** [all] Error 2



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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