LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2019, 10:39 PM   #1
dedec0
Member
 
Registered: May 2007
Posts: 948

Rep: Reputation: 31
Installing Qt free version 3.3.8 -> what is wrong here?


Hello,

I am trying to compile Qt version 3.3.8 here. Yes, it is fairly old, but i have a private project i want to compile in it, so i need the Qt environment good for that.

Before installing it for real, i am playing in RAM with it. There are things i always use in RAM only, so i have some folders created and populated at every computer reboot.

First, i downloaded https://download.qt.io/archive/qt/3/...-3.3.8.tar.bz2 to /dev/shm/ folder and extracted the contents to /dev/shm/local/

After that, i opened file /dev/shm/local/qt-x11-free-3.3.8/INSTALL in a separate tab, to follow its instructions. The commands and outputs of what i did, and a few comments i wrote now, are below, except some removed output that i had to make since LQ posts cannot be too long. The full terminal output i wanted to show is here:

https://filebin.net/xm1mvk38f97ds1j6/t2.sh?t=ra8tmvuh

Code:
2019.09.15 23:19:54 [  1] me@here: /dev/shm/local
$ ln -s qt-x11-free-3.3.8/ qt

2019.09.15 23:20:59 [  0] me@here: /dev/shm/local
$ # Qt assumes that Qt is installed in /usr/local/qt... can i install it
  # anywhere different, like doing here?

2019.09.15 23:21:35 [  0] me@here: /dev/shm/local
$ vim ~/.bashrc; source ~/.bashrc
# Edited and sourced ~/.bashrc files to makes these changes:
#     export QTDIR=/dev/shm/local/qt
#     export PATH=$QTDIR/bin:$PATH:/dev/shm/.raiz/bin
#     export MANPATH=$QTDIR/doc/man:/usr/share/man
#     export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH:/usr/local/lib

2019.09.15 23:21:35 [  0] me@here: /dev/shm/local
$ cd qt

2019.09.15 23:34:26 [  0] me@here: /dev/shm/local/qt
$ ./configure --prefix="/dev/shm/.raiz/" -shared -qt-gif -thread -ipv6 -verbose
-continue -xkb
IBASE auto-detection...
  Could not find libgds.* anywhere in /lib /usr/lib
IBASE disabled.
MySQL auto-detection...
  Could not find libmysqlclient.* anywhere in /lib /usr/lib
MySQL disabled.
ODBC auto-detection...
  Could not find libodbc.* anywhere in /lib /usr/lib
ODBC disabled.
PostgreSQL auto-detection...
  Could not find libpq.* anywhere in /lib /usr/lib
PostgreSQL disabled.
NIS auto-detection... ()
NIS disabled.
CUPS auto-detection... ()
CUPS disabled.
OpenGL auto-detection... ()
  Could not find GLU lib anywhere in  /usr/X11R6/lib /usr/X11R6/lib /usr/shlib
/usr/lib /lib
OpenGL disabled.
Xcursor auto-detection... ()
  Could not find Xcursor lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib
/lib
Xcursor disabled.
XRandR auto-detection... ()
  Could not find XRandR lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib /lib
XRandR disabled.
XRender auto-detection... ()
  Could not find XRender lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib
/lib
XRender disabled.
Session Management auto-detection... ()
  Found X11/SM/SM.h in /usr/include
Session Management enabled.
XShape auto-detection... ()
  Found X11/extensions/shape.h in /usr/include
XShape enabled.
Xinerama auto-detection... ()
  Could not find Xinerama lib anywhere in  /usr/X11R6/lib /usr/shlib /usr/lib
/lib
Xinerama disabled.
XKB auto-detection... ()
  Found X11/XKBlib.h in /usr/include
  XkbSetPerClientControls found.
XKB enabled.

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...
g++ -c -o project.o -pipe -I. -Igenerators -Igenerators/unix -Igenerators/win32
-Igenerators/mac -I/dev/shm/local/qt-x11-free-3.3.8/include/qmake
-I/dev/shm/local/qt-x11-free-3.3.8/include
-I/dev/shm/local/qt-x11-free-3.3.8/include -DQT_NO_TEXTCODEC
-DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP
project.cpp
g++ -c -o property.o -pipe -I. -Igenerators -Igenerators/unix -Igenerators/win32
-Igenerators/mac -I/dev/shm/local/qt-x11-free-3.3.8/include/qmake
-I/dev/shm/local/qt-x11-free-3.3.8/include
-I/dev/shm/local/qt-x11-free-3.3.8/include -DQT_NO_TEXTCODEC
-DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP
property.cpp

 [...]

  for /dev/shm/local/qt-x11-free-3.3.8/examples/thread/prodcons/prodcons.pro
(linux-g++)
/dev/shm/local/qt-x11-free-3.3.8/bin/qmake  -spec
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -o
/dev/shm/local/qt-x11-free-3.3.8/./examples/thread/prodcons
 [...]

  for /dev/shm/local/qt-x11-free-3.3.8/tools/qvfb/qvfb.pro (linux-g++)
/dev/shm/local/qt-x11-free-3.3.8/bin/qmake  -spec
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -o
/dev/shm/local/qt-x11-free-3.3.8/./tools/qvfb
/dev/shm/local/qt-x11-free-3.3.8/tools/qvfb/qvfb.pro
  for /dev/shm/local/qt-x11-free-3.3.8/qmake/examples/precompile/precompile.pro
(linux-g++)
/dev/shm/local/qt-x11-free-3.3.8/bin/qmake  -spec
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -o
/dev/shm/local/qt-x11-free-3.3.8/./qmake/examples/precompile
/dev/shm/local/qt-x11-free-3.3.8/qmake/examples/precompile/precompile.pro

Qt is now configured for building. Just run /usr/bin/make.
To reconfigure, run /usr/bin/make confclean and configure.

2019.09.15 23:35:23 [  0] me@here: /dev/shm/local/qt
$ make
make[1]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8'
cd qmake && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
make[2]: 'qmake' is up to date.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
cd src/moc && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'

[...]

g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qptrcollection.o ../tools/qptrcollection.cpp

[...]

g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qdatetime.o ../tools/qdatetime.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qdatetime.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qfile.o ../tools/qfile.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfile.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qdir.o ../tools/qdir.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qdir.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qfileinfo.o ../tools/qfileinfo.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfileinfo.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qgarray.o ../tools/qgarray.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qgdict.o ../tools/qgdict.cpp
../tools/qgdict.cpp: In member function ‘QDataStream&
QGDict::read(QDataStream&)’:
../tools/qgdict.cpp:950:22: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
    look_ptr( (void *)k, d, op_insert );
                      ^
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qglist.o ../tools/qglist.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qglobal.o ../tools/qglobal.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qglobal.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qgvector.o ../tools/qgvector.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qiodevice.o ../tools/qiodevice.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qregexp.o ../tools/qregexp.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qstring.o ../tools/qstring.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qlocale.o ../tools/qlocale.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qunicodetables.o ../tools/qunicodetables.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qstringlist.o ../tools/qstringlist.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qtextstream.o ../tools/qtextstream.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qbitarray.o ../tools/qbitarray.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qmap.o ../tools/qmap.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qgcache.o ../tools/qgcache.cpp

[...]

g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./moc_yacc.o moc_yacc.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from moc.y:58:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
moc.y: In function ‘int yyparse()’:
moc.y:908:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 decl_specifier:    storage_class_specifier { $$ = ""; }
                  ^~
moc.y:910:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | fct_specifier    { $$ = ""; }
                  ^~
moc.y:911:35: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | FRIEND    { skipFunc = TRUE; $$ = ""; }
                                   ^~
moc.y:912:35: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | TYPEDEF    { skipFunc = TRUE; $$ = ""; }
                                   ^~
moc.y:918:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 decl_specs_opt:   /* empty */   { $$ = ""; }
                  ^~
moc.y:936:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 type_specifier:    CONST   { $$ = "const"; }
                  ^~~~~~~
moc.y:937:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | VOLATILE  { $$ = "volatile"; }
                  ^~~~~~~~~~
moc.y:950:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 simple_type_name:   CHAR       { $$ = "char"; }
                  ^~~~~~
moc.y:951:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | SHORT       { $$ = "short"; }
                  ^~~~~~~
moc.y:952:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | INT       { $$ = "int"; }
                  ^~~~~
moc.y:953:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | LONG       { $$ = "long"; }
                  ^~~~~~
moc.y:954:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | SIGNED      { $$ = "signed"; }
                  ^~~~~~~~
moc.y:955:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | UNSIGNED      { $$ = "unsigned"; }
                  ^~~~~~~~~~
moc.y:956:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | FLOAT       { $$ = "float"; }
                  ^~~~~~~
moc.y:957:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | DOUBLE      { $$ = "double"; }
                  ^~~~~~~~
moc.y:958:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | VOID       { $$ = "void"; }
                  ^~~~~~
moc.y:974:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 class_key:    opt_template_spec CLASS { $$ = "class"; }
                  ^~~~~~~
moc.y:975:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | opt_template_spec STRUCT { $$ = "struct"; }
                  ^~~~~~~~
moc.y:1041:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 abstract_decl_opt:   /* empty */  { $$ = ""; }
                  ^~
moc.y:1061:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 declarator:    dname   { $$ = ""; }
                  ^~
moc.y:1106:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 ptr_operators_opt:    /* empty */  { $$ = ""; }
                  ^~
moc.y:1122:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 cv_qualifier_list_opt:  /* empty */ { $$ = ""; }
                  ^~
moc.y:1131:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
 cv_qualifier:    CONST   { $$ = "const"; }
                  ^~~~~~~
moc.y:1132:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | VOLATILE  { $$ = "volatile"; }
                  ^~~~~~~~~~
moc.y:1170:18: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
    | storage_class_specifier { $$ = ""; }
                  ^~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qfile_unix.o ../tools/qfile_unix.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfile_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qdir_unix.o ../tools/qdir_unix.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qdir_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT
-DQT_NO_STL -DQT_NO_COMPRESS
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include
-I../tools -I. -o ./qfileinfo_unix.o ../tools/qfileinfo_unix.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfileinfo_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
test -d ../../bin/ || mkdir -p ../../bin/
g++  -o ../../bin/moc ./qbuffer.o ./qptrcollection.o ./qcstring.o
./qdatastream.o ./qdatetime.o ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o
./qgdict.o ./qglist.o ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o
./qstring.o ./qlocale.o ./qunicodetables.o ./qstringlist.o ./qtextstream.o
./qbitarray.o ./qmap.o ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o
./qfile_unix.o ./qdir_unix.o ./qfileinfo_unix.o     
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
cd src && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src'
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -DQT_NO_NIS
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA
-DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE
-DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE
-DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng
-I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o
.obj/release-shared-mt/qtaddons_x11.o kernel/qtaddons_x11.cpp
/dev/shm/local/qt-x11-free-3.3.8/bin/moc kernel/qapplication_x11.cpp -o
.moc/release-shared-mt/qapplication_x11.moc
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -DQT_NO_NIS
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA
-DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE
-DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE
-DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng
-I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o
.obj/release-shared-mt/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**,
Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
                                                              ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
                                                                  ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int
QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
   bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&,
int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid
ambiguous ‘else’ [-Wparentheses]
     if (qt_use_rtl_extensions && type  == QEvent::KeyPress)
        ^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
   if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
                          ^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
   } else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
                                 ^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*,
XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
       ||    ev->type == ClientMessage
             ~~~~~~~~~~~~~~~~~~~~~~~~~
   && ev->xclient.message_type == qt_qt_scrolldone )
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared-mt/qapplication_x11.o'
failed
make[2]: *** [.obj/release-shared-mt/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2

2019.09.15 23:38:27 [  2] me@here: /dev/shm/local/qt
$
 
Old 09-15-2019, 10:42 PM   #2
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by dedec0 View Post
[...] The full terminal output i wanted to show is here:

https://filebin.net/xm1mvk38f97ds1j6/t2.sh?t=ra8tmvuh
I am saving the full output on my email. I can reupload it, if the above link ever becomes invalid.
 
Old 09-15-2019, 11:10 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,860

Rep: Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344Reputation: 1344
Please find the first error message (not warning).
 
Old 09-15-2019, 11:17 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,144

Rep: Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967Reputation: 3967
Have you considered just installing a older Linux distribution (one that ships Qt 3) in a VM?

https://mirrors.slackware.com/slackw...ware-12.2-iso/
 
Old 09-15-2019, 11:56 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,320

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
I have no idea

I fully expected the build to fail here

but it compiled just fine
I just did a straight ./configure;make

Debian Sid, g++9.2
 
Old 09-16-2019, 04:57 AM   #6
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by NevemTeve View Post
Please find the first error message (not warning).
Are there errors which do not write "error" in its message? In vim, i searched for "error", case insensitively, and the first ocurrence is on line 2447 of the output I linked above. I copy the output from the first "g++" occurrence before line 2447, which is line 2421, until the output end, which is line 2579.

Code:
[...]

g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC -DQT_SHARED -DQT_NO_DEBUG
-DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -DQT_NO_NIS
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA
-DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE
-DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_BUILTIN_GIF_READER=1
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE
-DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng
-I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o
.obj/release-shared-mt/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
                 from
/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**,
Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
                                                              ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*,
KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
                                                                  ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int
QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
   bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&,
int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid
ambiguous ‘else’ [-Wparentheses]
     if (qt_use_rtl_extensions && type  == QEvent::KeyPress)
        ^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
   if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
                          ^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
   } else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
                                 ^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*,
XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’
within ‘||’ [-Wparentheses]
       ||    ev->type == ClientMessage
             ~~~~~~~~~~~~~~~~~~~~~~~~~
   && ev->xclient.message_type == qt_qt_scrolldone )
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared-mt/qapplication_x11.o'
failed
make[2]: *** [.obj/release-shared-mt/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2

2019.09.15 23:38:27 [  2] me@here: /dev/shm/local/qt
$

Last edited by dedec0; 09-16-2019 at 04:59 AM.
 
Old 09-16-2019, 05:05 AM   #7
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Firerat View Post
I have no idea

I fully expected the build to fail here

but it compiled just fine
I just did a straight ./configure;make

Debian Sid, g++9.2
So you used /usr/local/ as the initial folder to decompress, the file, right? And installed it in the standard folders? Do you have many other (development or not) libraries installed? I do not have many. My ./configure output from yesterday pointed libraries not found in the system. I have not installed many things in my Debian.
 
Old 09-16-2019, 05:23 AM   #8
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Question

Quote:
Originally Posted by dugan View Post
Have you considered just installing a older Linux distribution (one that ships Qt 3) in a VM?

https://mirrors.slackware.com/slackw...ware-12.2-iso/
I have imagined this, but it would not be bad, as long as i keep the virtual machine RAM low enough, so it does not reduce much the memory for the programs i run, which, sometimes gets too low or full.

How do i find debianish distributions with that possibility? Distros that have Qt3 installed or still possible to install?
 
Old 09-16-2019, 05:48 AM   #9
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,320

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by dedec0 View Post
So you used /usr/local/ as the initial folder to decompress, the file, right?
nope
just some random dir
Quote:
Originally Posted by dedec0 View Post
And installed it in the standard folders?
I didn't install, just compiled it ( it would have installed where I unpacked it, and I didn't pass --prefix to ./configure
Quote:
Originally Posted by dedec0 View Post
Do you have many other (development or not) libraries installed?
yes Lots
Something I have been meaning to fix
I've started to use LXC to compile projects
so I will be getting rid of build depends from the host.

Quote:
Originally Posted by dedec0 View Post
I do not have many. My ./configure output from yesterday pointed libraries not found in the system. I have not installed many things in my Debian.
I didn't review what was/wasn't found, I was fully expecting the ./configure to fail, and then I expected the build to fail.
I'm still surprised it built
 
1 members found this post helpful.
Old 09-16-2019, 07:18 AM   #10
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Question

Quote:
Originally Posted by Firerat View Post
[...]
If you just used some random dir, then my use of /dev/shm should be fine.

If you have lots of libraries and development libraries, could that be the reason of my failure? LXC... another time i look what this is.

If you could copy your output of ./configure and of make too, i could compare them. Right now, i just repeated my last try, which is exactly what i did to make the post. I did this:

1. Delete dir /dev/shm/local/qt-x11-free-3.3.8/

2. Keep the symlink /dev/shm/local/qt, which is now broken

3. cd /dev/shm/local/; tar xf ../qt-x11-free-3.3.8.tar.bz2

4. The environment variables kept the same (this means they are changed as Qt INSTALL file asks to be)

5. ./configure (no argument, different of what i did before)

6. make (which failed)

The output of that failed at the same error of yesterday, but has much less lines (explained by a configure with no "-verbose" argument, probably). I copy this output here (simplified in some parts, so it fits on a post... it was not as small as i imagined, although it felt much faster and smaller while it ran):

Code:
2019.09.16 07:38:26 [  0] me@here: /dev/shm/local
$ /dev/shm/local

2019.09.16 07:38:27 [  0] me@here: /dev/shm/local
$  rm -fr qt-x11-free-3.3.8/ > /dev/zero 

2019.09.16 07:38:44 [  0] me@here: /dev/shm/local
$  ls -a

.   ..	qt

2019.09.16 07:38:55 [  0] me@here: /dev/shm/local
$ tar xf ../qt-x11-free-3.3.8.tar.bz2 

2019.09.16 07:39:13 [  0] me@here: /dev/shm/local
$  ls

qt  qt-x11-free-3.3.8

2019.09.16 07:39:41 [  0] me@here: /dev/shm/local
$ cd qt

2019.09.16 07:39:47 [  0] me@here: /dev/shm/local/qt
$ vim ~/.bashrc; source ~/.bashrc

2019.09.16 07:58:13 [  0] me@here: /dev/shm/local/qt
$  ls
total 184K
   0 bin            8,0K FAQ          4,0K MANIFEST   4,0K README-QT.TXT
 12K changes-3.3.8     0 include         0 mkspecs       0 src
   0 config.tests   8,0K INSTALL         0 pics          0 tools
108K configure         0 lib          4,0K PLATFORMS     0 translations
   0 doc             20K LICENSE.GPL     0 plugins       0 tutorial
   0 examples       8,0K LICENSE.QPL     0 qmake
   0 extensions     4,0K Makefile     4,0K README

2019.09.16 07:59:13 [  0] me@here: /dev/shm/local/qt
$ ./configure 

This is the Qt/X11 Open Source Edition.

[...]

Creating qmake. Please wait...

[...]

g++ -o qmake project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o projectgenerator.o metrowerks_xml.o  pbuilder_pbx.o msvc_objectmodel.o meta.o qtmd5.o qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o qconfig.o qunicodetables.o qsettings.o qlocale.o  
rm -f /dev/shm/local/qt-x11-free-3.3.8/bin/qmake
ln -s ../qmake/qmake /dev/shm/local/qt-x11-free-3.3.8/bin/qmake

	This target is using the GNU C++ compiler (linux-g++).

	Recent versions of this compiler automatically include code for
	exceptions, which increase both the size of the Qt library and the
	amount of memory taken by your applications.

	You may choose to re-run configure with the -no-exceptions
	option to compile Qt without exceptions. This is completely binary
	compatible, and existing applications should continue to work.


Build type:    linux-g++
Platform notes:

	    - Also available for Linux: linux-kcc linux-icc linux-cxx
	
Configuration .......  nocrosscompiler minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace network canvas table xml sql release dll largefile stl ipv6 png no-gif zlib bigcodecs x11sm xshape xkb
STL support ......... yes
PCH support ......... no
IPv6 support ........ yes
Thread support ...... no
NIS support ......... no
CUPS support ........ no
Large File support .. partial
GIF support ......... no
MNG support ......... plugin (qt)
JPEG support ........ plugin (qt)
PNG support ......... yes (qt)
zlib support ........ yes
OpenGL support ...... no
NAS sound support ... no
Session management .. yes
XShape support ...... yes
Xinerama support .... no
Tablet support ...... no
Xcursor support ..... no
XRandR support ...... no
XRender support ..... no
Xft support ......... no
XKB Support ......... yes

Finding project files. Please wait...
  241 projects found.

Creating makefiles. Please wait...
  for /dev/shm/local/qt-x11-free-3.3.8/src/qt.pro
  for /dev/shm/local/qt-x11-free-3.3.8/src/moc/moc.pro
  for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/styles/styles.pro
      [...]
  for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/imageformats/imageformats.pro
  for /dev/shm/local/qt-x11-free-3.3.8/examples/examples.pro
  for /dev/shm/local/qt-x11-free-3.3.8/examples/fonts/fonts.pro
  for /dev/shm/local/qt-x11-free-3.3.8/examples/sql/overview/overview.pro
  for /dev/shm/local/qt-x11-free-3.3.8/examples/sql/sql.pro
  for /dev/shm/local/qt-x11-free-3.3.8/extensions/extensions.pro
  for /dev/shm/local/qt-x11-free-3.3.8/extensions/nsplugin/examples/grapher/grapher.pro
  for /dev/shm/local/qt-x11-free-3.3.8/extensions/nsplugin/examples/trivial/trivial.pro
  for /dev/shm/local/qt-x11-free-3.3.8/extensions/nsplugin/src/qnp.pro
  for /dev/shm/local/qt-x11-free-3.3.8/tutorial/tutorial.pro
  for /dev/shm/local/qt-x11-free-3.3.8/tools/linguist/linguist.pro
      [...]
  for /dev/shm/local/qt-x11-free-3.3.8/tools/tools.pro
  for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/styles/windows/windows.pro
      [...]
  for /dev/shm/local/qt-x11-free-3.3.8/plugins/src/imageformats/mng/mng.pro
  for /dev/shm/local/qt-x11-free-3.3.8/examples/helpdemo/helpdemo.pro
      [...]
  for /dev/shm/local/qt-x11-free-3.3.8/examples/mdi/mdi.pro
  for /dev/shm/local/qt-x11-free-3.3.8/tutorial/t14/t14.pro
      [...]
  for /dev/shm/local/qt-x11-free-3.3.8/tutorial/t1/t1.pro
  for /dev/shm/local/qt-x11-free-3.3.8/config.tests/unix/largefile/largefiletest.pro
  for /dev/shm/local/qt-x11-free-3.3.8/config.tests/unix/endian/endiantest.pro
      [...]
  for /dev/shm/local/qt-x11-free-3.3.8/tools/makeqpf/makeqpf.pro
  for /dev/shm/local/qt-x11-free-3.3.8/tools/qvfb/qvfb.pro
  for /dev/shm/local/qt-x11-free-3.3.8/qmake/examples/precompile/precompile.pro

Qt is now configured for building. Just run /usr/bin/make.
To reconfigure, run /usr/bin/make confclean and configure.

2019.09.16 07:59:51 [  0] me@here: /dev/shm/local/qt
$ make
make[1]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8'
cd qmake && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
make[2]: 'qmake' is up to date.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
cd src/moc && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qbuffer.o ../tools/qbuffer.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qptrcollection.o ../tools/qptrcollection.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qcstring.o ../tools/qcstring.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdatastream.o ../tools/qdatastream.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdatetime.o ../tools/qdatetime.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qdatetime.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfile.o ../tools/qfile.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfile.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdir.o ../tools/qdir.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qdir.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfileinfo.o ../tools/qfileinfo.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfileinfo.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qgarray.o ../tools/qgarray.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qgdict.o ../tools/qgdict.cpp
../tools/qgdict.cpp: In member function ‘QDataStream& QGDict::read(QDataStream&)’:
../tools/qgdict.cpp:950:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    look_ptr( (void *)k, d, op_insert );
                      ^
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qglist.o ../tools/qglist.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qglobal.o ../tools/qglobal.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qglobal.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qgvector.o ../tools/qgvector.cpp

[...]

g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qtextcodec.o ../codecs/qtextcodec.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../codecs/qtextcodec.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qutfcodec.o ../codecs/qutfcodec.cpp
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./moc_yacc.o moc_yacc.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from moc.y:58:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
moc.y: In function ‘int yyparse()’:
moc.y:908:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 decl_specifier:    storage_class_specifier { $$ = ""; }
                  ^~
moc.y:910:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | fct_specifier    { $$ = ""; }
                  ^~
moc.y:911:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | FRIEND    { skipFunc = TRUE; $$ = ""; }
                                   ^~
moc.y:912:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | TYPEDEF    { skipFunc = TRUE; $$ = ""; }
                                   ^~
moc.y:918:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 decl_specs_opt:   /* empty */   { $$ = ""; }
                  ^~
moc.y:936:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 type_specifier:    CONST   { $$ = "const"; }
                  ^~~~~~~
moc.y:937:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | VOLATILE  { $$ = "volatile"; }
                  ^~~~~~~~~~
moc.y:950:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 simple_type_name:   CHAR       { $$ = "char"; }
                  ^~~~~~
moc.y:951:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | SHORT       { $$ = "short"; }
                  ^~~~~~~
moc.y:952:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | INT       { $$ = "int"; }
                  ^~~~~
moc.y:953:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | LONG       { $$ = "long"; }
                  ^~~~~~
moc.y:954:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | SIGNED      { $$ = "signed"; }
                  ^~~~~~~~
moc.y:955:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | UNSIGNED      { $$ = "unsigned"; }
                  ^~~~~~~~~~
moc.y:956:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | FLOAT       { $$ = "float"; }
                  ^~~~~~~
moc.y:957:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | DOUBLE      { $$ = "double"; }
                  ^~~~~~~~
moc.y:958:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | VOID       { $$ = "void"; }
                  ^~~~~~
moc.y:974:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 class_key:    opt_template_spec CLASS { $$ = "class"; }
                  ^~~~~~~
moc.y:975:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | opt_template_spec STRUCT { $$ = "struct"; }
                  ^~~~~~~~
moc.y:1041:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 abstract_decl_opt:   /* empty */  { $$ = ""; }
                  ^~
moc.y:1061:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 declarator:    dname   { $$ = ""; }
                  ^~
moc.y:1106:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 ptr_operators_opt:    /* empty */  { $$ = ""; }
                  ^~
moc.y:1122:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 cv_qualifier_list_opt:  /* empty */ { $$ = ""; }
                  ^~
moc.y:1131:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
 cv_qualifier:    CONST   { $$ = "const"; }
                  ^~~~~~~
moc.y:1132:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | VOLATILE  { $$ = "volatile"; }
                  ^~~~~~~~~~
moc.y:1170:18: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    | storage_class_specifier { $$ = ""; }
                  ^~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfile_unix.o ../tools/qfile_unix.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfile_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qdir_unix.o ../tools/qdir_unix.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qdir_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
g++ -c -pipe -O2  -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I../../include -I../tools -I. -o ./qfileinfo_unix.o ../tools/qfileinfo_unix.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from ../tools/qfileinfo_unix.cpp:38:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
test -d ../../bin/ || mkdir -p ../../bin/
g++  -o ../../bin/moc ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o ./qdir_unix.o ./qfileinfo_unix.o     
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
cd src && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src'
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng -I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ -o .obj/release-shared/qtaddons_x11.o kernel/qtaddons_x11.cpp
/dev/shm/local/qt-x11-free-3.3.8/bin/moc kernel/qapplication_x11.cpp -o .moc/release-shared/qapplication_x11.moc
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng -I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ -o .obj/release-shared/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**, Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
                                                              ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
                                                                  ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&, int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
     if (qt_use_rtl_extensions && type  == QEvent::KeyPress)
        ^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
                          ^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   } else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
                                 ^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*, XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
       ||    ev->type == ClientMessage
             ~~~~~~~~~~~~~~~~~~~~~~~~~
   && ev->xclient.message_type == qt_qt_scrolldone )
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared/qapplication_x11.o' failed
make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2
2019.09.16 08:00:07 [  2] me@here: /dev/shm/local/qt
$
(do you prefer i break the terminal output above to 80 columns, like i did before? Since we use 'code' tags, i find it hard to read the output in the browser)

Last edited by dedec0; 09-16-2019 at 07:36 AM.
 
Old 09-16-2019, 07:37 AM   #11
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Firerat View Post
[...]
See #10 above this.
 
Old 09-16-2019, 10:24 AM   #12
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,320

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
what distro are you using?

Debian or some derivative?

it looks like you are missing headers

have you complied anything on that system yet?

try
Code:
sudo apt install build-essential
if a make fails and there is much noise in the output
Code:
make -j1
you should only see the one error then.
 
1 members found this post helpful.
Old 09-16-2019, 11:35 AM   #13
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Unhappy

Quote:
Originally Posted by Firerat View Post
what distro are you using?

Debian or some derivative?
Yes. Debian 9 (stretch... i prefer numbers instead of remembering names for every version of every distro).

Quote:
Originally Posted by Firerat View Post

it looks like you are missing headers

have you complied anything on that system yet?
Just a few things, at most.

Quote:
Originally Posted by Firerat View Post

try
Code:
sudo apt install build-essential
This is already installed, newest version, 12.3:

Code:
2019.09.16 13:20:02 [  0] root@debian: /dev/shm/
# apt install build-essential
Reading package list... Ready
Building dependency tree
Reading status information... Ready
build-essential is already the newest version (12.3).

#
Quote:
Originally Posted by Firerat View Post
if a make fails and there is much noise in the output

Code:
make -j1
you should only see the one error then.
Output of 'make -j1' using what the previous 'make' has done:

Code:
2019.09.16 13:28:18 [  0] me@debian: /dev/shm/local/qt
$  make -j1
make[1]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8'
cd qmake && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
make[2]: 'qmake' is up to date.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/qmake'
cd src/moc && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
make[2]: Nothing to be done for 'first'.
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src/moc'
cd src && make
make[2]: Entering directory '/dev/shm/local/qt-x11-free-3.3.8/src'
g++ -c -pipe -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -DQT_NO_NIS \
-D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA \
-DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG \
-DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE \
-DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC \
-I/dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++ -I. -I3rdparty/libpng \
-I3rdparty/zlib -I../include -I/usr/X11R6/include -I.moc/release-shared/ \
-o .obj/release-shared/qapplication_x11.o kernel/qapplication_x11.cpp
In file included from /usr/include/unistd.h:25:0,
                 from /dev/shm/local/qt-x11-free-3.3.8/mkspecs/linux-g++/qplatformdefs.h:26,
                 from kernel/qapplication_x11.cpp:47:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qvaluelist.h:164:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from ../include/qmap.h:46:0,
                 from kernel/qmime.h:43,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qvaluelist.h:424:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:107:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
../include/qmap.h:223:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
In file included from kernel/qmime.h:43:0,
                 from kernel/qevent.h:45,
                 from kernel/qobject.h:45,
                 from kernel/qwidget.h:43,
                 from kernel/qdesktopwidget.h:40,
                 from kernel/qapplication.h:42,
                 from kernel/qapplication_x11.cpp:64:
../include/qmap.h:604:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type;
             ^~~~~~~~~
kernel/qapplication_x11.cpp: In function ‘void qt_init_internal(int*, char**, Display*, Qt::HANDLE, Qt::HANDLE)’:
kernel/qapplication_x11.cpp:2009:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2009:62: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym(appDpy, map->modifiermap[mapIndex], 0);
                                                              ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:8: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
        ^~~~~~~~~~~~~~~~
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:2039:66: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
        XKeycodeToKeysym( appDpy, map->modifiermap[ mapIndex ], 0 );
                                                                  ^
In file included from kernel/qt_x11_p.h:66:0,
                 from kernel/qinputcontext_p.h:63,
                 from kernel/qapplication_x11.cpp:92:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘int QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3690:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp:3703:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
               ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4118:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   bool hor = ( (btn == Button4 || btn == Button5) && (state&AltButton) ||
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
kernel/qapplication_x11.cpp: In member function ‘bool QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&, int&, char&, int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5158:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
     if (qt_use_rtl_extensions && type  == QEvent::KeyPress)
        ^
kernel/qapplication_x11.cpp:5228:26: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   if ( key == XK_Shift_L && directionKeyEvent == XK_Control_L ||
                          ^
kernel/qapplication_x11.cpp:5231:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   } else if ( key == XK_Shift_R && directionKeyEvent == XK_Control_R ||
                                 ^
kernel/qapplication_x11.cpp: In function ‘int isPaintOrScrollDoneEvent(Display*, XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5521:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
       ||    ev->type == ClientMessage
             ~~~~~~~~~~~~~~~~~~~~~~~~~
   && ev->xclient.message_type == qt_qt_scrolldone )
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:1462: recipe for target '.obj/release-shared/qapplication_x11.o' failed
make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
make[2]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8/src'
Makefile:40: recipe for target 'sub-src' failed
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
Makefile:8: recipe for target 'init' failed
make: *** [init] Error 2
2019.09.16 13:28:23 [  2] me@debian: /dev/shm/local/qt
$

Last edited by dedec0; 09-16-2019 at 11:37 AM.
 
Old 09-16-2019, 12:17 PM   #14
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,320

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
./include/qvaluelist.h:88:13:
Code:
 87 #ifndef QT_NO_STL
 88     typedef ptrdiff_t  difference_type;
 89 #else
 90     typedef int difference_type;
 91 #endif
./configure
Code:
2877 if [ "$CFG_STL" = "no" ]; then
2878     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STL"
2879 else
2880     QMAKE_CONFIG="$QMAKE_CONFIG stl"
2881 fi
the tests for stl are in
config.tests/unix/stl/
 
Old 09-16-2019, 12:55 PM   #15
dedec0
Member
 
Registered: May 2007
Posts: 948

Original Poster
Rep: Reputation: 31
Arrow

Quote:
Originally Posted by Firerat View Post
./include/qvaluelist.h:88:13:
Code:
 87 #ifndef QT_NO_STL
 88     typedef ptrdiff_t  difference_type;
 89 #else
 90     typedef int difference_type;
 91 #endif
./configure
Code:
2877 if [ "$CFG_STL" = "no" ]; then
2878     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STL"
2879 else
2880     QMAKE_CONFIG="$QMAKE_CONFIG stl"
2881 fi
the tests for stl are in
config.tests/unix/stl/
I am unsure of what i should understand from your post, and i do not know what STL is. I rerun ./configure with no arguments, and STL is enabled. So i './configure -help' -ed and rerun configure with STL disabled. It compiled! Look:

Code:
The Qt library is now built in ./lib
The Qt examples are built in the directories in ./examples
The Qt tutorials are built in the directories in ./tutorial

Enjoy!   - the Trolltech team

make[1]: Leaving directory '/dev/shm/local/qt-x11-free-3.3.8'
How did you find the problem was with STL?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux version prompt before login wrong version mick1945 Slackware 14 06-18-2017 04:29 PM
Wrong disk free space (VERY wrong) macrojd Linux - Server 12 05-17-2009 02:14 AM
cat /proc/version - displays wrong version babu198649 Linux - Newbie 2 11-10-2008 04:10 AM
What is wrong with reiserfs? wrong free space mesh2005 Linux - General 1 05-03-2007 07:21 AM
slackware startx starts the wrong version, i didn't even know i had another version edman007 Linux - Software 3 05-16-2004 07:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration