[kde-solaris] Problem compiling kdeadmin 3.1
Laurent Blume
kde-solaris@mail.kde.org
Mon Feb 3 20:16:01 2003
I've got a problem while compiling kdeadmin 3.1.
I've got Solaris 9 x86, qt 3.1.1, arts 1.1, kdelibs 3.1, kdebase 3.1, and I'm
using GCC 2.95.3 with GNU binutils 2.13.2
Here is the compile error:
mnt.cpp: In method `Mounts::Mounts()':
mnt.cpp:102: no matching function for call to `QString::arg (char *&)'
/opt/qt/include/qstring.h:418: candidates are: class QString QString::arg(long
int, int = 0, int = 10) const
/opt/qt/include/qstring.h:419: class QString QString::arg(long
unsigned int, int = 0, int = 10) const
/opt/qt/include/qstring.h:875: class QString QString::arg(int,
int = 0, int = 10) const
/opt/qt/include/qstring.h:878: class QString
QString::arg(unsigned int, int = 0, int = 10) const
/opt/qt/include/qstring.h:881: class QString QString::arg(short
int, int = 0, int = 10) const
/opt/qt/include/qstring.h:884: class QString QString::arg(short
unsigned int, int = 0, int = 10) const
/opt/qt/include/qstring.h:424: class QString QString::arg(char,
int = 0) const
/opt/qt/include/qstring.h:425: class QString QString::arg(QChar,
int = 0) const
/opt/qt/include/qstring.h:426: class QString QString::arg(const
QString &, int = 0) const
/opt/qt/include/qstring.h:427: class QString
QString::arg(double, int = 0, char = 'g', int = -1) const
make[3]: *** [mnt.o] Erreur 1
make[3]: Leaving directory `/export/home/space/apps/kde/obj/kdeadmin-3.1/kuser'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/export/home/space/apps/kde/obj/kdeadmin-3.1/kuser'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/export/home/space/apps/kde/obj/kdeadmin-3.1'
make: *** [all] Erreur 2
After having a look at the source, it seems it's right:
quotafilename = QString("%1%2%3")
.arg(mt->mnt_mountp)
.arg((mt->mnt_mountp[strlen(mt->mnt_mountp) - 1] ==
'/') ? "" : "/")
.arg(_KU_QUOTAFILENAME);
mt is an mnttab struct, in which mnt_mountp is a char*, and there is no method
to handle that in /opt/qt/include/qstring.h
Anyone has an idea where I went wrong ??
TIA,
Laurent