Still problems with gcc 3.4 and visibility

Simone Gotti motaboy at gentoo.org
Sat Nov 27 02:35:20 GMT 2004


On Friday 26 November 2004 21:45, Daniel Roe wrote:
> On Fri, 26 Nov 2004 11:06:07 +0000, Simone Gotti <simone.gotti at email.it> 
wrote:
> > On Tuesday 23 November 2004 11:20, LuisMi Castilla wrote:
> > > Hi, I have been following the discussion about compiling kde-head with
> > > gcc 3.4 with visibility patches (gcc 3.4.3 from gentoo).
> > >
> > > Yesterday I couldn't compile it, but with dirk's fixes it compiles ok.
> > > The problem is that konqueror, the taskbar and trayicon don't work
> > > correctly, so I think it's still failing.
> >
> > Thanks to the  Jaroslaw Staniek suggestions I've fixed the missing
> > konqueror's exported symbols. Now the sidebar and the verious views
> > should work.
> >
> > Can someone review and tell me if I can commit it?
>
> I can confirm that your patch fixes the undefined symbol error for
> init_konq_listview and init_konq_iconview. Thanks very much!
>
> There are still problems with visibility though. Most notably:
>
> [KDED]
> kio (kioslave): WARNING: Can't communicate with kded_kpasswdserver!
> kio_http_debug: WARNING: (12298) Can't communicate with kded_kcookiejar!
>
> [KIO]
> Could not find kdemain: /usr/kde/cvs/lib/kde3/kio_thumbnail.so:
> undefined symbol: main
>
> [KLIPPER]
> /usr/kde/cvs/lib/kde3/klipper_panelapplet.so: undefined symbol: init
>
> [KHOTKEYS]
> /usr/kde/cvs/lib/kde3/kcm_khotkeys.so: undefined symbol: init_khotkeys
>
> [KICKER]
> Various applets don't display properly, for example the clock, system
> tray, taskbar, pager. They display as though there were only a few
> pixels width to fit the whole contents of the applet. So nothing
> except a bit of hoverable frame is displayed for systray and clock; a
> button and a half for the taskbar; a few lines for the pager. I'll
> provide screenshots if you'd like. But I think the problem is a
> visibility problem.
>
> [KDM]
> Fails to start with an error about loading a widget. I think it was
> mentioned earlier on this list, but I'll check.
>
> I'll keep you up to date as I discover more.
>
> (My gcc: version 3.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0,
> pie-8.7.6.6). I cleaned my system of KDE completely before building
> the latest version in case the problem were to do with digital
> rubbish.)
>
> regards,
> Daniel

This patch will fix more of them, except the kded errors that I can't find. I 
can't test some of them as I can't compile kicker from CVS HEAD:

/usr/qt/3/bin/moc ./container_extension.h -o container_extension.moc
if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H 
-I. -I. -I../.. -I./../share -I./../ui -I./../buttons -I../../libkonq 
-I/usr/kde/cvshead/include -I/usr/qt/3/include -I/usr/X11R6/include   
-DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor 
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -g3 
-fno-inline -Wformat-security -Wmissing-format-attribute -fno-exceptions 
-fno-check-new -fno-common -fno-exceptions -fno-check-new -fno-common 
-fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE 
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION 
-D_GNU_SOURCE  -MT container_extension.lo -MD -MP -MF 
".deps/container_extension.Tpo" \
  -c -o container_extension.lo `test -f 'container_extension.cpp' || echo 
'./'`container_extension.cpp; \
then mv -f ".deps/container_extension.Tpo" ".deps/container_extension.Plo"; \
else rm -f ".deps/container_extension.Tpo"; exit 1; \
fi
In file included from container_extension.cpp:53:
container_base.h:111: warning: unused parameter 'a'
In file included from extensionmanager.h:32,
                 from container_extension.cpp:54:
container_extension.h:175: warning: unused parameter 'XineramaScreen'
container_extension.cpp: In member function `virtual void 
ExtensionContainer::showPanelMenu(const QPoint&)':
container_extension.cpp:427: error: 'class KPanelExtension' has no member 
named 'customMenu'
container_extension.cpp:430: error: 'class KPanelExtension' has no member 
named 'customMenu'
make[1]: *** [container_extension.lo] Error 1
make[1]: Leaving directory 
`/home/motaboy/Projects/kde-cvs/kdebase/kicker/core'
make: *** [all-recursive] Error 1


Bye!
-- 
Simone Gotti - Gentoo Developer
<motaboy at gentoo.org>
http://kde-bluetooth.sf.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebase-visibility-fix-01.patch
Type: text/x-diff
Size: 12935 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041127/3427e023/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041127/3427e023/attachment.sig>


More information about the kde-core-devel mailing list