#852 fedora 17 build fails

None
closed-fixed
Ivan Brezina
General (70)
5
2013-10-25
2012-05-17
Trenton D. Adams
No

i installed all the needed development libraries for things like QT, qscintilla, etc.

oracle: 11.2.0.2.0
qt: 4.8.1

Then I checked out the trunk, and ran...

bash autogen.sh
./configure --with-oracle --with-oracle-includes=/usr/include/oracle/11.2/client64 --with-oracle-libraries=/usr/lib/oracle/11.2/client64/lib --with-qscintilla --with-qt-includes=/usr/include --with-qt-libraries=/usr/lib64
make

And get...
work -I/usr/include/QtXml -DDEFAULT_PLUGIN_DIR=\"/usr/local/tora/lib\" -DTOVERSION=\"2.1.4\" -I/usr/include/oracle/11.2/client64 -DOTL_ORA11G -g -O2 -fno-inline -O2 -MT tora-squirrelsql.o -MD -MP -MF .deps/tora-squirrelsql.Tpo -c -o tora-squirrelsql.o `test -f 'migratetool/squirrelsql.cpp' || echo './'`migratetool/squirrelsql.cpp
mv -f .deps/tora-squirrelsql.Tpo .deps/tora-squirrelsql.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I./otl -I../src/loki/include -I/usr/include -I/usr/include/Qt -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include/QtNetwork -I/usr/include/QtXml -DDEFAULT_PLUGIN_DIR=\"/usr/local/tora/lib\" -DTOVERSION=\"2.1.4\" -I/usr/include/oracle/11.2/client64 -DOTL_ORA11G -g -O2 -fno-inline -O2 -MT tora-tora3.o -MD -MP -MF .deps/tora-tora3.Tpo -c -o tora-tora3.o `test -f 'migratetool/tora3.cpp' || echo './'`migratetool/tora3.cpp
mv -f .deps/tora-tora3.Tpo .deps/tora-tora3.Po
/bin/uic-qt4 -o shortcuteditor/shortcuteditordialog.cpp shortcuteditor/shortcuteditordialog.h
uic: Error in line 1, column 1 : Start tag expected.
File 'shortcuteditor/shortcuteditordialog.h' is not valid
make[3]: *** [shortcuteditor/shortcuteditordialog.cpp] Error 1
make[3]: Leaving directory `/home/trenta/tora/tora/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/trenta/tora/tora/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/trenta/tora/tora'
make: *** [all] Error 2

Discussion

  • I've been out of the C/CPP development world for more than 10 years now. But, it appears to have to do with src/Makefile

    This doesn't appear to work for anything other than what is under src/ directly. If you have a sub-directory, it fails. e.g. "src/shortcuteditor/"

    ui_%.h: %.ui
    $(UIC) -o $@ $<

    I added this...
    shortcuteditor/ui_%.h: %.ui
    $(UIC) -o $@ $<

    And ran make again and it got past that. But now I get the following, which seems related.
    tora-moc_shortcuteditordialog.o:(.rodata._ZTV20ShortcutEditorDialog[_ZTV20ShortcutEditorDialog]+0x28): undefined reference to `ShortcutEditorDialog::~ShortcutEditorDialog()'
    tora-moc_shortcuteditordialog.o:(.rodata._ZTV20ShortcutEditorDialog[_ZTV20ShortcutEditorDialog]+0x30): undefined reference to `ShortcutEditorDialog::~ShortcutEditorDialog()'
    tora-moc_shortcuteditordialog.o:(.rodata._ZTV20ShortcutEditorDialog[_ZTV20ShortcutEditorDialog]+0x1e8): undefined reference to `non-virtual thunk to ShortcutEditorDialog::~ShortcutEditorDialog()'
    tora-moc_shortcuteditordialog.o:(.rodata._ZTV20ShortcutEditorDialog[_ZTV20ShortcutEditorDialog]+0x1f0): undefined reference to `non-virtual thunk to ShortcutEditorDialog::~ShortcutEditorDialog()'
    collect2: error: ld returned 1 exit status
    make[3]: *** [tora] Error 1
    make[3]: Leaving directory `/home/trenta/tora/tora/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/trenta/tora/tora/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/trenta/tora/tora'
    make: *** [all] Error 2

     
  • wrobbie
    wrobbie
    2012-06-23

    I'm having exactly the same problem, on fc17 as well. Before looking here I tried to fix the way uic is invoked, which seems to be called with a .h file instead of a .ui file:

    ------------------------------------------
    Index: Makefile.am
    ===================================================================
    --- Makefile.am (revision 4362)
    +++ Makefile.am (working copy)
    @@ -507,7 +507,7 @@
    ui_%.h: %.ui
    $(UIC) -o $@ $<

    -%.cpp: %.h %.ui
    +%.cpp: %.ui %.h
    $(UIC) -o $@ $<

    moc_%.cpp: %.h
    ------------------------------------------

    ..but that has exactly the same result as your fix (linker errors).

     
  • Ivan Brezina
    Ivan Brezina
    2012-09-24

    Please try CMAKE build. autohell tool are not well supported.

     
  • Ivan Brezina
    Ivan Brezina
    2012-09-24

    • assigned_to: nobody --> ibre5041
    • status: open --> pending-postponed
     
  • Ivan Brezina
    Ivan Brezina
    2013-10-25

    • status: pending-postponed --> closed-fixed
    • Group: -->
     
  • Ivan Brezina
    Ivan Brezina
    2013-10-25

    automake build is no more supported