QT: qt-everywhere-opensource-src-4.6.0-beta1 (the rc1 does not compile
cleanly xmlpattern)
os: Solaris 10
CC: Sun C++ 5.9
$ pstack core
core 'core' of 17317: ./console1
fda003cc _icv_iconv (ffbff554, 0, ffbff53c, ffbff544, ffbff530, 293f8)
+ b0
fe2f7c74
__1cLQdDIconvCodecSconvertFromUnicode6kMpknFQdDChar_ipnKQdDTextCodecOConverterState__nKQdDByteArray__
(ffbff5b8, 0, 21c62, 16, 0, ffbff52c) + 53c
00011440 main (21f30, 21c00, 21f30, 0, 1, 11400) + bc
00010f64 _start (0, 0, 0, 0, 0, 0) + 108
source code: cat console1.cpp
#include <iostream>
#include <QCoreApplication>
using namespace std;
int main(int nargs, char *pargv[])
{
int rc = 0;
QCoreApplication app(nargs, pargv);
QString str_1("hello QT");
QString str_2; // it hangs for a long time until a core is
created !!!
cout << qPrintable(str_1) << endl;
cout << qPrintable(str_2) << endl;
return rc;
}
1)
initially I found the Core lib to be linked against a libiconv, but on
solaris these funcs are part of the libc. configure does not detect
that because of a subtile error in 'config.tests/unix/iconv/iconv.cpp.
the second argument to iconv(3c) is declared 'const char**' in
'iconv.h'. sun CC reports an error on that, can somebody fix that in
the build environment? (and also the convert iconv source cpp file
providing the actual implementation.
(there is a bug report from 2008 with the same topic)
2)
anybody a clou why the sample 'console1.cpp' is crashing? (it's
crashing with both, the solaris libc iconv(3c) and the GNU libiconv
version).
cheers
markus
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback