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 = hp-acc


Message 1 in thread

[bsergean@homer qmake]$ aCC -V
aCC: HP ANSI C++ B3910B A.03.50
[bsergean@homer qmake]$ uname -a
HP-UX homer B.11.00 A 9000/785 2003527556 two-user license

qmake cannot build itself, right after configure:

aCC -c -o project.o -AA +DAportable -w -D__STRICT_ANSI__
-D_HPUX_SOURCE -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators
-Igenerators/unix -Igenerators/win32 -Igenerators/mac
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib/arch/generic
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib/global
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/3rdparty/md5
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL
-DQT_BUILD_QMAKE -DQT_NO_COMPRESS
-I/user/bsergean/src/qt-x11-opensource-src-4.2.3/mkspecs/hpux-acc
-DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT
 project.cpp
Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore/../../src/corelib/global/qglobal.h",
line 606 # '<type name>' expected before '>'.
    template <int> class QUintForSize    { private: typedef void    Type; };
                 ^
Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore/../../src/corelib/global/qglobal.h",
line 612 # '<type name>' expected before '>'.
    template <int> class QIntForSize    { private: typedef void   Type; };


The problematic code seems to be:
/*
  quintptr and qptrdiff is guaranteed to be the same size as a pointer, i.e.

      sizeof(void *) == sizeof(quintptr)
      && sizeof(void *) == sizeof(qptrdiff)
*/
template <int> class QUintForSize    { private: typedef void    Type; };
template <>    class QUintForSize<4> { public:  typedef quint32 Type; };
template <>    class QUintForSize<8> { public:  typedef quint64 Type; };
template <typename T> class QUintForType : public QUintForSize<sizeof(T)> { };
typedef QUintForType<void *>::Type quintptr;


Does anyone has any clue on this ?

Thanks a lot Trolls,
Benjamin.

--
 [ signature omitted ] 

Message 2 in thread

It does not work either in Qt-4.3-beta...

[bsergean@homer qt-x11-opensource-src-4.3.0beta]$ ./configure

This is the Qt/X11 Open Source Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
aCC -c -o project.o -AA +DAportable -w -D__STRICT_ANSI__
-D_HPUX_SOURCE -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators
-Igenerators/unix -Igenerators/win32 -Igenerators/mac
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/src/corelib/arch/generic
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/include
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/include/QtCore
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/include
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/include/QtCore
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/src/corelib/global
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/src/script
-DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS
-I/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/mkspecs/hpux-acc
-DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT
 project.cpp
Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/include/QtCore/../../src/corelib/global/qglobal.h",
line 613 # '<type name>'
    expected before '>'.
    template <int> class QUintForSize    { private: typedef void    Type; };
                 ^
Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.3.0beta/include/QtCore/../../src/corelib/global/qglobal.h",
line 619 # '<type name>'
    expected before '>'.
    template <int> class QIntForSize    { private: typedef void   Type; };
                 ^
gmake: *** [project.o] Error 2



Benjamin.



