Gcc/linker error

Hi, the code below causes a very strange error:
if compiled in debug mode with zerolink, the compiler succeeds, but the executable cannot be debugged (it crashes at runtime with a zerolink error).
if compiled in release mode, ld gives explicitly an error, it cannot find the compile-time constant NOT_FOUND.
I think the compiler successfully deduces the value of the constant, but it does not mark it as "resolved", so the linker tries to find an explicit initialization, as for any static data member.
Bizarre, if I change the line
static const position_t NOT_FOUND = (-1U);
to
static const int NOT_FOUND = (-1);
it works. some types are accepted (int, unsigned int), some are not (long, size_t, a typedef).
This is definitely a bug.
Do you know how can I post it to Apple? Thanks
M.H.
#include <algorithm>
#include <vector>
#include <valarray>
#include <stdexcept>
#include <iostream>
template <typename code_t>
class hierarchy_map
typedef unsigned int position_t;
std::vector<code_t> data_;
std::vector<position_t> father_;
public:
typedef position_t position_type;
static const position_t NOT_FOUND = (-1U);
position_type find(const code_t c) const
const position_type result = std::lowerbound(data.begin(), data_.end(), c) - data_.begin();
return data_[result] == c ? result : NOT_FOUND;
hierarchy_map(std::vector< std::pair<code_t, code_t> >& v)
: father_(v.size()), data_(v.size())
std::stable_sort(v.begin(), v.end());
for (position_type i=0;i<v.size(); ++i)
data_ = v.first;
position_type n = 0;
position_type c = NOT_FOUND;
for (position_type i=0;i<v.size(); ++i)
if (c == NOT_FOUND || father_[c] != v.second)
c = find(v.second);
father_ = c;
if (c == NOT_FOUND && (++n)>1)
throw std::logic_error("multiple roots");
v.clear();
position_type path_length(const code_t c) const
position_type cpos = find(c);
position_type n = 0;
while (cpos != NOT_FOUND)
++n;
cpos = father_[ find(data_[cpos]) ];
return n;
template <typename T>
std::valarray<T> path(const code_t c) const
const position_type n = path_length(c);
if (n==0)
throw std::outofrange("unknown code");
std::valarray<T> result(T(), n);
position_type cpos = find(c);
for (position_type i=n; i>0; )
result[--i] = cpos;
cpos = father_[ find(data_[cpos]) ];
return result;
bool less(const code_t c1, const code_t c2) const
const position_type p1 = find(c1);
const position_type p2 = find(c2);
if (p1==NOT_FOUND || p2==NOT_FOUND)
throw std::outofrange("unknown code");
return (father_[p1] == father_[p2]) && (p1 < p2);
// test if c1 is included in c2, i.e. if c1 is a child of c2
bool inclusion(const code_t c1, const code_t c2) const
const position_type p2 = find(c2);
if (p2 == NOT_FOUND)
throw std::outofrange("unknown code");
position_type p1 = find(c1);
while (p1 != NOT_FOUND)
if (p1 == p2)
return true;
p1 = father_[ find(data_[p1]) ];
return false;
// path1 is a subpath of path2 if it's longer
template <typename T>
static bool inclusion(const std::valarray<T>& path1, const std::valarray<T>& path2)
if (path1.size() < path2.size())
return false;
for (position_type i=0; i<path2.size(); ++i)
if (path1 != path2)
return false;
return true;
int main(int argc, char* argv[])
typedef std::pair<int, int> pair_t;
std::vector<pair_t> temp;
temp.pushback(pairt(232,-1));
temp.pushback(pairt(543,232));
temp.pushback(pairt(676,232));
temp.pushback(pairt(111,676));
temp.pushback(pairt(222,676));
double h = 3.14;
hierarchy_map<int> HM(temp);
std::valarray<double> p1 = HM.path<double>(111);
std::valarray<double> p2 = HM.path<double>(676);
bool t1 = hierarchy_map<int>::inclusion(p1, p2);
return 0;

https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa
http://bugreporter.apple.com

