Share

oratcl

Subscribe

Problems building on Mac OSX

  1. 2009-11-04 22:10:24 UTC

    I am getting this when I try to build on my Mac:

    gcc -dynamiclib -pipe  -Os -Wall -Wno-implicit-int -fno-common   -prebind -headerpad_max_install_names -Wl,-search_paths_first  -Wl,-single_module -o libOratcl4.5.dylib oratcl.o oralob.o oralong.o oralogon.o oralogoff.o oraopen.o oraclose.o oracommit.o oraroll.o oraautocom.o orainfo.o oramsg.o oraconfig.o oradesc.o orabreak.o oraparse.o orabind.o oraexec.o orafetch.o orasql.o oraplexec.o orabindexec.o  -L/System/Library/Frameworks/Tcl.framework/Versions/8.4 -ltclstub8.4 
    ld: duplicate symbol _OCI_EnvCreate in oralong.o and oratcl.o
    collect2: ld returned 1 exit status
    make: *** [libOratcl4.5.dylib] Error 1
    

    The INSTALL file says for building on the Mac to refer to the "mac" directory, which doesn't exist. Anyone have any ideas?

  2. 2009-11-06 19:12:39 UTC

    Ok, so I got the compile to go by:

    First, adding "extern" to all OCIs in generic/oratclTypes.h, for example:

    extern OCIENVCREATE     OCI_EnvCreate;
    

    Second, creating a new file and including it in the build, the contents of which are:

    #include "oratclInt.h"
    #include "oratclTypes.h"
    
    OCIENVCREATE    OCI_EnvCreate;
    ...
    

    and so forth for each OCI that is found in generic/oratclTypes.h.

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.