On 4/9/07, Benjamin Sergeant <bsergean@xxxxxxxxx> wrote:
> [bsergean@homer qmake]$ aCC -V
> aCC: HP ANSI C++ B3910B A.03.50
> [bsergean@homer qmake]$ uname -a
> HP-UX homer B.11.00 A 9000/785 2003527556 two-user license
>
> qmake cannot build itself, right after configure:
>
> aCC -c -o project.o -AA +DAportable -w -D__STRICT_ANSI__
> -D_HPUX_SOURCE -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators
> -Igenerators/unix -Igenerators/win32 -Igenerators/mac
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib/arch/generic
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib/global
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/3rdparty/md5
> -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL
> -DQT_BUILD_QMAKE -DQT_NO_COMPRESS
> -I/user/bsergean/src/qt-x11-opensource-src-4.2.3/mkspecs/hpux-acc
> -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT
>  project.cpp
> Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore/../../src/corelib/global/qglobal.h",
> line 606 # '<type name>' expected before '>'.
>     template <int> class QUintForSize    { private: typedef void    Type; };
>                  ^
> Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore/../../src/corelib/global/qglobal.h",
> line 612 # '<type name>' expected before '>'.
>     template <int> class QIntForSize    { private: typedef void   Type; };
>
>
> The problematic code seems to be:
> /*
>   quintptr and qptrdiff is guaranteed to be the same size as a pointer, i.e.
>
>       sizeof(void *) == sizeof(quintptr)
>       && sizeof(void *) == sizeof(qptrdiff)
> */
> template <int> class QUintForSize    { private: typedef void    Type; };
> template <>    class QUintForSize<4> { public:  typedef quint32 Type; };
> template <>    class QUintForSize<8> { public:  typedef quint64 Type; };
> template <typename T> class QUintForType : public QUintForSize<sizeof(T)> { };
> typedef QUintForType<void *>::Type quintptr;
>
>
> Does anyone has any clue on this ?
>
> Thanks a lot Trolls,
> Benjamin.
>

--
 [ signature omitted ] 

Message 3 in thread

Hi,

> [bsergean@homer qmake]$ aCC -V
> aCC: HP ANSI C++ B3910B A.03.50

You might want to try with a more recent compiler. I seem to recall current 
versions of Qt build fine with:
	$ aCC -V
	aCC: HP ANSI C++ B3910B A.03.57
	$

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html

--
 [ signature omitted ] 

Message 4 in thread

A.03.55 seems to be the latest update for HP-UX 11.00 ...
I will give it a try and see what happens anyway !

On 4/11/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > [bsergean@homer qmake]$ aCC -V
> > aCC: HP ANSI C++ B3910B A.03.50
>
> You might want to try with a more recent compiler. I seem to recall current
> versions of Qt build fine with:
>         $ aCC -V
>         aCC: HP ANSI C++ B3910B A.03.57
>         $
>
> http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html
>
> --
> 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 5 in thread

I have upgraded to A.03.52 thanks to the HP website and I don't have
this error while building qmake anymore.

Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore/../../src/corelib/global/qglobal.h",
line 606 # '<type name>' expected before '>'.
   template <int> class QUintForSize    { private: typedef void    Type; };
                ^
Error 20: "/user/bsergean/src/qt-x11-opensource-src-4.2.3/include/QtCore/../../src/corelib/global/qglobal.h",
line 612 # '<type name>' expected before '>'.
   template <int> class QIntForSize    { private: typedef void   Type; };


But I still have the one with qatomic.cpp ....
I don't know how to upgrade to version 55 (or 56) (I think I can't and
I need a CD from HP) ...

Thanks,
Benjamin.






On 4/11/07, Benjamin Sergeant <bsergean@xxxxxxxxx> wrote:
> A.03.55 seems to be the latest update for HP-UX 11.00 ...
> I will give it a try and see what happens anyway !
>
> On 4/11/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> > Hi,
> >
> > > [bsergean@homer qmake]$ aCC -V
> > > aCC: HP ANSI C++ B3910B A.03.50
> >
> > You might want to try with a more recent compiler. I seem to recall current
> > versions of Qt build fine with:
> >         $ aCC -V
> >         aCC: HP ANSI C++ B3910B A.03.57
> >         $
> >
> > http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html
> >
> > --
> > 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,

> But I still have the one with qatomic.cpp ....
> I don't know how to upgrade to version 55 (or 56) (I think I can't and
> I need a CD from HP) ...

I may have missed it, but I think you haven't posted this error.

Could you show us the error message?

--
 [ signature omitted ] 

Message 7 in thread

Sure. Looks like it's always the same, with 4.1.5, 4.0.1, and 4.23.

[bsergean@homer qt-x11-opensource-src-4.2.3]$ make
cd src && make -f Makefile
make[1]: Entering directory `/user/bsergean/src/qt-x11-opensource-src-4.2.3/src'
cd tools/moc && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/tools/moc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/tools/moc'
cd tools/rcc && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/tools/rcc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/tools/rcc'
cd tools/uic && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/tools/uic'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/tools/uic'
cd corelib && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib'
aCC -c -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE +O1
-D_POSIX_C_SOURCE=199506L +Z  -DQT_SHARED -DQT_BUILD_CORE_LIB
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT
-DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I../../mkspecs/hpux-acc -I. -I../../include
-I../../include/QtCore -Iglobal -I.moc/release-shared
-I.uic/release-shared -o .obj/release-shared/qatomic.o
arch/parisc/qatomic.cpp
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1206 # Unexpected 'qt_error_string'.
    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
                          ^^^^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1285 # Unexpected 'qInstallMsgHandler'.
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                               ^^^^^^^^^^^^^^^^^^
Error 173: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1285 # Redefined symbol 'QtMsgHandler'; previously
    defined at ["../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1284].
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                  ^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1781 # Unexpected 'qgetenv'.
    Q_CORE_EXPORT QByteArray qgetenv(const char *varName);
                             ^^^^^^^
Error 422: "../../include/QtCore/../../src/corelib/tools/qchar.h",
line 214 # 'QString' is used as a type, but has not been
    defined as a type. Perhaps you meant 'QString' as in class QString
    ["../../include/QtCore/../../src/corelib/tools/qchar.h", line 33].
        QString decomposition() const;
        ^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
293 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
294 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
66 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
66 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                                              ^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
67 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QString &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
67 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QString &key);
                                           ^
Warning:        9 future errors were detected and suppressed. Either
remove the '-w' option or add a '+p' option to detect and fix them
before they become fatal errors in a future release.
make[2]: *** [.obj/release-shared/qatomic.o] Error 2
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/src/corelib'
make[1]: *** [sub-corelib-make_default] Error 2
make[1]: Leaving directory `/user/bsergean/src/qt-x11-opensource-src-4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2
[bsergean@homer qt-x11-opensource-src-4.2.3]$
[bsergean@homer qt-x11-opensource-src-4.2.3]$
[bsergean@homer qt-x11-opensource-src-4.2.3]$
[bsergean@homer qt-x11-opensource-src-4.2.3]$
[bsergean@homer qt-x11-opensource-src-4.2.3]$
[bsergean@homer qt-x11-opensource-src-4.2.3]$
[bsergean@homer qt-x11-opensource-src-4.2.3]$ cd ../qt-x11-opensource-src-4.0.1/
[bsergean@homer qt-x11-opensource-src-4.0.1]$ make
cd src && make
make[1]: Entering directory `/user/bsergean/src/qt-x11-opensource-src-4.0.1/src'
cd tools/moc && make
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/tools/moc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/tools/moc'
cd tools/rcc && make
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/tools/rcc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/tools/rcc'
cd tools/uic && make
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/tools/uic'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/tools/uic'
cd corelib && make
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/corelib'
make -f Makefile.Debug all
make[3]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/corelib'
aCC -c -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -g
-D_POSIX_C_SOURCE=199506L +Z -DQT_SHARED
-DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_CORE_LIB
-DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/hpux-acc -I.
-I../../include -I../../include/QtCore -Iglobal -I../3rdparty/zlib
-I.moc/debug-shared -I. -o .obj/debug-shared/qatomic.o
arch/parisc/qatomic.cpp
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1061 # Unexpected 'qt_error_string'.
    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
                          ^^^^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1127 # Unexpected 'qInstallMsgHandler'.
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                               ^^^^^^^^^^^^^^^^^^
Error 173: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1127 # Redefined symbol 'QtMsgHandler'; previously
    defined at ["../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1126].
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                  ^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1581 # Unexpected 'qgetenv'.
    Q_CORE_EXPORT QByteArray qgetenv(const char *varName);
                             ^^^^^^^
Error 422: "../../include/QtCore/../../src/corelib/tools/qchar.h",
line 212 # 'QString' is used as a type, but has not been
    defined as a type. Perhaps you meant 'QString' as in class QString
    ["../../include/QtCore/../../src/corelib/tools/qchar.h", line 31].
        QString decomposition() const;
        ^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
291 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
292 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
63 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
63 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                                              ^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
64 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QString &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
64 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QString &key);
                                           ^
Warning:        9 future errors were detected and suppressed. Either
remove the '-w' option or add a '+p' option to detect and fix them
before they become fatal errors in a future release.
make[3]: *** [.obj/debug-shared/qatomic.o] Error 2
make[3]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/corelib'
make[2]: *** [debug-all] Error 2
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.0.1/src/corelib'
make[1]: *** [sub-corelib-make_default-ordered] Error 2
make[1]: Leaving directory `/user/bsergean/src/qt-x11-opensource-src-4.0.1/src'
make: *** [sub-src-make_default-ordered] Error 2
[bsergean@homer qt-x11-opensource-src-4.0.1]$ cd ../qt-x11-opensource-src-4.1.5/
[bsergean@homer qt-x11-opensource-src-4.1.5]$
[bsergean@homer qt-x11-opensource-src-4.1.5]$ make
cd src && make -f Makefile
make[1]: Entering directory `/user/bsergean/src/qt-x11-opensource-src-4.1.5/src'
cd tools/moc && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/tools/moc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/tools/moc'
cd tools/rcc && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/tools/rcc'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/tools/rcc'
cd tools/uic && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/tools/uic'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/tools/uic'
cd corelib && make -f Makefile
make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
make -f Makefile.Debug all
make[3]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
aCC -c -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -g
-D_POSIX_C_SOURCE=199506L +Z  -DQT_SHARED -DQT_BUILD_CORE_LIB
-DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/hpux-acc -I.
-I../../include -I../../include/QtCore -Iglobal -I.moc/debug-shared
-I. -o .obj/debug-shared/qatomic.o arch/parisc/qatomic.cpp
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1120 # Unexpected 'qt_error_string'.
    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
                          ^^^^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1186 # Unexpected 'qInstallMsgHandler'.
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                               ^^^^^^^^^^^^^^^^^^
Error 173: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1186 # Redefined symbol 'QtMsgHandler'; previously
    defined at ["../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1185].
    Q_CORE_EXPORT QtMsgHandler qInstallMsgHandler(QtMsgHandler);
                  ^^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/global/qglobal.h",
line 1680 # Unexpected 'qgetenv'.
    Q_CORE_EXPORT QByteArray qgetenv(const char *varName);
                             ^^^^^^^
Error 422: "../../include/QtCore/../../src/corelib/tools/qchar.h",
line 214 # 'QString' is used as a type, but has not been
    defined as a type. Perhaps you meant 'QString' as in class QString
    ["../../include/QtCore/../../src/corelib/tools/qchar.h", line 33].
        QString decomposition() const;
        ^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
293 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qchar.h", line
294 # Unexpected 'QDataStream'.
    Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QChar &);
                  ^^^^^^^^^^^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
65 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
65 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QByteArray &key);
                                              ^
Error 19: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
66 # Unexpected 'uint'.
    Q_CORE_EXPORT uint qHash(const QString &key);
                  ^^^^
Error 22: "../../include/QtCore/../../src/corelib/tools/qhash.h", line
66 # Syntax error.
    Q_CORE_EXPORT uint qHash(const QString &key);
                                           ^
Warning:        9 future errors were detected and suppressed. Either
remove the '-w' option or add a '+p' option to detect and fix them
before they become fatal errors in a future release.
make[3]: *** [.obj/debug-shared/qatomic.o] Error 2
make[3]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
make[2]: *** [debug-all] Error 2
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.1.5/src/corelib'
make[1]: *** [sub-corelib-make_default-ordered] Error 2
make[1]: Leaving directory `/user/bsergean/src/qt-x11-opensource-src-4.1.5/src'
make: *** [sub-src-make_default-ordered] Error 2




On 4/12/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > But I still have the one with qatomic.cpp ....
> > I don't know how to upgrade to version 55 (or 56) (I think I can't and
> > I need a CD from HP) ...
>
> I may have missed it, but I think you haven't posted this error.
>
> Could you show us the error message?
>
> --
> 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,

> Sure. Looks like it's always the same, with 4.1.5, 4.0.1, and 4.23.
> [...]
> line 1206 # Unexpected 'qt_error_string'.
>    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
>                          ^^^^^^^^^^^^^^^
> [...]

It could be the same problem as on AIX: the visibility attribute. If so it has 
been fixed in t 4.3.0.

Try the same trick as for AIX:

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.

--
 [ signature omitted ] 

Message 9 in thread

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

Thanks,
Benjamin.


On 4/13/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> Hi,
>
> > Sure. Looks like it's always the same, with 4.1.5, 4.0.1, and 4.23.
> > [...]
> > line 1206 # Unexpected 'qt_error_string'.
> >    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
> >                          ^^^^^^^^^^^^^^^
> > [...]
>
> It could be the same problem as on AIX: the visibility attribute. If so it has
> been fixed in t 4.3.0.
>
> Try the same trick as for AIX:
>
> 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.
>
> --
> 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 10 in thread

I have another problem when building the qtestlib thought.
I removed the qtestlib from the tools directory (which remind me that
the porting did not compiled either on IRIX (always with qt-4.2.3) to
keep going.

Thanks,
Benjamin.

make[2]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/tools/qtestlib'
cd src && make -f Makefile
make[3]: Entering directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/tools/qtestlib/src'
aCC -c -AA +DAportable -w -D__STRICT_ANSI__ -D_HPUX_SOURCE -g
-D_POSIX_C_SOURCE=199506L +Z  -DQT_SHARED -DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII -DQTESTLIB_MAKEDLL -DQT_NO_DATASTREAM
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB
-I../../../mkspecs/hpux-acc -I. -I../../../include/QtCore
-I../../../include/QtCore -I../../../include -I. -Itmp-debug-shared
-I.uic/debug-shared -o .obj/debug-shared/qtestcase.o qtestcase.cpp
Error 711: "qtestcase.cpp", line 1419 # There is no matching
declaration for 'bool qCompare<float>(const float &,const float
&,const char
    *,const char *,const char *,int)' in namespace "namespace QTest".
    bool QTest::qCompare<float>(float const &t1, float const &t2, const c
         ^^^^^^^^^^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1432 # There is no matching
declaration for 'bool qCompare<double>(const double &,const double
&,const char
    *,const char *,const char *,int)' in namespace "namespace QTest".
    bool QTest::qCompare<double>(double const &t1, double const &t2, cons
         ^^^^^^^^^^^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1449 # There is no matching
declaration for 'char *toString<short>(const short &)' in namespace
"namespace
    QTest".
    COMPARE_IMPL2(short, %hd)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1450 # There is no matching
declaration for 'char *toString<unsigned short>(const unsigned short
&)' in
    namespace "namespace QTest".
    COMPARE_IMPL2(ushort, %hu)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1451 # There is no matching
declaration for 'char *toString<int>(const int &)' in namespace
"namespace
    QTest".
    COMPARE_IMPL2(int, %d)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1452 # There is no matching
declaration for 'char *toString<unsigned int>(const unsigned int &)'
in namespace
    "namespace QTest".
    COMPARE_IMPL2(uint, %u)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1453 # There is no matching
declaration for 'char *toString<long>(const long &)' in namespace
"namespace
    QTest".
    COMPARE_IMPL2(long, %ld)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1454 # There is no matching
declaration for 'char *toString<unsigned long>(const unsigned long &)'
in
    namespace "namespace QTest".
    COMPARE_IMPL2(ulong, %lu)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1455 # There is no matching
declaration for 'char *toString<long long>(const long long &)' in
namespace
    "namespace QTest".
    COMPARE_IMPL2(qint64, %lld)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1456 # There is no matching
declaration for 'char *toString<unsigned long long>(const unsigned
long long &)'
    in namespace "namespace QTest".
    COMPARE_IMPL2(quint64, %llu)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1457 # There is no matching
declaration for 'char *toString<bool>(const bool &)' in namespace
"namespace
    QTest".
    COMPARE_IMPL2(bool, %d)
    ^^^^^^^^^^^^^
Error 711: "qtestcase.cpp", line 1458 # There is no matching
declaration for 'char *toString<char>(const char &)' in namespace
"namespace
    QTest".
    COMPARE_IMPL2(char, %c)
    ^^^^^^^^^^^^^