Similar Messages

  • Link error with installing 11.2.0.3 x64 on Ubuntu 11.10 x64

    Hi,
    I'm upgrading from 11.2.0.2 to 11.2.0.3 on an Ubuntu 11.10 x64 platform. During the link process of the installation, I kept on encountering a link error which looked
    like the following. This error firstly appeared in 'all_no_orcl'. If I clicked continue, this error would pop up when linking for other binaries. They all pointed to libocrb11.so. I could successfully installed 11.2.0.3 on another SUSE platform, but I'm wondering how I can make it work on Ubuntu. Not sure what packages I missed.
    Thanks in advance.
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoOpenFile'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCreateCtxExt'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoIO'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoFnameMax'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCommit2P'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCheckHdl'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoRenameFile'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoDeleteFile'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCloseFile'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoErrorMessage'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoGetSize'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCreateFile'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoOpenDirty'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCheckMount'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoDestroyCtx'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoControl'
    /hd15k/u01/app/oracle/product/11.2.0.3/dbhome_1/lib//libocrb11.so: undefined reference to `kgfoCreate2P'

    the problem because of gcc version in 11.10 ubuntu is 4.6, oracle relink need gcc 4.4
    if you upgrade from previous version of ubuntu, checked in /usr/bin
    ls -ltr gcc*
    -rwxr-xr-x 1 root root 349120 2011-09-16 07:31 gcc-4.6
    -rwxr-xr-x 1 root root 275952 2011-09-17 03:10 gcc-4.5
    -rwxr-xr-x 1 root root 259232 2011-10-05 14:56 gcc-4.4
    lrwxrwxrwx 1 root root 7 2011-11-12 07:13 gcc -> gcc-4.6
    rm gcc
    # ln -s gcc-4.4 gcc
    # ls -ltr gcc*
    -rwxr-xr-x 1 root root 349120 2011-09-16 07:31 gcc-4.6
    -rwxr-xr-x 1 root root 275952 2011-09-17 03:10 gcc-4.5
    -rwxr-xr-x 1 root root 259232 2011-10-05 14:56 gcc-4.4
    lrwxrwxrwx 1 root root 7 2012-02-01 11:25 gcc -> gcc-4.4
    you should be able to relink oracle.

  • JNI Unsatisfied Link Error

    Hello All:
    I have some java code that calls a C function in a dll. I have succesfully used the javah utility to generate the header file for my jni native implementation code and have build both the client java code as well as the dll using g++3.0 using Bloodshed Dev C++ (an open source IDE). When I go to execute the java code I get an unsatisfied link error saying my function is not recognized by the jvm. Does anyone have any suggestions on this issue?? I am using Win2k and jdk 1.4.1
    Here is what I've already tried:
    1) Have added the directory where the java class file as well as the dll to my PATH variable, I have even put the dll files in the jdk bin directory
    2) My dll loads three other dll's and calls a function in one of those dll's, I am using the loadLibrary function to load these dll's and am using function pointers to reference the actual function in the dll
    I was wondering if its a problem if I use g++ to build my dll, does the virtual machine assume by default that gcc is used, please let me know.
    Any help is much appreciated
    Thanks

    I've looked through the various postings on this issue and have tried some or all of the suggestions that were made relevant to my problem but I still keep getting this error. As a result I am attaching some code here:
    Listed below is my java code
    public class DecoderAdapter
    //instance vars
    private static DecoderAdapter decoderAdapObj;
    private String serNum="43543534654";
    private Hashtable decodeInfo;
    private final int DEC_SNTYPE_UNKNOWN=0;
    private final int DEC_SNTYPE_ADOBE_1A=10;
    private final int DEC_SNTYPE_ADOBE_1B=20;
    private final int DEC_SNTYPE_ADOBE_2A=30;
    private final int DEC_SNTYPE_ADOBE_2B=40;
    private int serNumType;
    static
         System.loadLibrary("javaWrapperProj");
    public DecoderAdapter() throws UnsatisfiedLinkError
    /** accessor for decodeInfo
    public Hashtable getDecodeInfoHash()
         return decodeInfo;
    /** mutator for decodeInfo
    public void setDecodeInfoHash()
         initializeHash();
    /** accessor for serial number type
    public int getSerNumType()
         return serNumType;
    /** mutator for serial number type
    public void setSerNumType(int serNumberType)
         serNumType = serNumberType;
    /** accessor for serial number
    public String getSerNum()
         return serNum;
    /** mutator for serial number type
    public void setSerNum(String serNumber)
         serNum = serNumber;
    public static void main(String[] args)
    //local vars
         try
    decoderAdapObj = new DecoderAdapter();
    int snType=decoderAdapObj.DEC_SNTYPE_UNKNOWN;
    String serialNum=decoderAdapObj.getSerNum();
    decoderAdapObj.setDecodeInfoHash();
    Hashtable myHash = decoderAdapObj.getDecodeInfoHash();     
         decoderAdapObj.setSerNumType(decoderAdapObj.DEC_SNTYPE_UNKNOWN);
         int responseCode=decodeSerNum(snType,serialNum,myHash);
         System.out.println("The response from decoding the serial number is "+responseCode);
         System.out.println("About to call the hashtable retrieval function");
         System.out.println("The media code returned="+decoderAdapObj.decodeInfo.get("mediaCode"));
         //getHashResults();
         catch (UnsatisfiedLinkError un)
         System.out.println("Caught an unsatisfied link exception with the message="+un.getMessage());
         System.out.println("The stack trace of this error is="+un.getStackTrace());
    /** This method is used
         to fill up the contents
         of the hashtable
    public void initializeHash()
         decodeInfo = new Hashtable();
         decodeInfo.put("errorCode",new Integer(0));
         decodeInfo.put("mediaCode",new String("temp"));
    //declaration of native method
    private static native int decodeSerNum(int snType,
    String serialNumberStr,
    Hashtable decodeInfoHash);
    The following is what gets generated by the javah utility:
    /* Header for class DecoderAdapter */
    #ifndef IncludedDecoderAdapter
    #define IncludedDecoderAdapter
    #ifdef __cplusplus
    extern "C" {
    #endif
    /* Inaccessible static: decoderAdapObj */
    * Class: DecoderAdapter
    * Method: decodeSerNum
    * Signature: (ILjava/lang/String;Ljava/util/Hashtable;)I
    JNIEXPORT jint JNICALL Java_DecoderAdapter_decodeSerNum
    (JNIEnv *, jobject, jint, jstring, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    And finally the following is my C implementation file:
    Date: 07/11/02 11:56
    Copyright:
    #include <jni.h>
    #include "Decoder.h"
    #include "DecoderAdapter.h"
    #include <iostream.h>
    #include <stdio.h>
    #include <windows.h>
    #include <conio.h>
    typedef int (WINAPI*cfunc)(int,char *,DecodeInfo *);
    JNIEXPORT jint JNICALL Java_DecoderAdapter_decodeSerNum
    (JNIEnv * env, jclass currentObj, jint serialNumberType, jstring serialNumber, jobject decodeInfoHash)
    HINSTANCE hLib=LoadLibrary("WCDSNDecoder.DLL");
    //HINSTANCE hLib1=LoadLibrary("Kernel32.DLL");
    //HINSTANCE hLib2=LoadLibrary("msvcrt.DLL");
    if(hLib==NULL) {
    cout << "Unable to load library!" << endl;
    getch();
    return 0;
    //load the dll at run time
    cfunc decodeSerialNumberPtr=(cfunc)GetProcAddress((HMODULE)hLib, "decodeSerialNumber");
    DecodeInfo result;
    //call decode serial number here
    //and pass in the serial number type
    //the serial number and the empty
    //struct containing the serial number info
    char * actualSerialNumber = const_cast<char *> (env->GetStringUTFChars(serialNumber,0));
    int serType = serialNumberType;
    int finalResult=decodeSerialNumberPtr(serType,actualSerialNumber,&result);
    //set the results from the Decode Info struct
    //int decodeSerialNumber(int serialNumberType,
    // char *serialNumberFrmtd,
    // DecodeInfo *serialNumInformation);
    //first return the Java class object that is the type of the
    //java object
    jclass decoder_class = env->GetObjectClass(currentObj);
    jclass decoder_hash_class = env->GetObjectClass(decodeInfoHash);
    //call the put method from the native code
    //on the hashtable object and pass it the necessary
    //arguements
    jmethodID putMethod = env->GetMethodID(decoder_hash_class,"put","(S,O)V");
    jstring key = env->NewStringUTF("mediaCode");
    jstring value = env->NewStringUTF(result.mediaCode);
    //now do the actual call to the method
    env->CallVoidMethod(decodeInfoHash,putMethod,key,value);
    //release memory here
    FreeLibrary((HMODULE)hLib);
    env->ReleaseStringUTFChars(serialNumber,actualSerialNumber);
    return finalResult;
    The exact error is shown below:
    Caught an unsatisfied link exception with the message=decodeSerNum
    My path variable's contents is shown below:
    PATH=C:\XEmacs\XEmacs-21.4.8\i586-pc-win32;C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Perforce;C:\JRE\1.1\bin;c:\webObjectsCode\dev\LocalDeveloper\Executables;C:\djdev\bin;C:\emacs-20.7\bin;C:\jakarta-ant-1.4.1\bin;C:\J2SDK1~1.1\bin;C:\Apple\Library\Executables;C:\Apple\bin;C:\Apple\Library\JDK\bin;C:\j2sdk1.4.1\include;C:\j2sdk1.4.1\include\winnt;C:\webObjectsCode\devWO5\sn_decoder\javaWrapperWork;C:\Program Files\Common Files\Microsoft Shared\VSA\7.0\VsaEnv
    Please note that I am successfully able to build a dll file.
    Any help would be appreciated...

  • [CS4] IDFactory link error - affects release only

    update: forgot to mention this only happens whily building release. debug version builds and loads.
    Hello,
    I ported a plugin from CS3 and CS4 and getting following link error (one for each DECLARE_PMID) while linking ID file. SDK samples compile and link just fine.
    Undefined symbols:
      "IDFactory::IDFactory(long const&, char*, long const&)", referenced from:
          __static_initialization_and_destruction_0(int, int)in ITMID.o
    Environment
    Mac 10.6.3 64-bit
    XCode 3.2.1 w GCC 4.0
    Linked against 10.4 SDK
    I am sure I am missing something obvious. Would save me lot of time if you could point it out or send me in right direction.
    Thanks
    Kapil

    BTW I have tried selecting all of the shapes before enabling
    bone tool...saw that as a possible solution on another forum,
    however no luck

  • Linker errors when linking OCCI 10.1.0  statically on RH AS 3.0 platform

    Hello All,
    I was trying to build an OCCI program on a Red Hat AS 3.0 Update 4 Platform, statically linking to OCCI libraries of Oracle 10.1.0 version. The g++ compiler version is 3.2.3.
    The Makefile and the errors that got generated is mentioned below. However, I could able to build the program when linking through shared library version of OCCI. My requirement is to build the program statically.
    I had been stuck up with this for almost a week and tried checking the previous postings in the forums/newsgroups, but not of much help. I added the following libraries :
    -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10\
    -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10
    to the Makefile, based on somebody's posting in OCI/OCCI forum. If I didn't provide
    -lpthread I get linker errors in pthread_xxx functions.
    Any help/pointers on this would be really appreciated.
    Makefile (static link)
    ======
    CXX=/usr/bin/g++
    ORA_HOME=/u01/app/oracle/product/10.1.0
    ifndef CXXFLAGS
    # Define C++ compiler flags to locate third-party header files as well as
    # any other options you may want.
    CXXFLAGS=-I${ORA_HOME}/rdbms/demo \
    -I${ORA_HOME}/rdbms/public \
    -I${ORA_HOME}/plsql/public \
    -I${ORA_HOME}/network/public
    endif
    # Include any header files in the current directoryj
    CXXFLAGS:=$(CXXFLAGS) -I . -g -static
    ifndef LDFLAGS
    # Define link paths for Oracle libraries.
    LDFLAGS=-L${ORA_HOME}/lib/ -L${ORA_HOME}/rdbms/lib/
    endif
    LIBS=-locci10 -lclntst10 -lnsl -ldl -lm \
    -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10\
    -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lpthread
    #LIBS=${ORA_HOME}/lib/libocci10.a ${ORA_HOME}/lib/libclntst10.a -lpthread -ldl
    OCCIPROG=SCDBUtilTest
    OCCIOBJ=SCDBUtil.o SCDBUtilTest.o
    debug: ${OCCIPROG}
    ${OCCIPROG}: ${OCCIOBJ}
    ${CXX} ${CXXFLAGS} -o $@ ${OCCIOBJ} ${LDFLAGS} ${LIBS}
    clean:
    -rm -f $(OCCIPROG) $(OCCIOBJ)
    When ran make, below is the output generated.
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -c -o SCDBUtil.o SCDBUtil.cpp
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -c -o SCDBUtilTest.o SCDBUtilTest.cpp
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -o SCDBUtilTest SCDBUtil.o SCDBUtilTest.o -L/u01/app/oracle/product/10.1.0/lib/ -L/u01/app/oracle/product/10.1.0/rdbms/lib/ -locci10 -lclntst10 -lnsl -ldl -lm -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lpthread
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sqmul.o)(.text+0xab): In function `sqmul_dlopen':
    : Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0x1089): In function `sntpcall':
    : Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0x10a1): In function `sntpcall':
    : Using 'endgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0xfa1): In function `sntpcall':
    : Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(si.o)(.text+0x14f): In function `sigunmu':
    : Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sniq.o)(.text+0x224): In function `snigun':
    : Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1427): In function `snlpcgthstbyad':
    : Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(slputcp.o)(.text+0x245): In function `slputcpsockaddr':
    : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sgslun.o)(.text+0x2ef0): In function `sgslunGetHostName':
    : Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0xe90): In function `snlpcgthstent':
    : Using 'gethostent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1945): In function `snlpcgtsrvbynm':
    : Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1b8b): In function `snlpcgtsrvbypt':
    : Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1702): In function `snlpcgtsrvent':
    : Using 'getservent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiStatementImpl.o)(.text+0x6ffb): In function `oracle::occi::StatementImpl::getObject(unsigned int)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0xf99): In function `oracle::occi::ResultSetImpl::getBFloat(unsigned int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x10d9): In function `oracle::occi::ResultSetImpl::getBDouble(unsigned int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x1ca8): In function `oracle::occi::ResultSetImpl::getObject(unsigned int)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x48b6): In function `oracle::occi::ResultSetImpl::defineConvertBFloat(oracle::occi::ResultSetImpl::Define*, float*, unsigned int*, int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x49e2): In function `oracle::occi::ResultSetImpl::defineConvertBDouble(oracle::occi::ResultSetImpl::Define*, double*, unsigned int*, int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x1aa): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x256): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x302): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<unsigned short, oracle::occi::utext_char_traits, std::allocator<unsigned short> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x3be): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<unsigned short, oracle::occi::utext_char_traits, std::allocator<unsigned short> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x48a): In function `oracle::occi::Timestamp::do_TimestampConstruct(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, void*)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0xb42): more undefined references to `OCIPGetTZI' follow
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiSQLExceptionImpl.o)(.text+0x91): In function `oracle::occi::SQLExceptionImpl::getNLSMessage(oracle::occi::Environment*) const':
    : undefined reference to `OCIPGetErrorMessageNLS'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiSQLExceptionImpl.o)(.text+0x15b): In function `oracle::occi::SQLExceptionImpl::getNLSUStringMessage(oracle::occi::Environment*) const':
    : undefined reference to `OCIPGetErrorMessageNLS'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x56): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::Connection const*, OCIAnyData*, bool)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x156): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::Connection const*, OCIAnyData*, bool)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x3ae): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::AnyDataCtx const*)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x4e6): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::AnyDataCtx const*)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x780): In function `oracle::occi::AnyDataImpl::setNull()':
    : undefined reference to `OCIPAnyDataSetNull'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x1cc5): In function `oracle::occi::AnyDataImpl::setObject(oracle::occi::PObject const*)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x2d6f): In function `oracle::occi::AnyDataImpl::getAsObject() const':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x39): In function `lstclo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x52): In function `lstclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x6f): In function `lstclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x46): In function `lstmclo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x5f): In function `lstmclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x7c): In function `lstmclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lxhcnv.o)(.text+0x366): In function `lxhcnv':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lxpname.o)(.text+0xc5): In function `lxpname':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sl.o)(.text+0x405): In function `sltln':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kge.o)(.text+0x2b19): In function `kgespf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kge.o)(.text+0x2d12): In function `kgespf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kgh.o)(.text+0x10d48): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpuini.o)(.text+0x1d70): In function `kpufhndl0':
    : undefined reference to `wtcsrfre'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpuini.o)(.text+0x7e00): In function `kpuinit0':
    : undefined reference to `wtcsrin'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb24.o)(.text+0x45): In function `lcvb24':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb24.o)(.text+0x9a): In function `lcvb24':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb2w.o)(.text+0x45): In function `lcvb2w':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb2w.o)(.text+0x9a): In function `lcvb2w':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpu.o)(.text+0x1c5): In function `lpuparse':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpu.o)(.text+0xf62): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstlo.o)(.text+0x44): In function `lstlo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmup.o)(.text+0x43): In function `lstmup':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstup.o)(.text+0x28): In function `lstup':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstup.o)(.text+0x44): In function `lstup':
    : undefined reference to `__ctype_toupper'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x54f5): In function `LsxvParseDecimal':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x6da8): In function `LsxValidateBinary':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x7710): In function `LsxValidateLong':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb274): In function `LsxvIsLanguage':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb316): In function `LsxvIsLanguage':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb3ac): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x271): In function `kpuccCacheErr':
    : undefined reference to `wtcLerr'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x2a6): In function `kpuccMainErr':
    : undefined reference to `wtcMerr'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x2e1): In function `kpuccGoRemote':
    : undefined reference to `wtclkm'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x326): In function `kpuccGetStats':
    : undefined reference to `wtcstu'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpxbuf.o)(.text+0x2a4f): In function `LpxbufSingleProcess':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmlo.o)(.text+0x43): In function `lstmlo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nldt.o)(.text+0x9a1): In function `nldtstr2lv':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x42f): In function `nlfifpf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x462): In function `nlfifpf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x4d4): more undefined references to `__ctype_b' follow
    collect2: ld returned 1 exit status
    make: *** [SCDBUtilTest] Error 1
    Thanks & Regards,
    Karthik D

    Hi ,
    Oh! Anyway, thanks for the information. However, the glibc version I use is glibc-2.3.2-95.30.
    There is a bit of story behind the reason we tried to use static linking. Actually, the application around which we use to develop solutions supports only Oracle 9i. We were developing some components using the C++ SDK provided by application vendor and that components need some information from DB for processing. So, we needed to write a DB class to do that. Since, we found Oracle supports C++ DB interface(OCCI), we thought to use that.
    We had to use RH AS 3.0 platform and the gcc compiler 3.2.x+ for compiling our component code. But Oracle 9i OCCI code doesn't get compiled with gcc/g++ 3.2.x+ compilers. So, we planned to use Oracle 10g OCCI libraries for building the DB class and link it to the custom component we had developed.
    In the run-time environment, we had to install both Oracle 9i clients and Oracle 10g clients since the app requires Oracle 9i and the custom component requires Oracle 10g. We did some kind of tweaking (by providing symbolic links to Oracle 10g OCCI libraries from Oracle 9i client directory) so that both the app and the component gets started.
    I know this is not a good idea. But we didn't want to spend much time on this at that time since we were doing a proof-of-concept. Later, we thought what could be done. We thought ,first we can try lthe custom component linked to static library version of OCCI. That's the reason we tried of static linking.
    The other option is to use OCI interface. But this is a bit of work since we need to write lot of wrapper methods to handle intricacies with OCI and OCI code is cumbersome compared to OCCI.
    Hope now you could have got the problem, I am talking about. Any other better ways?
    Thanks
    Karthik

  • Strange Linker error using Forte 6

    Hi,
    I am getting an unusual linker error while trying to compile something using Forte 6 update 2. First some backgrond
    We have an internal application currently running on a Solaris 2.6 box. I wish to move it to a Solaris 8 box. The application uses mainly apache, perl and mysql. One of the perl modules used is the old SPGrove module written by James Clark (www.jclark.com), which in turn uses the libsp.a library from the 'sp' distribution by the same author. I can find information on compiling/running 'sp' on O/S versions upto solaris 7 but not 8. Having tried all the available versions of gcc I finally gave up and tried Forte 6.
    Having had problems with applications and dynamic libraries complied with different compilers before I have compiled perl 5.6.1 using Forte 6, I have installed all the required perl modules and I have successfully compiled version 1.3.4 of the 'sp' package.
    The old SGML::SPGrove modules is no longer available and has been replaced by two newer ones, SGML::Grove, which installs fine, and SGML::SPGroveBuilder, which has some C++ code which is linked against the libsp.a library as mentioned above. The module (once certain options have been set to get the correct environment) compiles fine but when I run the test suit I get the following error.
    Can't load 'blib/arch/auto/SGML/SPGroveBuilder/SPGroveBuilder.so' for module SGML::SPGroveBuilder: ld.so.1: /usr/local/bin/perl: fatal: relocation error: file blib/arch/auto/SGML/SPGroveBuilder/SPGroveBuilder.so: symbol __1cG__CrunLvector_copy6Fpv1IIpF11_vpF1_v_v_: referenced symbol not found at /usr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.
    The symbol '__1cG__CrunLvector_copy6Fpv1IIpF11_vpF1_v_v_' is contained in libCrun.so in the Forte installation. I have no idea what it is, or why I get the error.
    Sorry to be so long winded, but I wanted to give enough information so that I didnt get 'too many' easy to answer questions about the environment.
    'uname -snrvmapiX' for the system is:
    SunOS atlas 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60System = SunOS
    Node = atlas
    Release = 5.8
    KernelID = Generic_108528-13
    Machine = sun4u
    BusType = <unknown>
    Serial = <unknown>
    Users = <unknown>
    OEM# = 0
    Origin# = 1
    NumCPU = 1
    Many thanks.
    Sean Timmins
    Systems Administrator

    Just to clarify, the I get the error during the 'make test' part of the normal perl module build process for installing the SGML::SPGroveBuilder module (perl Makefile.PL; make; make test; make install).
    Perl and SGML::SPGroveBuilder are both complied using Forte 6 update 2. The only difference being that perl (being normal C code) was compiled using the C compiler '/usr/local/SUNWspro/bin/cc' and the module requires the C++ complile '/usr/local/SUNWspro/bin/CC'.
    I have to make minor modifications to Makefile.PL before it will compile at all. These modifications are:
    1) Forcing the C++ compiler as perl will try to use exactly the same binary as was used to compile itself.
    2) Setting a few #define's so that the same ones are used to build the module as were used to build the sp library that is linked in with the module.
    3) Adding the various directories where both libsp.a (yes statically linked, no dynamic one in the sp distribution) and the required header files (all in the sp distribution) are located.
    I have since tried recompiling perl (with Forte 6 update 2) with no dynamicaly loaded libraries and get the same error. I have also found a tiny little patch to OpenSPv1.5pre5 (which is the replacement for the original sp distribution) which allowed me to compile eveything with gcc 3.1, perl, opensp (v1.5pre5) and SGML::SPGroveBuilder, and I get a very similar error at the same stage but a different symbol name.
    I am begining to think that its gone to far and there are too many branching oppertunities where I have made a mistake (I've really tried way way way too many combinations now), or that the SPGroveBuilder module simply has a probelm with the C++ code in it. It has not been updated in some time.
    I am going to try removing everything from the box and start from scratch, patch it to the hilt and try it from the beginning.
    Of course, any flashes of brilliance that come to mind would still be greatly appreciated :-)
    Sean Timmins
    Systems Administrator

  • Link Error with Sample on Solaris

    I am getting linking error when compiling the sample for XML C++ Parser, help anyone ?
    make SAXSample
    gcc -o SAXSample -I../include SAXSample.cpp -L../lib -lxml8 -lxmlc8 -lcore8 -lnls8 -lcore8 -lnls8 -lcore8 -lnsl -lsocket
    Undefined first referenced
    symbol in file
    cout /var/tmp/cczSDNUP.o
    XMLParser::xmlterm(void) /var/tmp/cczSDNUP.o
    XMLParser::xmlinit(unsigned char *, void (*)(void *, unsigned char const *, unsigned int), void *, xmlsaxcb *, void *, unsigned char *)/var/tmp/cczSDNUP.o
    ostream::operator<<(char const *) /var/tmp/cczSDNUP.o
    ostream::operator<<(unsigned int) /var/tmp/cczSDNUP.o
    XMLParser::xmlparse(unsigned char *, unsigned char *, unsigned int)/var/tmp/cczSDNUP.o
    ostream::write(unsigned char const *, int)/var/tmp/cczSDNUP.o
    ostream::flush(void) /var/tmp/cczSDNUP.o
    ld: fatal: Symbol referencing errors. No output written to SAXSample
    collect2: ld returned 1 exit status
    *** Error code 1
    make: Fatal error: Command failed for target `SAXSample'
    null

    I am getting this problem as well. I see it was also reported by 2 other people earler. Has anyone resolved this yet? I also have these unresolved external problems when using the C V1 XML parser. It is almost as if the libs downloaded are for a different version of Solaris and not recognized by the newly compiled objects. I have tried a number of things to resolve this without success.
    Any help would be greatly appreciated.
    Thanks
    Julie Bartlett
    null

  • Link error(ins_ctx.mk) during installation oracle DB(11.2.0.2)

    Hi,
    While I am trying to install Oracle software on RAC setup.I am getting following linking error message at OUI. If I ignore the massage and clink on "continue" then database software is installed successfully.
    Configuration detail.
    1. OEL 5.4 (2 Nodes)
    2. ASM
    3. Clusterware 11.2.0.2
    4. Installed RPM details checked from following link and looking fine.
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16769/toc.htm#BHCGAEJA
    After investigated the issue I found following error message in make.log
    /usr/bin/make -f ins_ctx.mk install ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/dbhome_1/gcc -o ctxload -m32 -L/u01/app/oracle/product/11.2.0.2/dbhome_1/ctx/lib/ -L/u01/app/oracle/product/11.2.0.2/dbhome_1/lib/ -L/u01/app/oracle/product/11.2.0.2/dbhome_1/lib/stubs/ -L/u01/app/oracle/product/11.2.0.2/dbhome_1/lib/ -lirc -lipgo /u01/app/oracle/product/11.2.0.2/dbhome_1/ctx/lib/sdrz.o -lctxs11 -lctx11 -lctxs11 -lzx11 -lgx11 -lctx11 -lzx11 -lgx11 -lclntsh `cat /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11 -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `cat /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.2.0.2/dbhome_1/lib -lm `cat /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/sysliblist` -ldl -lm -L/u01/app/oracle/product/11.2.0.2/dbhome_1/lib
    /usr/bin/ld: skipping incompatible /u01/app/oracle/product/11.2.0.2/dbhome_1/lib//libirc.a when searching for -lirc
    /usr/bin/ld: skipping incompatible /u01/app/oracle/product/11.2.0.2/dbhome_1/lib//libirc.a when searching for -lirc
    /usr/bin/ld: skipping incompatible /u01/app/oracle/product/11.2.0.2/dbhome_1/lib/libirc.a when searching for -lirc
    /usr/bin/ld: cannot find -lirc
    collect2: ld returned 1 exit status
    make: *** [ctxload] Error 1
    Kindly suggest what can be done to resolve the issue.
    Thanks-
    Rajdeep

    Hi,
    I have 64-bit machine on which OEL 5.4 O/S os installed.I used correct version of Oracle database (11.2.0.2) software to install.
    Please refer the output of versions are used.
    uname -a
    Linux Node-01 2.6.18-164.el5 #1 SMP Thu Sep 3 04:15:13 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    Following are the database software setup used for installation.
    p10098816_112020_Linux-x86-64_1of7.zip
    p10098816_112020_Linux-x86-64_2of7.zip
    For any doubt of version, I used same setup to install database software version (11.2.0.1) and succeed in that.But when tried for 11.2.0.2 installation on same setup then failed. I feel this is some other issue.
    Thanks-
    Rajdeep

  • Link error, install 10gR2 on RHAS4 u2 on IBM pSeries

    I'm installing Oracle 10gR2 on RHAS 4 update2, the hardware is IBM pSeries. During the link stage, I got several link error, the first one is precomp, the error message from make.log is here:
    Linking /opt/oracle/product/10.2.0/db/precomp/lib/proc
    /usr/lib/gcc/ppc64-redhat-linux/3.4.4/libgcc_s_64.so: undefined reference to `__libc_stack_end'
    collect2: ld returned 1 exit status
    /bin/chmod: cannot access `/opt/oracle/product/10.2.0/db/precomp/lib/proc': No such file or directory
    make: *** [opt/oracle/product/10.2.0/db/precomp/lib/proc] Error 1
    I'm unable to get a workaround so I click continue to ignore it, but then a serie of errors occured, all are complaining "undefined reference to `__libc_stack_end'". However, the install goes smooth on a rhas4 update1 system.
    Does this mean 10gR2 for Linux on POWER does not support rhas4 update2? or I'm missing something? Any suggestion's appreciated!

    im having a problem too, i can't launch the application gui. This machine hasn't any video card, so no X server, only ssh or vnc session. Any help?

  • C Code NI-VISA linker error

    I wrote the following C command to pass SCPI commands to Rohde&Schwarz FSL
    #define NIVISA_PXI
    #include <visa.h>
    #define MAX_CNT 200
    int main(void)
    ViStatus status; /* For checking errors */
    ViSession defaultRM, instr; /* Communication channels */
    ViUInt32 retCount; /* Return count from string I/O */
    ViChar buffer[MAX_CNT]; /* Buffer for string I/O */
    status = viOpenDefaultRM(&defaultRM);
    if (status < VI_SUCCESS)
    return -1;
    status = viWrite(instr, "*RST", 6, &retCount);
    status = viClose(instr);
    status = viClose(defaultRM);
    return 0;
    I am getting linker errors.   [Linker error] undefined reference to `viOpenDefaultRM@4' 
    I use Bloodshed Dev C++ . I have included the header files from the VXIPNP folder to the include folder od Dev C++. It had 11 files.it had 4 header files visa.h, visatype.h, vpptype.h and rsfsp.h
    Do i need to install any header file or libraries? Please help, this is the first time I am using VISA.H 
    Solved!
    Go to Solution.

    [root@localhost raavan]# gcc main.c -L /usr/local/lib/libvisa.so
    /tmp/ccKHyQta.o: In function `sendscpi':
    main.c: (.text+0x2e): undefined reference to `viWrite'
    /tmp/ccKHyQta.o: In function `main':
    main.c: (.text+0x52): undefined reference to `viOpenDefaultRM'
    main.c: (.text+0x99): undefined reference to `viOpen'
    main.c: (.text+0xbb): undefined reference to `viSetAttribute'
    main.c: (.text+0xd9): undefined reference to `viClose'
    main.c: (.text+0xeb): undefined reference to `viClose'
    collect2: ld returned 1 exit status
    contents of main.c are:
     #include "visa.h"
    #include "stdio.h"
    #include "string.h"
    #define MAX_CNT 200
    char scpi[50]; /*To store the SCPI commands*/
    ViStatus status; /* For checking errors */
    ViSession defaultRM, instr; /* Communication channels */
    ViUInt32 retCount; /* Return count from string I/O */
    ViChar buffer[MAX_CNT]; /* Buffer for string I/O */
    void sendscpi (char *s)  
         status = viWrite(instr, (ViBuf)s, strlen (s), &retCount);
    int main(void)
    /* Begin by initializing the system*/
    status = viOpenDefaultRM(&defaultRM);
    if (status < VI_SUCCESS) {
    return -1;
    /* Open communication with TCPIP Device at Primary Addr FSL (192.168.186.107)*/
    status = viOpen(defaultRM, "192.168.186.107", VI_NULL, VI_NULL,&instr);
    /* Set the timeout for message-based communication*/
    status = viSetAttribute(instr, VI_ATTR_TMO_VALUE, 5000);
    /* Send SCPI commands for the test case */
    sendscpi ("*RST" ) ;
    /* Close down the system */
    status = viClose(instr);
    status = viClose(defaultRM);
    return 0;
    Please help!
    Message Edited by rohit_rs on 03-12-2009 07:04 AM
    Message Edited by rohit_rs on 03-12-2009 07:04 AM

  • Linking Error - ihsodbc sdo_on ctx_on

    Hi All,
    I was trying to install OAS 10g R2 (10.1.2.0.2) on linux-6 64-bit and I have installed all required packages that supports 32-bit as well. I am getting following linking error, any ones help is much appreciated.
    - Linking hsodbc agent
    rm -f /u01/oracle/product/10.1.2/oraInfra/rdbms/lib/hsodbc
    gcc -o /u01/oracle/product/10.1.2/oraInfra/rdbms/lib/hsodbc -L/u01/oracle/product/10.1.2/oraInfra/rdbms/lib/ -L/u01/oracle/product/10.1.2/oraInfra/lib/ -L/u01/oracle/product/10.1.2/oraInfra/lib/stubs/   /u01/oracle/product/10.1.2/oraInfra/hs/lib/hsodbc.o         /u01/oracle/product/10.1.2/oraInfra/rdbms/lib/defopt.o  /u01/oracle/product/10.1.2/oraInfra/rdbms/lib/homts.o          -L/u01/oracle/product/10.1.2/oraInfra/lib/ -lnavhoa  -lhsnav -lhsbase  -lagtsh -lpls10  -lplp10   -lclntsh  -lcore10 -lxml10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 /u01/oracle/product/10.1.2/oraInfra/lib/libgeneric10.a   `cat /u01/oracle/product/10.1.2/oraInfra/lib/sysliblist` -Wl,-rpath,/u01/oracle/product/10.1.2/oraInfra/lib -lm    `cat /u01/oracle/product/10.1.2/oraInfra/lib/sysliblist` -ldl -lm   -L/u01/oracle/product/10.1.2/oraInfra/lib -L/u01/oracle/product/10.1.2/oraInfra/lib/stubs/  -lvsn10
    /lib/libfreebl3.so: undefined reference to `__memcpy_chk@GLIBC_2.3.4'
    /lib/libfreebl3.so: undefined reference to `__snprintf_chk@GLIBC_2.3.4'
    /lib/libfreebl3.so: undefined reference to `__fread_chk@GLIBC_2.7'
    /lib/libfreebl3.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
    /lib/libfreebl3.so: undefined reference to `__memset_chk@GLIBC_2.3.4'
    /lib/libfreebl3.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    /lib/libfreebl3.so: undefined reference to `__ctype_toupper_loc@GLIBC_2.3'
    /lib/libfreebl3.so: undefined reference to `__fprintf_chk@GLIBC_2.3.4'
    /lib/libfreebl3.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
    collect2: ld returned 1 exit status
    make: *** [/u01/oracle/product/10.1.2/oraInfra/rdbms/lib/hsodbc] Error 1
    End output from spawned process.
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target 'ihsodbc sdo_on ctx_on' of makefile '/u01/oracle/product/10.1.2/oraInfra/rdbms/lib/ins_rdbms.mk'. See '/u01/oracle/oraInventory/logs/installActions2014-07-20_10-31-02AM.log' for details.
    Exception Severity: 1
    Regards,

    Hi Nicholas & Prakash,
    Installation of 10.2 database is also stopped at same location dbca. Please suggest me any solution.
    INFO: Configuration assistant "Oracle Net Configuration Assistant" succeeded
    INFO: Command = /u01/oracle/product/10.2.0/db_1/bin/dbca  -progress_only  -createDatabase -templateName General_Purpose.dbc -gdbName infradb -sid apps  -sysPassword 053221345ba434ac  -systemPassword 053221345ba434ac  -sysmanPassword 0053221345ba434a  -dbsnmpPassword 053221345ba434ac  -emConfiguration NOEMAIL  -hostUserName oracle -hostUserPassword 053221345ba434acsd    -datafileJarLocation /u01/oracle/product/10.2.0/db_1/assistants/dbca/templates  -datafileDestination /u01/oracle/product/10.2.0/oradata/ -responseFile NO_VALUE   -characterset WE8ISO8859P1   -obfuscatedPasswords true  -sampleSchema false -oratabLocation /u01/oracle/product/10.2.0/db_1/install/oratab  -recoveryAreaDestination /u01/oracle/product/10.2.0/flash_recovery_area/
    INFO: --------------------------------------
    INFO: The "/u01/oracle/product/10.2.0/db_1/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    INFO: The "/u01/oracle/product/10.2.0/db_1/cfgtoollogs/configToolAllCommands" script contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    SEVERE: OUI-25029:One or more "Recommended" configuration assistants have not completed successfully. Not successfully running any "Recommended" assistant means your system will not be correctly configured.
    INFO: User Selected: Yes/OK
    WARNING: Do you really want to exit?
    INFO: User Selected: Yes/OK
    INFO: The OUICA command is launched from /u01/oracle/product/10.2.0/db_1/oui/bin/ouica.sh.
    *** Starting OUICA ***
    Oracle Home set to /u01/oracle/product/10.2.0/db_1
    Configuration directory is set to /u01/oracle/product/10.2.0/db_1/cfgtoollogs. All xml files under the directory will be processed
    Regards.

  • Installation of 11i on 32-Bits OEL4 having linking error.

    Hi,
    I am trying to install 11i (11.5.10.2) on OLE 4.x 32-Bits, but having linking errors when adlnkoh.sh running. The log show following error message cat 10120907.log".
    adlnkoh.sh started at Fri Oct 12 09:21:06 EDT 2012
    logfile located in /ebs11i/oracle/visdb/9.2.0/install/make.log
    Error while running adlnkoh.sh. Please check logfile
    Errors while running adlnkoh.sh
    There was an error while running the command - /ebs11i/oracle/visdb/9.2.0/temp/VIS_ebs11i40/adrun9i.sh APPS APPS
    /ebs11i/oracle/visdb/9.2.0/appsutil/install/adlnkoh.sh: line 207: /ebs11i/oracle/visdb/9.2.0/bin/sqlplus: No such file or directory
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process. Check log file for details.
    Running Database Install Driver for VIS instance
    Now the make log /ebs11i/oracle/visdb/9.2.0/install/make.log is showing following messages:
    running genclntsh...
    /ebs11i/oracle/visdb/9.2.0/rdbms/lib/kpudfo.o: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    genclntsh: Failed to link libclntsh.so.10.1
    rm -f oracle dbv tstshm maxmem orapwd dbfsize cursize genoci extproc extproc32 hsalloci hsots hsdepxa dgmgrl dumpsga mapsga osh sbttest expdp impdp imp exp sqlldr rman nid extjob extjobo genezi ikfod grdcscan /ebs11i/oracle/visdb/9.2.0/rdbms/lib/ksms.s /ebs11i/oracle/visdb/9.2.0/rdbms/lib/ksms.o
    But when I check details about file kpudfo.o, it is showing 64-Bits, How come this file is 64-Bits when I am installing 32-Bits application?
    [oracle@ebs11i40:/ebs11i]$ file /ebs11i/oracle/visdb/9.2.0/rdbms/lib/kpudfo.o
    /ebs11i/oracle/visdb/9.2.0/rdbms/lib/kpudfo.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
    Please help me with this issue.
    Thanks.

    There was an error while running the command - /ebs11i/oracle/visdb/9.2.0/temp/VIS_ebs11i40/adrun9i.sh APPS APPS
    /ebs11i/oracle/visdb/9.2.0/appsutil/install/adlnkoh.sh: line 207: /ebs11i/oracle/visdb/9.2.0/bin/sqlplus: No such file or directory
    RW-50010: Error: - script has returned an error: 1
    RW-50004: Error code received when running external process. Check log file for details.
    Running Database Install Driver for VIS instanceWhat version of gcc have you installed? Please make sure you are using the correct version (Perl Adcfgclone.pl dbTechStack Failed While Relink /usr/lib/gcc/i386-redhat-linux/3.4.6/libgcc_s.so: undefined reference to`dl_iterate_phdr@GLIBC_2.2.4' [ID 417605.1]).
    /ebs11i/oracle/visdb/9.2.0/rdbms/lib/kpudfo.o: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    genclntsh: Failed to link libclntsh.so.10.1
    rm -f oracle dbv tstshm maxmem orapwd dbfsize cursize genoci extproc extproc32 hsalloci hsots hsdepxa dgmgrl dumpsga mapsga osh sbttest expdp impdp imp exp sqlldr rman nid extjob extjobo genezi ikfod grdcscan /ebs11i/oracle/visdb/9.2.0/rdbms/lib/ksms.s /ebs11i/oracle/visdb/9.2.0/rdbms/lib/ksms.o
    But when I check details about file kpudfo.o, it is showing 64-Bits, How come this file is 64-Bits when I am installing 32-Bits application?
    [oracle@ebs11i40:/ebs11i]$ file /ebs11i/oracle/visdb/9.2.0/rdbms/lib/kpudfo.o
    /ebs11i/oracle/visdb/9.2.0/rdbms/lib/kpudfo.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
    Please help me with this issue.What is the output of "uname -m" command? -- Installing onto Linux And Receive error: Genclntsh: Failed To Link Libclntsh.So.10.1 [ID 340861.1]
    Thanks,
    Hussein

  • Linker Error during compiling ODBC WinCE C++_Sample Project

    I am devloping a ODBC application for PocketPC2003 using OLite 10g Release 10.3.0.2. before that i am understanding the sample application provided with Olite.
    I followed all the instructions provided in ReadMe.txt file available before using VC++ sample. After making all the settings and compiling i am getting following linker errors as mentioned below.
    Any solution for this problem at the earliest will be appreciated, i have tried link all the libraries provided with WinCE armv4.
    Linker Error Messages:
    Error     1     error LNK2019: unresolved external symbol SQLExecDirect referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     2     error LNK2019: unresolved external symbol SQLFreeStmt referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     3     error LNK2019: unresolved external symbol SQLGetData referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     4     error LNK2019: unresolved external symbol SQLFetch referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     5     error LNK2019: unresolved external symbol SQLFreeEnv referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     6     error LNK2019: unresolved external symbol SQLFreeConnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     7     error LNK2019: unresolved external symbol SQLDisconnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     8     error LNK2019: unresolved external symbol SQLConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     9     error LNK2019: unresolved external symbol SQLAllocConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     10     error LNK2019: unresolved external symbol SQLAllocEnv referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     11     error LNK2019: unresolved external symbol SQLError referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     12     error LNK2019: unresolved external symbol SQLDescribeCol referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     13     error LNK2019: unresolved external symbol SQLNumResultCols referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     14     error LNK2019: unresolved external symbol SQLAllocStmt referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj

    Hi,
    The OLITE forum (Database Mobile Server (inc. legacy Database Lite) would be a better place to post your issue. This forum deals with the ODBC driver that connects to a "normal" Oracle database.
    Hope it helps,
    Greg
    Edited by: gdarling on Nov 12, 2008 8:31 AM

  • The broken link error

    Hi,
    Please help me with this broken link error in Office Excel 2010. Thank you.
    The problem is: a broken link cannot be removed from the file. The link was used in data validation, which refers to a list of values. After the path was corrected, it still shows there’s a broken link. Here are the details:
    I have 4 files named “000TVA_Test – 3”, “000TVA_Test – 4”, “000TVA_Test – 5”, and “000TVA_Test – 6”. The posterior files were developed based on the previous files.
    In Test-3, sheet “Template “, cell “L4”, “O4”, “R4”… were built as dropdown list using data validation. The list source is in the “Library” worksheet. There’s no problem so far.
    Test-4 was firstly copied from Test-3. In this file I renamed the worksheet from “Library” to “Setting” and the link was broken from here. I can also fix the broken link in this file. (While I didn’t realize there was a broken link.)
    In Test-5 I fixed the path, but every time when opening the file, the broken link still shows.
    In Test-6 I’ve removed the data validations. The broken link is still there.
    I tried to find solutions online. I tried common methods, cannot find anything in the files is still using links. I also tried the “findlink.xla” add-in, but it only worked for Test-4, and couldn’t find the link in other files.
    Please help. Thank you!
    I uploaded files here: https://onedrive.live.com/redir?resid=1A97736E0ABBAA41!113&authkey=!AF5wAd9rwUPnYyE&ithint=folder%2cxlsm
    Thanks again!

    Hi,
    Based on my tested the files downloaded, I found that Test-5 & Test-6 included the "A defined name that refers to an external workbook", Test-4 had not. (Please click Formula Tab>Name Manage, you'll see them.)
    However, the Break Links command cannot break the following types of links:   
    A defined name that refers to an external workbook
    A ListBox control with an input range that refers to an external workbook.
    A DropDown control with an input range that refers to an external workbook.
    http://support2.microsoft.com/kb/291984/en-us (It also applies to Excel 2010)
    Thus, we'd better try the workaround: re-build the Test-5 & Test 6.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I am getting an linker error LNK2001 : unresolved symbol _main while compiling Microsoft c code

    I am writng a simple application in C language for communicating with GPIB. when I compile the c file I am getting a linker error
    LIBC.lib(ctr0.obj): LNK2001 error: unresolved sysmbol _main
    I compile the application in the dos window using the command
    cl gpibApplication.c gpib-32.obj.
    Could anyone tell me how to remove this error

    Hello-
    It sounds like the main function is missing from the gpibApplication.c file. Be sure that the following function is somewhere in the code:
    int main (int argc, char *argv[])
    Also, note that this function is case sensitive, so be sure main is not capitalized.
    Randy Solomonson
    Application Engineer
    National Instruments

Maybe you are looking for