[Kde-perl] Compile problem with Suse8.1

Germain Garand kde-perl@mail.kde.org
Fri, 6 Dec 2002 20:47:51 +0000


Le Vendredi 06 D=E9cembre 2002 15:11, Michael Traxler a =E9crit :
> Hi,

Hello Michael,=20
what version of Qt did you parse ?
It's strange :  mimeName() is a virtual that was reimplemented in QGbkCod=
ec in=20
3.0.4 (from QTextCodec ), and no more in 3.1
The best guess is they have shipped a wrong/obsolete header  ?!

There are only two posibilities to fix that : get the right header, or in=
clude=20
it in the skip list (either the whole header in generate.pl.in, or the=20
specific class in kalyptusCxxToSmoke around l.200.. add a statement like=20
"$className eq 'QGbkCodec' ||" )

Anyway, there is no #ifdef block around mimeName(), so it's not likely to=
 be a=20
problem of #defines...

Cheers,
G.

>
> I encountered the following problem on two different Suse8.1 installati=
on
> (one from scratch, one update), when trying to compile from CVS:
> (./configure --disable-GL --enable-smoke)
>
> In the last step of linking the smoke library the following error occur=
s:
>
> g++ -O2 -fno-exceptions -fno-check-new -o libsmokeqt.la.closure .......
> .libs/x_QFilePreview.o  -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kde3=
/lib
> -lqt-mt -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread
> .libs/x_QGbkCodec.o: In function `.L10':
> .libs/x_QGbkCodec.o(.text+0x88): undefined reference to
> `QGbkCodec::mimeName() const' .libs/x_QGbkCodec.o: In function
> `x_QGbkCodec::mimeName() const':
> .libs/x_QGbkCodec.o(.gnu.linkonce.t._ZNK11x_QGbkCodec8mimeNameEv+0x55):
> undefined reference to `QGbkCodec::mimeName() const' collect2: ld retur=
ned
> 1 exit status
> make: *** [libsmokeqt.la.closure] Fehler 1
> michaelt@linux:~/software/PerlQt-3/smoke/qt>
>
>
> The only way I found to still get it linked, was to remove the mimeName=
()
> call in the x_QGbkCodec.cpp. But this will crash, as soon as I use this
> class, wherever this would be....
>
> Thanks,
> =09Michael
>
>
>
> -----------------------------------------------------------------------=
----
>--- Whenever you dream you're holding the key it opens the door to let y=
ou
> be free RJD
>
> -------------------------------------
> I have not failed.  I have just
> found 10,000 ways that don't work.
>         - Thomas Edison
> -------------------------------------
>
>
> _______________________________________________
> Kde-perl mailing list
> Kde-perl@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-perl