Error 699: "qtestcase.cpp", line 1458 # Error limit reached; halting
compilation.
    COMPARE_IMPL2(char, %c)
    ^^^^^^^^^^^^^
make[3]: *** [.obj/debug-shared/qtestcase.o] Error 2
make[3]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/tools/qtestlib/src'
make[2]: *** [sub-src-make_default-ordered] Error 2
make[2]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/tools/qtestlib'
make[1]: *** [sub-qtestlib-make_default-ordered] Error 2
make[1]: Leaving directory
`/user/bsergean/src/qt-x11-opensource-src-4.2.3/tools'
make: *** [sub-tools-make_default-ordered] Error 2


On 4/16/07, Benjamin Sergeant <bsergean@xxxxxxxxx> wrote:
> That was it. Removing the #define QT_VISIBILITY_AVAILABLE got rid of
> the compile error on HP.
> Good catch !
>
> Thanks,
> Benjamin.
>
>
> On 4/13/07, Dimitri <dimitri@xxxxxxxxxxxxx> wrote:
> > Hi,
> >
> > > Sure. Looks like it's always the same, with 4.1.5, 4.0.1, and 4.23.
> > > [...]
> > > line 1206 # Unexpected 'qt_error_string'.
> > >    Q_CORE_EXPORT QString qt_error_string(int errorCode = -1);
> > >                          ^^^^^^^^^^^^^^^
> > > [...]
> >
> > It could be the same problem as on AIX: the visibility attribute. If so it has
> > been fixed in t 4.3.0.
> >
> > Try the same trick as for AIX:
> >
> > 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.
> >
> > --
> > 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 11 in thread

Hi,

> I have another problem when building the qtestlib thought.
> I removed the qtestlib from the tools directory (which remind me that
> the porting did not compiled either on IRIX (always with qt-4.2.3) to
> keep going.

I seem to recall such an issue on IRIX. Did you try upgrading the compiler?

> [...]
> Error 711: "qtestcase.cpp", line 1419 # There is no matching
> declaration for 'bool qCompare<float>(const float &,const float
> &,const char
>    *,const char *,const char *,int)' in namespace "namespace QTest".
>    bool QTest::qCompare<float>(float const &t1, float const &t2, const c
>         ^^^^^^^^^^^^^^^^^^^^^^


I do find a qCompare() declaration in qtestcase.h and and it does match this 
signature:
	bool qCompare<float>(const float &, const float &,
	                     const char *, const char *, const char *, int)

For example in qtestcase.h:
	template <typename T>
	inline bool qCompare(T const &t1, T const &t2,
	                     const char *actual, [...]);
and there's even a declaration for a <float> specialization:
	template <>
	Q_TESTLIB_EXPORT bool qCompare<float>(float const &t1, float const&t2,
                                               const char *actual, [...]);

Could you try reducing that to a minimal test case? A way to do that would be 
to pre-process the source file (usually -E option instead of -c) and then 
slowly trying to remove whatever's not useful to reproduce the problem. The 
whole process could take 1 hour or so, but it's a good way to characterize the 
bug and find whether this is a compiler issue, which version of the compiler 
has the problem, and eventually ask HP to help.

--
 [ signature omitted ]