[Kde-perl] Compile problem with Suse8.1
Germain Garand
kde-perl@mail.kde.org
Fri, 6 Dec 2002 22:05:49 +0000
Le Vendredi 06 D=E9cembre 2002 21:41, Michael Traxler a =E9crit :
> Hello Germain,
>
> thanks for your answer.
> In my installation I use the following rpms:
>
> linux:~ # rpm -qa| grep qt
> qt3-extensions-3.0.5-81
> qt3-static-3.0.5-50
> qt3-mysql-3.0.5-117
> qt3-non-mt-3.0.5-117
> qt3-3.0.5-92
> qt3-devel-3.0.5-64
> qt3-devel-doc-3.0.5-64
> qt3-devel-tools-3.0.5-81
>
OK. 3.0.5 then.
> And when I grep for mimeName I get:
>
> linux:/usr/lib/qt-3.0.5/include # grep mimeName *
> qeucjpcodec.h: const char* mimeName() const;
> qeuckrcodec.h: const char* mimeName() const;
> qgb18030codec.h: const char* mimeName() const;
^^^^^^^^ =20
QGbkCodec is defined in this header and unless I'm much mistaken, mimeNam=
e()=20
is part of it.
Then again, why isn't this symbol referenced in your Qt libary if it's in=
the=20
header ? I fail to understand...
Could you please send me your x_QbkCodec.cpp and your qgb18030codec.h ?
> qjiscodec.h: const char* mimeName() const;
> qrtlcodec.h: const char* mimeName() const;
> qsjiscodec.h: const char* mimeName() const;
> qtextcodec.h: virtual const char* mimeName() const;
>
> Thanks for the tip. I will try to get it excluded...
> But what part of Qt (function) will not work anymore?
>
> Or should I just upgrade to Qt3.1?
You might, but that's certainly NOT a requirement. We intend to keep full=
=20
backward compatibility for the whole 3.x serie.=20
> But then this problem should be mentioned in the README, that other SuS=
E8.1
> users know what to do....
Sure, but we'll see what those offensive files have to say for themselves=
=20
first :-)
G.
>
> Michael
>
> On Fri, 6 Dec 2002, Germain Garand wrote:
> > Le Vendredi 06 D=E9cembre 2002 15:11, Michael Traxler a =E9crit :
> > > Hi,
> >
> > Hello Michael,
> > what version of Qt did you parse ?
> > It's strange : mimeName() is a virtual that was reimplemented in
> > QGbkCodec in 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, o=
r
> > include it in the skip list (either the whole header in generate.pl.i=
n,
> > or the specific class in kalyptusCxxToSmoke around l.200.. add a
> > statement like "$className eq 'QGbkCodec' ||" )
> >
> > Anyway, there is no #ifdef block around mimeName(), so it's not likel=
y to
> > be a problem of #defines...
> >
> > Cheers,
> > G.
> >
> > > I encountered the following problem on two different Suse8.1
> > > installation (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
> > > occurs:
> > >
> > > g++ -O2 -fno-exceptions -fno-check-new -o libsmokeqt.la.closure ...=
=2E...
> > > .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 -l=
ICE
> > > -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+0x=
55):
> > > undefined reference to `QGbkCodec::mimeName() const' collect2: ld
> > > returned 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 soo=
n 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 you 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
> >
> > _______________________________________________
> > Kde-perl mailing list
> > Kde-perl@mail.kde.org
> > http://mail.kde.org/mailman/listinfo/kde-perl
>
> -----------------------------------------------------------------------=
----
>--- 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