Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Compiling issues on OS X

Help
sakies
2004-12-12
2012-12-13
  • sakies
    sakies
    2004-12-12

    Hi,

    I am an Oracle applications developer making the switch to mac and missing Toad functionality a lot.  I sure could use some help getting TOra compiled on my powerbook but am having trouble and not very well equiped to do so.  Here is the relevant information:

    Software Versions
    OS X Version: 10.3.6
    TOra Version: 1.3.14.1
    QT Version: qt3 3.2.2-12
    Oracle: 9iR2

    The problem I am having is when I issue the make command I get the following messages:
    :~/Desktop/tora-1.3.14.1 $ make
    Making dependencies for utils.cpp
    In file included from utils.cpp:35:
    utils.h:41:25: warning: qmainwindow.h: No such file or directory
    utils.h:42:25: warning: qtoolbutton.h: No such file or directory
    In file included from utils.cpp:37:
    tobackground.h:38:20: warning: qtimer.h: No such file or directory
    In file included from toconnection.h:38,
                     from utils.cpp:39:
    toqvalue.h:40:21: warning: qstring.h: No such file or directory
    In file included from toconnection.h:39,
                     from utils.cpp:39:
    tothread.h:38:21: warning: qthread.h: No such file or directory
    In file included from utils.cpp:39:
    toconnection.h:45:21: warning: qstring.h: No such file or directory
    In file included from tomarkedtext.h:38,
                     from tohighlightedtext.h:38,
                     from utils.cpp:40:
    toeditwidget.h:40:21: warning: qwidget.h: No such file or directory
    In file included from tomarkedtext.h:41,
                     from tohighlightedtext.h:38,
                     from utils.cpp:40:
    tomarkedtext.2.h:38:28: warning: qmultilineedit.h: No such file or directory
    In file included from tohighlightedtext.h:38,
                     from utils.cpp:40:
    tomarkedtext.h:50:21: warning: qglobal.h: No such file or directory
    tomarkedtext.h:51:21: warning: qstring.h: No such file or directory
    tomarkedtext.h:52:20: warning: qtimer.h: No such file or directory
    In file included from tomain.h:43,
                     from utils.cpp:41:
    tomainwindow.h:38:25: warning: qmainwindow.h: No such file or directory
    In file included from utils.cpp:41:
    tomain.h:49:20: warning: qtimer.h: No such file or directory
    In file included from tonewconnection.h:40,
                     from utils.cpp:42:
    tonewconnectionui.h:13:22: warning: qvariant.h: No such file or directory
    tonewconnectionui.h:14:21: warning: qpixmap.h: No such file or directory
    tonewconnectionui.h:15:21: warning: qdialog.h: No such file or directory
    In file included from tonewconnection.h:41,
                     from utils.cpp:42:
    tohelp.h:38:21: warning: qdialog.h: No such file or directory
    In file included from tohelp.h:80,
                     from tonewconnection.h:41,
                     from utils.cpp:42:
    totool.h:40:21: warning: qobject.h: No such file or directory
    totool.h:41:21: warning: qstring.h: No such file or directory
    totool.h:42:19: warning: qvbox.h: No such file or directory
    In file included from toresult.h:39,
                     from utils.cpp:43:
    tosql.h:41:21: warning: qstring.h: No such file or directory
    In file included from utils.cpp:43:
    toresult.h:43:21: warning: qobject.h: No such file or directory
    utils.cpp:60:26: warning: qapplication.h: No such file or directory
    utils.cpp:61:23: warning: qcombobox.h: No such file or directory
    utils.cpp:62:22: warning: qcstring.h: No such file or directory
    utils.cpp:63:21: warning: qcursor.h: No such file or directory
    utils.cpp:64:19: warning: qfile.h: No such file or directory
    utils.cpp:65:25: warning: qfiledialog.h: No such file or directory
    utils.cpp:66:20: warning: qlabel.h: No such file or directory
    utils.cpp:67:21: warning: qlayout.h: No such file or directory
    utils.cpp:68:23: warning: qlistview.h: No such file or directory
    utils.cpp:69:22: warning: qmenubar.h: No such file or directory
    utils.cpp:70:25: warning: qmessagebox.h: No such file or directory
    utils.cpp:71:21: warning: qregexp.h: No such file or directory
    utils.cpp:72:24: warning: qstatusbar.h: No such file or directory
    utils.cpp:73:20: warning: qtimer.h: No such file or directory
    utils.cpp:74:22: warning: qtoolbar.h: No such file or directory
    utils.cpp:75:22: warning: qtooltip.h: No such file or directory
    utils.cpp:76:19: warning: qvbox.h: No such file or directory
    utils.cpp:77:24: warning: qworkspace.h: No such file or directory
    In file included from utils.cpp:79:
    utils.moc:12:25: warning: qmetaobject.h: No such file or directory
    utils.moc:13:26: warning: qapplication.h: No such file or directory
    utils.moc:15:34: warning: private/qucomextra_p.h: No such file or directory
    utils.moc:17:2: #error "This file was generated using the moc from 3.2.2. It"
    utils.moc:18:2: #error "cannot be used with the include files from this version of Qt."
    utils.moc:19:2: #error "(The moc has changed too much.)"
    utils.cpp:395:29: warning: qmotifstyle.h: No such file or directory
    utils.cpp:396:33: warning: qmotifplusstyle.h: No such file or directory
    utils.cpp:397:27: warning: qsgistyle.h: No such file or directory
    utils.cpp:398:27: warning: qcdestyle.h: No such file or directory
    utils.cpp:399:31: warning: qwindowsstyle.h: No such file or directory
    utils.cpp:400:32: warning: qplatinumstyle.h: No such file or directory
    make: *** [.depends/utils.d] Error 1

    In the README.OSX file it indicates that you need to have qt 3.2.1 installed in /usr/local/qt and built with the static and multi-threaded options.  I used fink to install qt and it doesn't appear in that diretory-- I see things in /ws/share/qt3 and the missing header files are in /ws/include/qt.  How do I get this properly installed and verified?

    Again I appologize for being a beginner but sure would appreciate the help.

    Thanks in advance-- skies

     
    • Hi

      I first would suggest you get yourself the 10g MAC OS X
      client (iirc there is an instant client (base sqlplus oci))

      then do a
      ./configure --without-kde --with-mono  --with-qt-include=/sw/include/qt/
      make
      and copy tora-mono somewhere you like

      be sure to have $ORACLE_HOME set correctly

      don't forget to start the Xserver

      If you get library problems with /usr/X11R6 ... an libgl... things
      set DYLD_LIBRARY_PATH=/sw/lib

      and it should work.

      Hubertus

       
    • sakies
      sakies
      2004-12-13

      That resolved the issue but now I get to another issue regarding multiple definitions:

      Compiling utils.cpp
      Linking tora-mono
      ld: warning multiple definitions of symbol _SSLSetPeerID
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLSetPeerID
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(sslctx.o) definition of _SSLSetPeerID
      ld: warning multiple definitions of symbol _SSLSetProtocolVersion
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLSetProtocolVersion
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(sslctx.o) definition of _SSLSetProtocolVersion
      ld: warning multiple definitions of symbol _SSLGetNegotiatedCipher
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLGetNegotiatedCipher
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(sslctx.o) definition of _SSLGetNegotiatedCipher
      ld: warning multiple definitions of symbol _SSLGetProtocolVersion
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLGetProtocolVersion
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(sslctx.o) definition of _SSLGetProtocolVersion
      ld: warning multiple definitions of symbol _SSLAddDistinguishedName
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLAddDistinguishedName
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(sslctx.o) definition of _SSLAddDistinguishedName
      ld: warning multiple definitions of symbol _SSLRead
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLRead
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(ssltrspt.o) definition of _SSLRead
      ld: warning multiple definitions of symbol _SSLClose
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLClose
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(ssltrspt.o) definition of _SSLClose
      ld: warning multiple definitions of symbol _SSLHandshake
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLHandshake
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(ssltrspt.o) definition of _SSLHandshake
      ld: warning multiple definitions of symbol _SSLWrite
      /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) definition of _SSLWrite
      /Users/oracle/9iR2/orahome//lib/libclntsh.dylib(ssltrspt.o) definition of _SSLWrite
      ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
      symbol _SSLAddDistinguishedName used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(sslctx.o)
      symbol _SSLGetNegotiatedCipher used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(sslctx.o)
      symbol _SSLGetProtocolVersion used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(sslctx.o)
      symbol _SSLSetPeerID used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(sslctx.o)
      symbol _SSLSetProtocolVersion used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(sslctx.o)
      symbol _SSLRead used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(ssltrspt.o)
      symbol _SSLHandshake used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(ssltrspt.o)
      symbol _SSLWrite used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(ssltrspt.o)
      symbol _SSLClose used from dynamic library /System/Library/Frameworks/Security.framework/Versions/A/Security(single module) not from earlier dynamic library /Users/oracle/Source/9iR2/rdbms/lib/libclntsh.dylib.9.0(ssltrspt.o)

      I reviewed the list and there are posts concerning this topic but the answer was not explicit enough for me.

      Any thoughts on this.

      Thanks for your help-- I really appreciate it.

      skies

       
    • sakies
      sakies
      2004-12-16

      Got it compiled and starting to use it.

      Thank you very much for the help.

      Scott

       
      • Alan Sill
        Alan Sill
        2004-12-16

        Please publish your recipe.