[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: uic segfault during ./configure gives me "checking if UIC has
From:       LiuCougar <liucougar () gmail ! com>
Date:       2004-10-09 21:33:31
Message-ID: 955806780410091433911aa74 () mail ! gmail ! com
[Download RAW message or body]

try to uninstall existing Qt first

Good luck


On Sat, 9 Oct 2004 14:21:03 +0200, Stephan A. Maciej <stephanm@muc.de> wrote:
> Hi,
> 
> I'm stuck trying to get everything else than kde{libs,base,support} and arts
> to compile.
> 
> I have a self-compiled qt-copy (3.3.3, installed in /usr/local/qt-3.3.3)
> installed on my system, configured with the options suggested in
> README.qt-copy plus -dlopen-opengl. All modules mentioned above were compiled
> with
> 
> make -f Makefile.cvs &&
> export CXXFLAGS="-fno-exceptions" &&
> ./configure --prefix=/opt/kde-3.3-snapshot-20041008
>         --with-qt-dir=/usr/local/qt-3.3.3
>         --disable-static
>         --enable-final &&
> make
> 
> ./configure on something like kdeadmin gives me the following output:
> 
> ...
> checking for libpng... -lpng -lz -lm
> checking for libjpeg6b... no
> checking for libjpeg... -ljpeg
> checking for perl... /usr/bin/perl
> checking for Qt... libraries /usr/local/qt-3.3.3/lib,
> headers /usr/local/qt-3.3.3/include using -mt
> checking for moc... /usr/local/qt-3.3.3/bin/moc
> checking for uic... /usr/local/qt-3.3.3/bin/uic
> checking whether uic supports -L ... yes
> checking whether uic supports -nounload ... yes
> checking if Qt needs -ljpeg... no
> checking for rpath... yes
> checking for KDE... libraries /opt/kde-3.3-snapshot-20041008/lib,
> headers /opt/kde-3.3-snapshot-20041008/include
> checking if UIC has KDE plugins available... no
> configure: error: you need to install kdelibs first.
> 
> Looking at configure.log, I see:
> 
> ...
> configure:27353: checking for uic
> configure:27407: result: /usr/local/qt-3.3.3/bin/uic
> configure:27438: checking whether uic supports -L
> configure:27449: /usr/local/qt-3.3.3/bin/uic -L /nonexistent conftest.ui
> >/dev/null
> configure:27452: $? = 0
> configure:27464: result: yes
> configure:27476: checking whether uic supports -nounload
> configure:27487: /usr/local/qt-3.3.3/bin/uic -nounload  conftest.ui >/dev/null
> configure:27490: $? = 0
> configure:27502: result: yes
> configure:27539: checking if Qt needs -ljpeg
> configure:27583: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> -Wconversion -Wchar-subscr
> conftest.cc: In function `int main()':
> conftest.cc:15: warning: `char**argv' might be used uninitialized in this
>    function
> configure:27586: $? = 0
> configure:27589: test -s conftest
> configure:27592: $? = 0
> configure:27619: result: no
> configure:27651: checking for rpath
> configure:27679: result: yes
> configure:27682: checking for KDE
> configure: 27737: /opt/kde-3.3-snapshot-20041008/include/ksharedptr.h
> taking that
> configure: 27767: /opt/kde-3.3-snapshot-20041008/lib/libkio.la
> taking that
> configure:
> 27785: /opt/kde-3.3-snapshot-20041008/lib/kde3/plugins/designer/kdewidgets.la
> taking that
> configure:27856: result: libraries /opt/kde-3.3-snapshot-20041008/lib,
> headers /opt/kde-3.3-snapshot-20041008/include
> configure:27895: checking if UIC has KDE plugins available
> configure:27922: /usr/local/qt-3.3.3/bin/uic
> -L /opt/kde-3.3-snapshot-20041008/lib/kde3/plugins/designer -nounload -impl
> actest.h actest.ui > actest.cpp
> ./configure: line 1: 20009 Segmentation fault      /usr/local/qt-3.3.3/bin/uic
> -L /opt/kde-3.3-snapshot-20041008/lib/kde3/plugins/designer -nounload -impl
> actest.h actest.ui
> configure:27925: $? = 139
> configure:27939: result: no
> configure:27942: error: you need to install kdelibs first.
> 
> The offending actest.ui contains:
> 
> <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
> <class>NewConnectionDialog</class>
> <widget class="QDialog">
>    <widget class="KLineEdit">
>         <property name="name">
>            <cstring>testInput</cstring>
>         </property>
>    </widget>
> </widget>
> </UI>
> 
> on which uic, called like config.log says, gives me the following backtrace:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 20149)]
> 0x0001e31e in ?? ()
> (gdb) backtrace
> #0  0x0001e31e in ?? ()
> #1  0x41684452 in _GLOBAL__I__ZN6KParts8PartBaseC2Ev ()
> from /opt/kde-3.3-snapshot-20041008/lib/libkparts.so.2
> #2  0x4168a5c5 in __do_global_ctors_aux ()
> from /opt/kde-3.3-snapshot-20041008/lib/libkparts.so.2
> #3  0x41667bb6 in _init ()
> from /opt/kde-3.3-snapshot-20041008/lib/libkparts.so.2
> #4  0x4000a1fe in call_init () from /lib/ld-linux.so.2
> #5  0x4000a2e7 in _dl_init () from /lib/ld-linux.so.2
> #6  0x40a9ceb2 in dl_open_worker () from /lib/libc.so.6
> #7  0x40009f96 in _dl_catch_error () from /lib/ld-linux.so.2
> #8  0x40a9d1f5 in _dl_open () from /lib/libc.so.6
> #9  0x408afef9 in dlopen_doit () from /lib/libdl.so.2
> #10 0x40009f96 in _dl_catch_error () from /lib/ld-linux.so.2
> #11 0x408b02f4 in _dlerror_run () from /lib/libdl.so.2
> #12 0x408aff44 in dlopen@@GLIBC_2.1 () from /lib/libdl.so.2
> #13 0x404fc3d5 in QLibraryPrivate::loadLibrary() ()
> from /usr/local/qt-3.3.3/lib/libqt-mt.so.3
> #14 0x4051c95f in QLibrary::load() ()
> from /usr/local/qt-3.3.3/lib/libqt-mt.so.3
> #15 0x40501b5e in QComLibrary::createInstanceInternal() ()
> from /usr/local/qt-3.3.3/lib/libqt-mt.so.3
> #16 0x40502024 in QComLibrary::queryInterface(QUuid const&,
> QUnknownInterface**) () from /usr/local/qt-3.3.3/lib/libqt-mt.so.3
> #17 0x40519def in QGPluginManager::addLibrary(QLibrary*) ()
> from /usr/local/qt-3.3.3/lib/libqt-mt.so.3
> #18 0x40519bb7 in QGPluginManager::featureList() const ()
> from /usr/local/qt-3.3.3/lib/libqt-mt.so.3
> #19 0x08084c95 in WidgetDatabase::setupPlugins() ()
> #20 0x08084c5a in WidgetDatabase::setupDataBase(int) ()
> #21 0x0808569f in WidgetDatabase::idFromClassName(QString const&) ()
> #22 0x0806af3d in Uic::createFormImpl(QDomElement const&) ()
> #23 0x08053ea0 in Uic::Uic(QString const&, char const*, QTextStream&,
> QDomDocument, bool, bool, QString const&, QString const&, bool) ()
> #24 0x0804f032 in main ()
> #25 0x409be4a2 in __libc_start_main () from /lib/libc.so.6
> 
> I have searched the archives (maybe I'm just not good at that...) and I found
> some posts explaining that this could be due to different Qt library versions
> being referenced. I checked my kde{libs,base,support}, arts and Qt
> installation via ldd and I see that all .so's and executeables use the same
> Qt library.
> 
> Anyone who can help me? :-)
> 
> Thanks,
> 
> Stephan
> 
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
> 


-- 
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic