[Bug 151095] dcop kdelibs 3.5.8 compile errors, missing -lqt-mt

Vincent Rubiolo vincent.rubiolo at free.fr
Wed Apr 16 16:20:05 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=151095         




------- Additional Comments From vincent.rubiolo free fr  2008-04-16 16:20 -------
The issue still exists on 3.5.9 (RHEL4 using the system-installed QT under /usr/lib/qt-3.3). None of the configure --with-qt-* options changed anything.

I have tried to patch the abovementioned (comment 10) Makefiles.am w/ AM_LDFLAGS and regenerating w/ automake-1.10.1/autoconf-2.61 but the build (with the same configure line) now fails earlier w/ a missing dcopserver.moc file :
make[4]: Entering directory `/folk/vrubiolo/Archives/kde-3.5.9-build/kdelibs-3.5.9/dcop'
/bin/sh ../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../kdecore -I../kio/kssl -I../kjs -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdecore/network -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/lib/qt-3.3/include -I/usr/X11R6/include -I/folk/vrubiolo/InstalledProgs/KDE-3.5.9/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align-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 dcopserver.lo -MD -MP -MF .deps/dcopserver.Tpo -c -o dcopserver.lo dcopserver.cpp
dcopserver.cpp:1788:26: error: dcopserver.moc: No such file or directory
dcopserver.cpp: In constructor 'DCOPServer::DCOPServer(bool)':
dcopserver.cpp:1037: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728)
dcopserver.cpp: In function 'int kdemain(int, char**)':
dcopserver.cpp:1694: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728)
dcopserver.cpp:1697: warning: 'dcopServerFileOld' is deprecated (declared at ./dcopclient.h:728)
make[4]: *** [dcopserver.lo] Error 1
make[4]: Leaving directory `/folk/vrubiolo/Archives/kde-3.5.9-build/kdelibs-3.5.9/dcop'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/folk/vrubiolo/Archives/kde-3.5.9-build/kdelibs-3.5.9/dcop'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/folk/vrubiolo/Archives/kde-3.5.9-build/kdelibs-3.5.9/dcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/folk/vrubiolo/Archives/kde-3.5.9-build/kdelibs-3.5.9'
make: *** [all] Error 2

I am not so familiar w/ the KDE build system so I have not proceeded any further (seems like I need to regen moc files, dunno how to do that). I have changed the Makefile.in as follows instead :
$ diff -u dcop/dcopidl/Makefile.in dcop/dcopidl/Makefile.in.bak
--- dcop/dcopidl/Makefile.in    2008-04-16 16:09:27.000000000 +0200
+++ dcop/dcopidl/Makefile.in.bak        2008-04-16 16:08:33.000000000 +0200
 @ -410,7 +410,7  @
 dcopidl_SOURCES = main.cpp yacc.cc scanner.cc
 noinst_HEADERS = yacc.cc.h
 dcopidl_LDADD = $(LIB_QT)
-dcopidl_LDFLAGS = $(KDE_RPATH) $(AM_LDFLAGS)
+dcopidl_LDFLAGS = $(KDE_RPATH)
 EXTRA_DIST = dcopidl_test.h scanner.ll yacc.yy
 MAINTAINERCLEANFILES = yacc.cc.output
 #>- all: all-am

and 

$ diff -u dcop/dcopidl2cpp/Makefile.in dcop/dcopidl2cpp/Makefile.in.bak
--- dcop/dcopidl2cpp/Makefile.in        2008-04-16 16:10:49.000000000 +0200
+++ dcop/dcopidl2cpp/Makefile.in.bak    2008-04-16 16:10:43.000000000 +0200
 @ -411,7 +411,7  @
 dcopidl2cpp_SOURCES = main.cpp skel.cpp stub.cpp stubimpl.cpp
 noinst_HEADERS = main.h
 dcopidl2cpp_LDADD = $(LIB_QT)
-dcopidl2cpp_LDFLAGS = $(KDE_RPATH) $(AM_LDFLAGS)
+dcopidl2cpp_LDFLAGS = $(KDE_RPATH)
 #>- all: all-am
 #>+ 1
 all: docs-am  all-am

This fixed the build issue for kdelibs.


More information about the Kdelibs-bugs mailing list