Message: previous - next
Month: December 2011

tqt3 FTBFS with uic segmentation fault

From: Laurent Dard <f.couperin@...>
Date: Sun, 11 Dec 2011 19:02:27 +0100
Tqt3 (from git) fails to build because of uic that segfaults with listboxeditor.ui.

I'm cross compiling (gcc -m32 & g++ -m32), on Linux From Scratch.

What's wrong?

Commands (qt3-3.3.8d compiled well with the same commands):

  patch --verbose -Np1 -i /sources/tqt3-git-libpng15-1.patch &&
  export PATH=$PWD/bin:$PATH &&
  export LD_LIBRARY_PATH=$PWD/lib &&
  export QMAKESPEC=linux-g++-32 &&
  echo yes | ./configure -prefix /usr \
    -docdir /usr/share/doc/tqt3 \
    -headerdir /usr/include/qt \
    -datadir /usr/lib/qt \
    -plugindir /usr/lib/qt/plugin \
    -translationdir /usr/share/qt/translations \
    -sysconfdir /etc/qt \
    -qt-gif \
    -system-zlib \
    -system-libpng \
    -system-libjpeg \
    -system-libmng \
    -plugin-imgfmt-png \
    -plugin-imgfmt-jpeg \
    -plugin-imgfmt-mng \
    -no-exceptions \
    -thread \
    -tablet \
    -plugin-sql-mysql \
    -I/usr/include/mysql \
    -plugin-sql-sqlite \
    -I/usr/include/freetype2 \
    -lfontconfig &&
  find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g"

  export PATH=$PWD/bin:$PATH &&
  export LD_LIBRARY_PATH=$PWD/lib &&
  export QMAKESPEC=linux-g++-32 &&


g++ -c -m32 -pipe -I/usr/include/mysql -I/usr/include/freetype2 -fno-exceptions -fPIC -Wall -W -O2 -D_REENTRANT  -DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_TABLE -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/tmp/tqt3/mkspecs/linux-g++-32 -I. -I/usr/include/freetype2 -I../shared -I../uilib -I../../../include -I/usr/X11R7/include -I.moc/release-shared-mt/ -o ./tableeditorimpl.o tableeditorimpl.cpp
In file included from ../../../include/qdragobject.h:50:0,
                 from actiondnd.h:38,
                 from formwindow.h:40,
                 from tableeditorimpl.cpp:38:
../../../include/qimage.h: In member function ‘bool TQImageTextKeyLang::operator<(const TQImageTextKeyLang&) const’:
../../../include/qimage.h:61:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
/tmp/tqt3/bin/uic -L /tmp/tqt3/plugins listboxeditor.ui -i listboxeditor.h -o listboxeditor.cpp
make[4]: *** [listboxeditor.cpp] Segmentation fault
make[4]: *** Deleting file `listboxeditor.cpp'

$ gdb bin/uic tools/designer/designer/core
GNU gdb (GDB)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /tmp/tqt3/bin/uic...(no debugging symbols found)...done.
[New LWP 20544]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/".
Core was generated by `/tmp/tqt3/bin/uic -L /tmp/tqt3/plugins listboxeditor.ui -i listboxeditor.h -o l'.
Program terminated with signal 11, Segmentation fault.
#0  0xf60fbc30 in ?? ()
(gdb) bt
#0  0xf60fbc30 in ?? ()
#1  0xf7228ef0 in TQApplication::~TQApplication() () from /tmp/tqt3/lib/
#2  0x0804ebb3 in main ()

$ ldd bin/uic =>  (0xf778a000) => /tmp/tqt3/lib/ (0xf702a000) => /lib/ (0xf6fef000) => /usr/X11R7/lib/ (0xf6f6e000) => /usr/X11R7/lib/ (0xf6f04000) => /usr/X11R7/lib/ (0xf6eea000) => /usr/X11R7/lib/ (0xf6edb000) => /usr/X11R7/lib/ (0xf6ed1000) => /usr/X11R7/lib/ (0xf6ec8000) => /usr/X11R7/lib/ (0xf6ebd000) => /usr/X11R7/lib/ (0xf6eb9000) => /usr/X11R7/lib/ (0xf6ea2000) => /usr/lib/ (0xf6e10000) => /usr/lib/ (0xf6dd1000) => /usr/X11R7/lib/ (0xf6dbc000) => /usr/X11R7/lib/ (0xf6c75000) => /usr/X11R7/lib/ (0xf6c6d000) => /usr/X11R7/lib/ (0xf6c53000) => /lib/ (0xf6c4e000) => /lib/ (0xf6c33000) => /usr/lib/ (0xf6b3b000) => /lib/ (0xf6b10000) => /usr/lib/ (0xf6af3000) => /lib/ (0xf695e000) => /usr/X11R7/lib/ (0xf695b000) => /usr/X11R7/lib/ (0xf6956000) => /usr/X11R7/lib/ (0xf694f000) => /usr/X11R7/lib/ (0xf694d000) => /usr/X11R7/lib/ (0xf6938000) => /usr/X11R7/lib/ (0xf6919000) => /usr/X11R7/lib/ (0xf690d000) => /usr/X11R7/lib/ (0xf68aa000) => /lib/ (0xf68a5000) => /usr/X11R7/lib/ (0xf68a2000) => /usr/X11R7/lib/ (0xf689c000) => /usr/lib/ (0xf6872000)
        /lib/ (0xf778b000) => /lib/ (0xf6867000)

Linux x86_64 GNU/Linux
GNU C Library (EGLIBC) stable release version 2.14, by Roland McGrath et al.
gcc (GCC) 4.6.1
GNU ld (Linux/GNU Binutils)

Laurent Dard