Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, April 2007
Qt-4.2.3 fails to build with mkspec = aix-xlc


Message 1 in thread

qmake manage to be built, but the very first file in the corelib does not.
AIX 5.2 - Visual Edge 7.0

[bsergean@apouh corelib]$ lslpp -L | grep xlC
  xlC.adt.include            7.0.0.1    C     F    C Set ++ Application
  xlC.aix50.rte              8.0.0.7    C     F    C Set ++ Runtime for AIX 5.0
  xlC.cpp                    5.0.2.0    C     F    C for AIX Preprocessor
  xlC.msg.JA_JP.cpp          5.0.2.0    C     F    C for AIX Preprocessor
  xlC.msg.JA_JP.rte          6.0.0.0    C     F    C Set ++ Runtime
  xlC.msg.Ja_JP.cpp          5.0.2.0    C     F    C for AIX Preprocessor
  xlC.msg.Ja_JP.rte          7.0.0.0    C     F    C Set ++ Runtime
  xlC.msg.en_US.cpp          5.0.2.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.rte          8.0.0.7    C     F    C Set ++ Runtime
  xlC.msg.ja_JP.cpp          5.0.2.0    C     F    C for AIX Preprocessor
  xlC.msg.ja_JP.rte          7.0.0.0    C     F    C Set ++ Runtime
  xlC.rte                    8.0.0.7    C     F    C Set ++ Runtime

Configured like:
./configure -qt-zlib -qt-libpng -qt-libjpeg -no-qt3support -platform aix-xlc

[bsergean@apouh corelib]$ make
xlC_r -c -+ -qstrict -O3 -qthreaded  -DQT_SHARED -DQT_BUILD_CORE_LIB
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT
-DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I../../mkspecs/aix-xlc -I. -I../../include -I../../include/QtCore
-Iglobal -I../3rdparty/zlib -I.moc/release-shared
-I.uic/release-shared -o .obj/release-shared/qglobal.o
global/qglobal.cpp
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
1540-0401 (W) The member "class QList<QObject *>::const_iterator" is
already declared.
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
1540-0424 (I) "const_iterator" is declared on line 126 of
"../../include/QtCore/../../src/corelib/tools/qlist.h".
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
1540-0401 (W) The member "class QList<class QPointer<QObject>
>::const_iterator" is already declared.
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
1540-0424 (I) "const_iterator" is declared on line 126 of
"../../include/QtCore/../../src/corelib/tools/qlist.h".
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
1540-0401 (W) The member "class QList<class
QByteArray>::const_iterator" is already declared.
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
1540-0424 (I) "const_iterator" is declared on line 126 of
"../../include/QtCore/../../src/corelib/tools/qlist.h".
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
1540-0401 (W) The member "class QList<class QVariant>::const_iterator"
is already declared.
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
1540-0424 (I) "const_iterator" is declared on line 126 of
"../../include/QtCore/../../src/corelib/tools/qlist.h".
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
1540-0401 (W) The member "class QList<class
QPostEvent>::const_iterator" is already declared.
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
1540-0424 (I) "const_iterator" is declared on line 126 of
"../../include/QtCore/../../src/corelib/tools/qlist.h".
"global/qglobal.cpp", line 958.13: 1540-0400 (S) "qVersion()" has a
conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1124.27: 1540-0424 (I) "qVersion" is declared on line 1124 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
1540-0401 (W) The member "class QList<bool (*)(void
**)>::const_iterator" is already declared.
"../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
1540-0424 (I) "const_iterator" is declared on line 126 of
"../../include/QtCore/../../src/corelib/tools/qlist.h".
make: *** [.obj/release-shared/qglobal.o] Error 1



In
Don't know if it's related to the forward declaration of the class
const_iterator, cf

struct Q_CORE_EXPORT QListData {

    const T &at(int i) const;
    const T &operator[](int i) const;
    T &operator[](int i);

    void append(const T &t);
    void prepend(const T &t);
    void insert(int i, const T &t);
    void replace(int i, const T &t);
    void removeAt(int i);
    int removeAll(const T &t);
    T takeAt(int i);
    T takeFirst();
    T takeLast();
    void move(int from, int to);
    void swap(int i, int j);
    int indexOf(const T &t, int from = 0) const;
    int lastIndexOf(const T &t, int from = -1) const;
    QBool contains(const T &t) const;
    int count(const T &t) const;

    class const_iterator;



Thanks for any help folks,
Benjamin.

--
 [ signature omitted ] 

Message 2 in thread

I have a different problem with Qt-4.3 beta, looks like an assembly
code (*atomic* symbol missing in QtCore). Here is the output.

.q_atomic_fetch_and_add_int and  .q_atomic_fetch_and_add_acquire_int
are undefined.

make[1]: Entering directory
`/home/bsergean/src/qt-x11-opensource-src-4.3.0beta/src/corelib'
rm -f libQtCore.so.4.3.0 libQtCore.a libQtCore.so.4 libQtCore.so.4.3
xlC_r -L/usr/lib/threads -qmkshrobj -o libQtCore.so.4.3.0
.obj/release-shared/qatomic32.o .obj/release-shared/qglobal.o
.obj/release-shared/qlibraryinfo.o .obj/release-shared/qnumeric.o
.obj/release-shared/qmutex.o .obj/release-shared/qreadwritelock.o
.obj/release-shared/qmutexpool.o .obj/release-shared/qsemaphore.o
.obj/release-shared/qthread.o .obj/release-shared/qthreadstorage.o
.obj/release-shared/qmutex_unix.o .obj/release-shared/qthread_unix.o
.obj/release-shared/qwaitcondition_unix.o
.obj/release-shared/qbitarray.o .obj/release-shared/qbytearray.o
.obj/release-shared/qbytearraymatcher.o
.obj/release-shared/qcryptographichash.o
.obj/release-shared/qdatetime.o .obj/release-shared/qhash.o
.obj/release-shared/qline.o .obj/release-shared/qlinkedlist.o
.obj/release-shared/qlistdata.o .obj/release-shared/qlocale.o
.obj/release-shared/qpoint.o .obj/release-shared/qmap.o
.obj/release-shared/qrect.o .obj/release-shared/qregexp.o
.obj/release-shared/qshareddata.o .obj/release-shared/qsize.o
.obj/release-shared/qstring.o .obj/release-shared/qstringlist.o
.obj/release-shared/qtimeline.o .obj/release-shared/qvector.o
.obj/release-shared/qvsnprintf.o
.obj/release-shared/qabstractfileengine.o
.obj/release-shared/qbuffer.o .obj/release-shared/qdatastream.o
.obj/release-shared/qdebug.o .obj/release-shared/qdir.o
.obj/release-shared/qdiriterator.o .obj/release-shared/qfile.o
.obj/release-shared/qfileinfo.o .obj/release-shared/qiodevice.o
.obj/release-shared/qprocess.o .obj/release-shared/qtextstream.o
.obj/release-shared/qtemporaryfile.o .obj/release-shared/qresource.o
.obj/release-shared/qresource_iterator.o .obj/release-shared/qurl.o
.obj/release-shared/qsettings.o .obj/release-shared/qfsfileengine.o
.obj/release-shared/qfsfileengine_iterator.o
.obj/release-shared/qfilesystemwatcher.o
.obj/release-shared/qfsfileengine_unix.o
.obj/release-shared/qfsfileengine_iterator_unix.o
.obj/release-shared/qprocess_unix.o
.obj/release-shared/qpluginloader.o
.obj/release-shared/qfactoryloader.o .obj/release-shared/quuid.o
.obj/release-shared/qlibrary.o .obj/release-shared/qlibrary_unix.o
.obj/release-shared/qabstracteventdispatcher.o
.obj/release-shared/qabstractitemmodel.o
.obj/release-shared/qbasictimer.o .obj/release-shared/qeventloop.o
.obj/release-shared/qcoreapplication.o
.obj/release-shared/qcoreevent.o .obj/release-shared/qmetaobject.o
.obj/release-shared/qmetatype.o .obj/release-shared/qmimedata.o
.obj/release-shared/qobject.o
.obj/release-shared/qobjectcleanuphandler.o
.obj/release-shared/qsignalmapper.o
.obj/release-shared/qsocketnotifier.o .obj/release-shared/qtimer.o
.obj/release-shared/qtranslator.o .obj/release-shared/qvariant.o
.obj/release-shared/qcoreglobaldata.o
.obj/release-shared/qcrashhandler.o
.obj/release-shared/qeventdispatcher_unix.o
.obj/release-shared/qisciicodec.o .obj/release-shared/qlatincodec.o
.obj/release-shared/qsimplecodec.o .obj/release-shared/qtextcodec.o
.obj/release-shared/qtsciicodec.o .obj/release-shared/qutfcodec.o
.obj/release-shared/qtextcodecplugin.o
.obj/release-shared/qfontlaocodec.o
.obj/release-shared/qgb18030codec.o .obj/release-shared/qjpunicode.o
.obj/release-shared/qeucjpcodec.o .obj/release-shared/qjiscodec.o
.obj/release-shared/qsjiscodec.o .obj/release-shared/qeuckrcodec.o
.obj/release-shared/qbig5codec.o .obj/release-shared/qfontjpcodec.o
.obj/release-shared/moc_qnamespace.o .obj/release-shared/moc_qthread.o
.obj/release-shared/moc_qlocale.o .obj/release-shared/moc_qtimeline.o
.obj/release-shared/moc_qfile.o .obj/release-shared/moc_qiodevice.o
.obj/release-shared/moc_qtemporaryfile.o
.obj/release-shared/moc_qsettings.o
.obj/release-shared/moc_qfilesystemwatcher_p.o
.obj/release-shared/moc_qpluginloader.o
.obj/release-shared/moc_qlibrary.o
.obj/release-shared/moc_qfactoryloader_p.o
.obj/release-shared/moc_qabstracteventdispatcher.o
.obj/release-shared/moc_qabstractitemmodel.o
.obj/release-shared/moc_qeventloop.o
.obj/release-shared/moc_qcoreapplication.o
.obj/release-shared/moc_qmimedata.o
.obj/release-shared/moc_qsocketnotifier.o
.obj/release-shared/moc_qtimer.o .obj/release-shared/moc_qtranslator.o
.obj/release-shared/moc_qobjectcleanuphandler.o
.obj/release-shared/moc_qeventdispatcher_unix_p.o
.obj/release-shared/moc_qtextcodecplugin.o
-L/home/bsergean/src/qt-x11-opensource-src-4.3.0beta/lib -lz -lm
-lpthreads -ldl
ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_int
ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_acquire_int



On 4/9/07, Benjamin Sergeant <bsergean@xxxxxxxxx> wrote:
> qmake manage to be built, but the very first file in the corelib does not.
> AIX 5.2 - Visual Edge 7.0
>
> [bsergean@apouh corelib]$ lslpp -L | grep xlC
>   xlC.adt.include            7.0.0.1    C     F    C Set ++ Application
>   xlC.aix50.rte              8.0.0.7    C     F    C Set ++ Runtime for AIX 5.0
>   xlC.cpp                    5.0.2.0    C     F    C for AIX Preprocessor
>   xlC.msg.JA_JP.cpp          5.0.2.0    C     F    C for AIX Preprocessor
>   xlC.msg.JA_JP.rte          6.0.0.0    C     F    C Set ++ Runtime
>   xlC.msg.Ja_JP.cpp          5.0.2.0    C     F    C for AIX Preprocessor
>   xlC.msg.Ja_JP.rte          7.0.0.0    C     F    C Set ++ Runtime
>   xlC.msg.en_US.cpp          5.0.2.0    C     F    C for AIX Preprocessor
>   xlC.msg.en_US.rte          8.0.0.7    C     F    C Set ++ Runtime
>   xlC.msg.ja_JP.cpp          5.0.2.0    C     F    C for AIX Preprocessor
>   xlC.msg.ja_JP.rte          7.0.0.0    C     F    C Set ++ Runtime
>   xlC.rte                    8.0.0.7    C     F    C Set ++ Runtime
>
> Configured like:
> ./configure -qt-zlib -qt-libpng -qt-libjpeg -no-qt3support -platform aix-xlc
>
> [bsergean@apouh corelib]$ make
> xlC_r -c -+ -qstrict -O3 -qthreaded  -DQT_SHARED -DQT_BUILD_CORE_LIB
> -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT
> -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> -I../../mkspecs/aix-xlc -I. -I../../include -I../../include/QtCore
> -Iglobal -I../3rdparty/zlib -I.moc/release-shared
> -I.uic/release-shared -o .obj/release-shared/qglobal.o
> global/qglobal.cpp
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
> 1540-0401 (W) The member "class QList<QObject *>::const_iterator" is
> already declared.
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
> 1540-0424 (I) "const_iterator" is declared on line 126 of
> "../../include/QtCore/../../src/corelib/tools/qlist.h".
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
> 1540-0401 (W) The member "class QList<class QPointer<QObject>
> >::const_iterator" is already declared.
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
> 1540-0424 (I) "const_iterator" is declared on line 126 of
> "../../include/QtCore/../../src/corelib/tools/qlist.h".
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
> 1540-0401 (W) The member "class QList<class
> QByteArray>::const_iterator" is already declared.
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
> 1540-0424 (I) "const_iterator" is declared on line 126 of
> "../../include/QtCore/../../src/corelib/tools/qlist.h".
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
> 1540-0401 (W) The member "class QList<class QVariant>::const_iterator"
> is already declared.
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
> 1540-0424 (I) "const_iterator" is declared on line 126 of
> "../../include/QtCore/../../src/corelib/tools/qlist.h".
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
> 1540-0401 (W) The member "class QList<class
> QPostEvent>::const_iterator" is already declared.
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
> 1540-0424 (I) "const_iterator" is declared on line 126 of
> "../../include/QtCore/../../src/corelib/tools/qlist.h".
> "global/qglobal.cpp", line 958.13: 1540-0400 (S) "qVersion()" has a
> conflicting declaration.
> "../../include/QtCore/../../src/corelib/global/qglobal.h", line
> 1124.27: 1540-0424 (I) "qVersion" is declared on line 1124 of
> "../../include/QtCore/../../src/corelib/global/qglobal.h".
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 175.11:
> 1540-0401 (W) The member "class QList<bool (*)(void
> **)>::const_iterator" is already declared.
> "../../include/QtCore/../../src/corelib/tools/qlist.h", line 126.11:
> 1540-0424 (I) "const_iterator" is declared on line 126 of
> "../../include/QtCore/../../src/corelib/tools/qlist.h".
> make: *** [.obj/release-shared/qglobal.o] Error 1
>
>
>
> In
> Don't know if it's related to the forward declaration of the class
> const_iterator, cf
>
> struct Q_CORE_EXPORT QListData {
>
>     const T &at(int i) const;
>     const T &operator[](int i) const;
>     T &operator[](int i);
>
>     void append(const T &t);
>     void prepend(const T &t);
>     void insert(int i, const T &t);
>     void replace(int i, const T &t);
>     void removeAt(int i);
>     int removeAll(const T &t);
>     T takeAt(int i);
>     T takeFirst();
>     T takeLast();
>     void move(int from, int to);
>     void swap(int i, int j);
>     int indexOf(const T &t, int from = 0) const;
>     int lastIndexOf(const T &t, int from = -1) const;
>     QBool contains(const T &t) const;
>     int count(const T &t) const;
>
>     class const_iterator;
>
>
>
> Thanks for any help folks,
> Benjamin.
>

--
 [ signature omitted ] 

Message 3 in thread

Hi,

> I have a different problem with Qt-4.3 beta, looks like an assembly
> code (*atomic* symbol missing in QtCore). Here is the output.

Indeed, I think this bug is being worked on.

--
 [ signature omitted ] 

Message 4 in thread

Hi,

> qmake manage to be built, but the very first file in the corelib does not.
> AIX 5.2 - Visual Edge 7.0

This looks like a compiler error, but unfortunately it the latest xlC 7.0 
updates seem to have been already installed:
http://www.ibm.com/support/docview.wss?uid=swg24015035

I know Qt has been tested with xlC 6.0 in-house, I don't know if it has been 
tested with xlC 7.0 or 8.0 yet.

* I would suggest contacting IBM and ask whether they can provide a patch for 
xlC 7.0
* Could you possibly try xlC 8.0 and see if the problem persists?

--
 [ signature omitted ] 

Message 5 in thread

Sorry gmail repply do not add the qt-intereset mail but the last author ...

---------- Forwarded message ----------
From: Benjamin Sergeant <bsergean@xxxxxxxxx>
Date: Apr 12, 2007 8:29 AM
Subject: Re: Qt-4.2.3 fails to build with mkspec = aix-xlc
To: Dimitri <dimitri@xxxxxxxxxxxxx>


Maybe I'm not that up to date:

[bsergean@apouh bsergean]$ lslpp -L | grep vac.C
  vac.C                      7.0.0.2    C     F    IBM XL C Compiler
  vac.C.readme.ibm           7.0.0.0    C     F    IBM XL C iFOR/LS Information

While on the webpage the patch contains vac.C.7.0.0.9

And maybe vac.C is the core compiler package ...

If only there was a simple versionning like the one  gcc has ...
xlC -qversion do not report minor version numbers.

I'll try to install that and see what happens.

Thanks,
Benjamin.


On 4/11/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > qmake manage to be built, but the very first file in the corelib does not.
> > AIX 5.2 - Visual Edge 7.0
>
> This looks like a compiler error, but unfortunately it the latest xlC 7.0
> updates seem to have been already installed:
> http://www.ibm.com/support/docview.wss?uid=swg24015035
>
> I know Qt has been tested with xlC 6.0 in-house, I don't know if it has been
> tested with xlC 7.0 or 8.0 yet.
>
> * I would suggest contacting IBM and ask whether they can provide a patch for
> xlC 7.0
> * Could you possibly try xlC 8.0 and see if the problem persists?
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 6 in thread

Hi,

> Maybe I'm not that up to date:
> 
> [bsergean@apouh bsergean]$ lslpp -L | grep vac.C
>  vac.C                      7.0.0.2    C     F    IBM XL C Compiler
>  vac.C.readme.ibm           7.0.0.0    C     F    IBM XL C iFOR/LS 
> Information
> 
> While on the webpage the patch contains vac.C.7.0.0.9
> [...]
> I'll try to install that and see what happens.

Let us know if it helps!

--
 [ signature omitted ] 

Message 7 in thread

Damned this gmail reply .... sorry again for the personal repply ... :(

---------- Forwarded message ----------
From: Benjamin Sergeant <bsergean@xxxxxxxxx>
Date: Apr 13, 2007 4:03 PM
Subject: Re: Fwd: Qt-4.2.3 fails to build with mkspec = aix-xlc
To: Dimitri <dimitri@xxxxxxxxxxxxx>


From a lslpp -L | more:

  vacpp.cmp.aix50.lib        7.0.0.5    C     F    IBM XL C/C++
Libraries for AIX
                                                   5.0
  vacpp.cmp.aix50.tools      7.0.0.0    C     F    IBM XL C/C++ Tools
for AIX 5.0
  vacpp.cmp.core             7.0.0.9    C     F    IBM XL C/C++ Compiler
  vacpp.cmp.include          7.0.0.8    C     F    IBM XL C/C++ Compiler Include
                                                   Files

I think I have a fairly recent xlC now, but still.... I got my error with 4.2.3:

make[2]: Entering directory
`/home/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib'
xlC_r -c -+ -qstrict -g -qthreaded  -DQT_SHARED -DQT_BUILD_CORE_LIB
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT
-DQT_MOC_COMPAT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I../../mkspecs/aix-xlc -I. -I../../include -I../../include/QtCore
-Iglobal -I.moc/debug-shared -I.uic/debug-shared -o
.obj/debug-shared/qglobal.o global/qglobal.cpp
"global/qglobal.cpp", line 958.13: 1540-0400 (S) "qVersion()" has a
conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1124.27: 1540-0424 (I) "qVersion" is declared on line 1124 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2600.13: 1540-0400 (S) "qInstallPath()" has
a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1802.39: 1540-0424 (I) "qInstallPath" is declared on line 1802 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2604.13: 1540-0400 (S) "qInstallPathDocs()"
has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1803.39: 1540-0424 (I) "qInstallPathDocs" is declared on line 1803 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2608.13: 1540-0400 (S)
"qInstallPathHeaders()" has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1804.39: 1540-0424 (I) "qInstallPathHeaders" is declared on line 1804
of "../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2612.13: 1540-0400 (S) "qInstallPathLibs()"
has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1805.39: 1540-0424 (I) "qInstallPathLibs" is declared on line 1805 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2616.13: 1540-0400 (S) "qInstallPathBins()"
has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1806.39: 1540-0424 (I) "qInstallPathBins" is declared on line 1806 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2620.13: 1540-0400 (S)
"qInstallPathPlugins()" has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1807.39: 1540-0424 (I) "qInstallPathPlugins" is declared on line 1807
of "../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2624.13: 1540-0400 (S) "qInstallPathData()"
has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1808.39: 1540-0424 (I) "qInstallPathData" is declared on line 1808 of
"../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2628.13: 1540-0400 (S)
"qInstallPathTranslations()" has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1809.39: 1540-0424 (I) "qInstallPathTranslations" is declared on line
1809 of "../../include/QtCore/../../src/corelib/global/qglobal.h".
"global/qglobal.cpp", line 2632.13: 1540-0400 (S)
"qInstallPathSysconf()" has a conflicting declaration.
"../../include/QtCore/../../src/corelib/global/qglobal.h", line
1810.39: 1540-0424 (I) "qInstallPathSysconf" is declared on line 1810
of "../../include/QtCore/../../src/corelib/global/qglobal.h".
make[2]: *** [.obj/debug-shared/qglobal.o] Error 1
make[2]: Leaving directory
`/home/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib'
make[1]: *** [sub-corelib-make_default] Error 2
make[1]: Leaving directory `/home/bsergean/src/qt-x11-opensource-src-4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2

and with 4.3.0 I still have my missing symbols ...

ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_int
ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_acquire_int
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: *** [../../lib/libQtCore.so.4.3.0] Error 8


Thanks for your support !
Benjamin.








On 4/12/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > Maybe I'm not that up to date:
> >
> > [bsergean@apouh bsergean]$ lslpp -L | grep vac.C
> >  vac.C                      7.0.0.2    C     F    IBM XL C Compiler
> >  vac.C.readme.ibm           7.0.0.0    C     F    IBM XL C iFOR/LS
> > Information
> >
> > While on the webpage the patch contains vac.C.7.0.0.9
> > [...]
> > I'll try to install that and see what happens.
>
> Let us know if it helps!
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ] 

Message 8 in thread

Hi,

> I think I have a fairly recent xlC now, but still.... I got my error 
> with 4.2.3:
> [...]
> make[2]: Entering directory
> `/home/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib'
> xlC_r -c -+ -qstrict -g -qthreaded  -DQT_SHARED -DQT_BUILD_CORE_LIB
> -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT
> -DQT_MOC_COMPAT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> -I../../mkspecs/aix-xlc -I. -I../../include -I../../include/QtCore
> -Iglobal -I.moc/debug-shared -I.uic/debug-shared -o
> .obj/debug-shared/qglobal.o global/qglobal.cpp
> "global/qglobal.cpp", line 958.13: 1540-0400 (S) "qVersion()" has a
> conflicting declaration.
> "../../include/QtCore/../../src/corelib/global/qglobal.h", line
> 1124.27: 1540-0424 (I) "qVersion" is declared on line 1124 of
> [...]

This seems to be a problem with visibility:

* In qglobal.h, qVersion() is declared as:
   Q_CORE_EXPORT const char *qVersion()

* In qglobal.cpp, qVersion() is defined as:
   const char *qVersion()

In this case Q_CORE_EXPORT is defined as:
   __attribute__((visibility("default")))
As far as I can see, this is a problem in the way xlC handles symbol 
visibility: it requires to decorate the implementation as well as the 
declaration. Anyway, this seems to have been worked around in Qt 4.3.

Go to file src/corelib/global/qconfig.h and remove a line that should look 
like this:
   #define QT_VISIBILITY_AVAILABLE
Do that *right* after running configure.

Alternatively copy file config.tests/unix/fvisibility.test from Qt 4.3 before 
running configure.


> and with 4.3.0 I still have my missing symbols ...
> 
> ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_int
> ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_acquire_int

This has been fixed in snapshots.

--
 [ signature omitted ] 

Message 9 in thread

That was it. Removing the #define QT_VISIBILITY_AVAILABLE got rid of
the compile error on AIX.
Good catch !

I haven't try the latest snapshot for the missing symbols yet.

Thanks,
Benjamin.

On 4/13/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > I think I have a fairly recent xlC now, but still.... I got my error
> > with 4.2.3:
> > [...]
> > make[2]: Entering directory
> > `/home/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib'
> > xlC_r -c -+ -qstrict -g -qthreaded  -DQT_SHARED -DQT_BUILD_CORE_LIB
> > -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT
> > -DQT_MOC_COMPAT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> > -I../../mkspecs/aix-xlc -I. -I../../include -I../../include/QtCore
> > -Iglobal -I.moc/debug-shared -I.uic/debug-shared -o
> > .obj/debug-shared/qglobal.o global/qglobal.cpp
> > "global/qglobal.cpp", line 958.13: 1540-0400 (S) "qVersion()" has a
> > conflicting declaration.
> > "../../include/QtCore/../../src/corelib/global/qglobal.h", line
> > 1124.27: 1540-0424 (I) "qVersion" is declared on line 1124 of
> > [...]
>
> This seems to be a problem with visibility:
>
> * In qglobal.h, qVersion() is declared as:
>    Q_CORE_EXPORT const char *qVersion()
>
> * In qglobal.cpp, qVersion() is defined as:
>    const char *qVersion()
>
> In this case Q_CORE_EXPORT is defined as:
>    __attribute__((visibility("default")))
> As far as I can see, this is a problem in the way xlC handles symbol
> visibility: it requires to decorate the implementation as well as the
> declaration. Anyway, this seems to have been worked around in Qt 4.3.
>
> Go to file src/corelib/global/qconfig.h and remove a line that should look
> like this:
>    #define QT_VISIBILITY_AVAILABLE
> Do that *right* after running configure.
>
> Alternatively copy file config.tests/unix/fvisibility.test from Qt 4.3 before
> running configure.
>
>
> > and with 4.3.0 I still have my missing symbols ...
> >
> > ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_int
> > ld: 0711-317 ERROR: Undefined symbol: .q_atomic_fetch_and_add_acquire_int
>
> This has been fixed in snapshots.
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

--
 [ signature omitted ]