From kde-devel Tue Apr 23 21:30:47 2002 From: fenix Date: Tue, 23 Apr 2002 21:30:47 +0000 To: kde-devel Subject: Re: Unable to compile kdelibs for some time... X-MARC-Message: https://marc.info/?l=kde-devel&m=101959744723359 Le mar 23/04/2002 =E0 20:43, Bjorn Westlin a =E9crit : > Hi. Hi =20 > I have been unable to compile kdelibs from CVS for some time now, due to = some =20 > problems in svgicons. Here is the output from make: already seen this problem ... =20 > /bin/sh ../../libtool --mode=3Dlink --tag=3DCXX c++ -Wnon-virtual-dtor=20 > -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-a= rith=20 > -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=3D500 -D_BSD_S= OURCE=20 > -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O3 -mcpu=3Dathlon=20 > -march=3Di386 -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION=20 > -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o ksvgtopng =20 > ksvgtopng.o libkdesvgicons.la -lqt-mt -lpng -lz -lm -lXext -lX11 -lresol= v=20 > -lSM -lICE -lpthread -L/usr/X11R6/lib -L/opt/lib/qt-copy/lib -L/opt/kde3/= lib > objprelink ksvgtopng.o > c++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall=20 > -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi=20 > -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG=20 > -DNO_DEBUG -O2 -O3 -mcpu=3Dathlon -march=3Di386 -fno-exceptions -fno-chec= k-new=20 > -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPA= T -o=20 > ksvgtopng ksvgtopng.o ./.libs/libkdesvgicons.a=20 > -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96=20 > -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../.. -lstdc++ -lc -lg= cc=20 > -lqt-mt -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread=20 > -L/usr/X11R6/lib -L/opt/lib/qt-copy/lib -L/opt/kde3/lib > ./.libs/libkdesvgicons.a(ksvgiconengine.o): In function=20 > `KSVGIconEngine::load(int, int, QString const &)': > ksvgiconengine.o(.text+0xb5): undefined reference to=20 > `QDomDocument::setContent(QIODevice *, QString *, int *, int *)' > ./.libs/libkdesvgicons.a(ksvgiconengine.o)(.QPtrCollection::gnu.linkonce.= t.stub.newItem(void=20 > *)+0x1): undefined reference to `QPtrCollection::newItem(void *)' > collect2: ld returned 1 exit status > make: *** [ksvgtopng] Error 1 this patch must fix this error (it have already posted this patch who solved the same problem for me) Index: Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/kde/kdelibs/kdecore/svgicons/Makefile.am,v retrieving revision 1.1 diff -u -r1.1 Makefile.am --- Makefile.am 7 Apr 2002 16:43:41 -0000 1.1 +++ Makefile.am 9 Apr 2002 19:35:38 -0000 @@ -9,5 +9,6 @@ =20 bin_PROGRAMS =3D ksvgtopng ksvgtopng_SOURCES =3D ksvgtopng.cpp +ksvgtopng_LDFLAGS =3D $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(all_libraries) -no-undefined -version-info 4:0 ksvgtopng_LDADD =3D libkdesvgicons.la $(LIB_QT) $(all_libraries) =20 > It seems like the linker is trying to link against an older version of QT= =20 > which seems natural due to the =20 > -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../.. flag which=20 > translates to /usr/lib where QT2 is installed on my machine. >=20 > Also I have been unable to compile libkscan/scandialog.cpp in kdegraphics= =20 > because -I/usr/include coming before -I/opt/kde3/include which as I=20 > understand it makes it compile against kde2.2. my second patch for this problem Index: Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/kde/kdegraphics/libkscan/Makefile.am,v retrieving revision 1.13 diff -u -r1.13 Makefile.am --- Makefile.am 18 Jan 2002 18:00:40 -0000 1.13 +++ Makefile.am 23 Apr 2002 21:23:02 -0000 @@ -1,4 +1,4 @@ -INCLUDES =3D $(LIBSANE_INCLUDES) $(all_includes) +INCLUDES =3D $(all_includes) $(LIBSANE_INCLUDES) lib_LTLIBRARIES =3D libkscan.la @@ -18,7 +18,7 @@ img_canvas.cpp previewer.cpp imgscaledialog.cpp sizeindicator.cpp -libkscan_la_LDFLAGS =3D $(all_libraries) $(LIBSANE_LDFLAGS) -no-undefined -version-info 1:0 +libkscan_la_LDFLAGS =3D $(KDE_RPATH) $(all_libraries) $(LIBSANE_LDFLAGS) -no-undefined -version-info 1:0 libkscan_la_LIBADD =3D $(LIBSANE_LIBS) $(LIB_KFILE) kde_services_DATA =3D scanservice.desktop =20 > I'm running Mandrake 8.1 with kde2.2. Do I really have to uninstall the w= hole=20 > kde2.2 to be able to compile kde3? I really would like to keep it... i have keeped it ... but at each update from HEAD i have compilation problems like this :( =20 > Any help would be appreciated. ;) > / Bj=F6rn =20 FeniX >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<