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

Similar Messages

  • Link error with Forte C++ Update 2 -compat=4

    We've just upgraded to the Forte 6.0 update 2 C++ compiler on
    Solaris 2.6. I'm getting the following link error when linking
    against libraries built with the 4.2 C++ compiler.
    Undefined               first referenced
    symbol                in file
    __rtaccess(MOperation&) /home/eng/sharonc/AdCORBA/CorbaRv-dev/export/s4_56_FORTE_Debug/lib/libcorbarv.so
    __rtaccess(MHash&) /home/eng/sharonc/AdCORBA/CorbaRv-dev/export/s4_56_FORTE_Debug/lib/libcorbarv.so
    __rtaccess(MPublisher&) /home/eng/sharonc/AdCORBA/CorbaRv-dev/export/s4_56_FORTE_Debug/lib/libcorbarv.so
    __rtaccess(MApp&)
    ld: fatal: Symbol referencing errors. No output written to ./tibcorbarvb
    gmake[1]: *** [tibcorbarvb] Error 1
    I've made sure the required patches for the Forte compiler are installed and the system was rebooted.
    I use the following flags when linking:
    CC -mt -g -xildoff -pto -KPIC -D_REENTRANT -compat
    -features=rtti,namespace,bool,localfor,mutable -zmuldefs
    I use -features as I also link with some libraries that use features
    of C++ not available in the 4.2 compiler. However the link
    errors are from the library that is built with the 4.2 compiler.
    Everything compiled and linked fine with Forte 6.0 Update 1.
    This is something new with the update 2 compiler.
    Any help is appreciated.

    Hi There,
    I see that youare using the compiler flag -compat
    with no value assigned.
    This means it defaults 5.0C++ compiler comatibilty mode.
    Since you mentioned in your email that you get the error message from the library built with 4.2 C++
    compiler, try -compat=4 flag.
    See the C++ migration guide for more information
    from http://docs.sun.com
    ....jagruti
    Developers Technical Support
    Sun Microsystems Inc.
    http://www.sun.com/developers/support

  • Linker error using extern with 2 libs

    Hi,
      I have written two libraries, both libraries need to share access to a variable, GblVal. So in one lib, when GblVal is changed, the other lib should also see this change.
    I have tried to achieve this through extern in the following setup:
    lib1:
    lib1.c:
    int GblSum;
    void Do(){
    GblSum=1;
    lib1.h:
    extern int GblSum;
    lib2.c:
    #include "lib1.h"
    void check(){
    printf("%d",GblSum);
    finally I have a main process that has both compiled libs
    main.c:
    Do();
    check();
    obviously my code doesn't actually do the above, but this is just the gist of what I'm trying to do. I'm fairly certain that I am setting my extern variable up right, however I can't compile lib2 due to:
    Undefined symbol "_GblNum" referenced in lib2.c
     what am I doing wrong? I have suspicions that this is a linker error but I'm not really sure how to fix it.
    thanks

    Static libraries (usual file extension .lib) are simply collections of compiled object files. To use functions and data contained in a static library in an application, the library must be specified as one of the input files to the application. At link time, the linker searches the library to resolve unsatisfied function and data references and extracts the object modules required to satisfy them.
    Dynamic Link Libraries (usual file extension .dll) are compiled and linked code modules (that is, they contain their own run-time support) that expose the addresses of particular functions (and, less often, data items) contained within the module. If an application uses functions from a dynamic link library, the DLL is also loaded when the application is run and the function/data addresses made known to the application. DLLs are most often used to share common code between applications, but because they are self-contained they are also a common way of building applications using different technologies (e.g. a CVI application can use a DLL built using Delphi or VC++).
    Normally, a DLL is associated with an import library which is linked in with the calling application. This import library resolves references to functions and data in the DLL used by the calling application by 'telling' the application which DLL the functions are in and how to find them in that DLL. Applications can also explicitly load DLLs at run-time if required.
    Martin
    Certified CVI Developer

  • IDCS3 Mac: Strange Link error

    I am compiling a CS3 plugin and getting a link error I cannot track down. It looks like this:
    Linking /source code/.../CRF(1 error)
    can't locate file for: -lPublicPlugin
    file: - lPublicPlugin is not an object file (not allowed in a library)
    I have done several searches on variations of lPublicPlugin, including IPublicPlugin, and PublicPlugin,and the only thing that comes close is a reference to the libpublicplugin.a library that is included by DollyXs when I generate the project.
    Can anyone suggest a method for tracking down this problem?
    TIA!
    John

    I have found my problem and all InDesign developers who are using Xcode needs to know what it was.
    This project was originally created by DollyXs, which included all appropriate library search paths for a successful link. However, I needed to add the mysqlclient.a library as well, so I did so by dragging and dropping. The result was that Xcode erased the library search path that pointed to the InDesign static library "libPublicPlugIn.a," replacing it with the path that pointed to the dropped library.
    So, if you need to add additional libraries to the project, take care that you somehow preserve the library search paths that already exist in that field, if you intend to drag and drop the library onto the project.
    I do not know if this error will be prevented if the programmer uses the Add Files dialog to add the library.
    Because of the importance of this information, I am also placing this message in its own thread on the forum.
    R,
    John

  • Compiling packages with libapr in it, strange link errors

    On my Solaris 10 boxen, suddenly I cannot build stuff anymore that utilizes Apache's apr.
    This includes Apache 2 (2.0.53 and 2.0.54), and subversion.
    The funny thing is, I did build 2.0.53 a few weeks ago, and did not bump into the problem. Rebuilding it, with identical configure options, environment vars and make invocation, leads to the following errors.
    They make little sense to me. Clues, anyone?
    The following output is from an attempt to build subversion. The same errors occur when building Apache 2:
    ---- Snip ----
    phil@turing> pwd; cat PHIL/build
    /phil/sw/sunos/i386/obj/subversion-1.1.4
    #! /bin/sh
    unset CPPFLAGS
    unset LDFLAGS
    unset LD_LIBRARY_PATH
    LD_RUN_PATH=/phil/sw/sunos/i386/lib; export LD_RUN_PATH
    /phil/sw/src/subversion-1.1.4/configure \
    --prefix=/phil/sw/sunos/i386/pkg/subversion-1.1.4  \
    --disable-mod-activation  \
    --enable-javahl  \
    --with-berkeley-db=/phil/sw/sunos/i386/pkg/db-4.2.52  \
    --with-editor=vi  \
    --with-zlib
    make
    phil@turing> sh ./PHIL/build
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_tryrdlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_exit@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setstacksize@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_create@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlerror@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `write@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_delete@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_create@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_setspecific@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `gethostname@SUNWprivate_1.1'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `open@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `writev@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_trywrlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `waitpid@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `fcntl@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_init@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_join@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `select@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_sigmask@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutex_consistent_np@SUNW_1.3'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_setrobust_np@SUNW_1.3'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_equal@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_destroy@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_init@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlopen@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_settype@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_getdetachstate@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_detach@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `read@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_getspecific@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `poll@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setdetachstate@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlsym@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_rdlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_wrlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_self@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlclose@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_unlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `fsync@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_once@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `sigaction@SUNW_0.9'
    collect2: ld returned 1 exit status
    make: *** [subversion/clients/cmdline/svn] Error 1
    ---- Snip ----

    Same thing with curl and others....
    root@sol10[20:50] > gcc -v
    Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.4/specs
    Configured with: ./configure --prefix=/usr/local
    Thread model: posix
    gcc version 3.4.4
    What gives?
    make[2]: Entering directory `/home/src/curl-7.14.0/lib'
    make[2]: Leaving directory `/home/src/curl-7.14.0/lib'
    make[1]: Leaving directory `/home/src/curl-7.14.0/lib'
    Making all in src
    make[1]: Entering directory `/home/src/curl-7.14.0/src'
    make all-am
    make[2]: Entering directory `/home/src/curl-7.14.0/src'
    /bin/ksh ../libtool tag=CC mode=link gcc -g -O2 -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/libcurl.la -lsocket -lnsl -lz
    gcc -g -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/.libs/libcurl.so -lsocket -lnsl -lz -Wl,--rpath -Wl,/usr/local/lib
    ../lib/.libs/libcurl.so: undefined reference to `dlopen@SUNW_1.22'
    ../lib/.libs/libcurl.so: undefined reference to `dlsym@SUNW_1.22'
    ../lib/.libs/libcurl.so: undefined reference to `dlclose@SUNW_1.22'
    collect2: ld returned 1 exit status
    make[2]: *** [curl] Error 1
    make[2]: Leaving directory `/home/src/curl-7.14.0/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/src/curl-7.14.0/src'
    make: *** [all-recursive] Error 1

  • JNI : Unsatisfied Link Error using C++ from Java

    Am using JNI to call a C Function which in turn creates a new C++ object and calls a method on it.
    When I run the java program that calls this native method, I get a UnsatisfiedLinkError : No <lib> in java.library.path.
    If I change the C function to do a simple printf instead of creating a new object , it works fine.
    I am printng out the java.library.path before calling the loadLibrary method, the path is correct.
    Am using Java 1.2.2 and compiling with gcc 2.7 on solaris 2.6 (Sun OS 5.6)
    Any help would be appreciated. I have seen some other folks having similar problems but haven't seen any replies that seem to solve the problem.

    Thanks for the ldd suggestion :
    This is the output from ldd
    ldd -sir liba.so
    find library=./liba.so; required by /usr/lib/lddstub
    find library=libe.so; required by ./liba.so
    search path=/user/ajax/jni (LD_LIBRARY_PATH)
    trying path=/user/ajax/jni/libe.so
    libe.so => /user/ajax/jni/libe.so
    symbol not found: strcpy (/user/ajax/jni/libe.so)
    symbol not found: strcpy (/user/ajax/jni/libe.so)
    symbol not found: printf (/user/ajax/jni/libe.so)
    symbol not found: printf (/user/ajax/jni/libe.so)
    symbol not found: __builtin_new (/user/ajax/jni/libe.so)
    symbol not found: printf (/user/ajax/jni/libe.so)
    init library=/user/ajax/jni/libe.so
    init library=./liba.so
    libe.so is in the LD_LIBRARY_PATH
    The 'man' pages for ldd say this :
    Using the -d or -r option with shared objects can give misleading results. ldd does a "worst case" analysis of the shared objects. However, in practice some or all of the symbols reported as unresolved can be resolved by the executable file referencing the shared object.
    Most of them seem ok, but I am wondering about "__builtin_new", anyone know what shared lib that's supposed to be in ?

  • Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings!

    Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings! Works fine with an older Safari Version. Web link, call doodle app.  You could see the website in the backround working but safari crashes after clicking on the error window.   Any suggestions?

    Turn off Private Browsing.
    Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off.

  • Error with Links if using x3 primary keys

    Hi Folks:
    Here is the error code I'm receiving:
    ORA-01422: exact fetch returns more than requested number of rows
    Unable to fetch row.
    Background: I am using Application Express 3.2
    All of the pages I have created that rely on x2 primary keys (first_name, last_name) work fine.
    I have a table that has x3 primary keys: Table is called "time_off_awards". The x3 primary keys are: last_name, first_name, approval_date.
    I created a report that works properly and lists the awards for each person (each person can receive more than one award-on different dates).
    I also created an edit link that works properly IF *(only if)* each individual has only one award. If the individual has more than one award then I get the error above. When I set up the link I used all three keys. The x3 PK's should uniquely identify each row, but if the same last name/first name appear more than once (that is if the person has more than one award) I get the error. I thought at first maybe it was just not reading the 3rd key/part of the link (approval_date), but it shows properly if you move your cursor over the edit link.
    Here is a link to a screen pic of how I have my link set in Apex:
    [http://www.wczone.com/link_settings.gif]
    Here is a link to a pic of the report with some info:
    [http://www.wczone.com/report_link.gif]
    If needed, here is my table info:
    CREATE TABLE PERSONNEL.TIME_OFF_AWARDS (
    LAST_NAME VARCHAR2(40) NOT NULL,
    FIRST_NAME VARCHAR2(25) NOT NULL,
    APPROVAL_DATE DATE NOT NULL,
    HOURS_OFF NUMBER(3),
    CITATION VARCHAR2(1500),
    /* Keys */
    PRIMARY KEY (LAST_NAME, FIRST_NAME, APPROVAL_DATE),
    /* Foreign keys */
    CONSTRAINT TOA_PERSONNEL
    FOREIGN KEY (LAST_NAME, FIRST_NAME)
    REFERENCES PERSONNEL.MARC_PERSONNEL(LAST_NAME, FIRST_NAME)
    TABLESPACE PERSONNEL;
    Thanks for any help, I've tried looking at a couple of Apex books, but they didn't help much.
    Matt
    Edited by: user10495310 on Mar 4, 2009 8:21 AM

    Thank you everyone for the help and information you gave to me.
    Your ideas and advice helped me to think through the issues involved.
    The way i actually found to work around this issue was a little different.
    What I did was the following (which may only be usable with empty tables. If its possible to create a new column with a sequence and trigger on a table that already contains data it should work also):
    1. I removed the current PK's that were currently set.
    2. I added a single, unique PK (that used a sequence and trigger to automatically increment) to the table as was suggested in this thread and other APEX forum threads.
    3. I changed the link on the report so that it used the new PK, and also changed the PK used on the forms (under Processes - both the page rendering and page processing processes).
    The Difference:
    4. Next I changed the table (not by using APEX, but directly) from using the automatically generated ID as the PK, back to using the compound PK (x3 keys). I then added an constraint to make sure that the automatically generated column was unique. So now I have the compound PK that my supervisor wants us to use, and I'm able to use a unique, automatically generated key for APEX to use.
    I found also that if you already have a column that uses a unique/auto-generated key you can still use it with APEX without switching keys around.
    1. I added the new column to the sql in the reports source section so that the new column was searched (and then used 'hidden' so it wouldn't be displayed on the report users would see).
    2. You can still add the unique key under the processes on the form that is being linked too under the Primary key tabs. If its not a PK it won't show up in the pop up which is to the right of "Item Containing Primary Key Column Value" but it can be entered manually (i.e. p23_AUTO_ID) and it will work fine. You would also need to edit your form so that the auto ID that is being passed from the report is part of the form - but hidden if desired).

  • Linking errors when using ibsta

    Hello,
    I have been trying to write C code to automate a Keithley 2410 through GPIB.  I am using Windows XP 32-bit, and VC++.
    I believe I was successful in getting a handle to the gpib-32.dll. However, I am getting a linking error when I try to use ibsta:  1>helloworld.obj : error LNK2001: unresolved external symbol _ibsta
    1>C:\Documents and Settings\Prober\My Documents\C Programs\helloworld\Debug\helloworld.exe : fatal error LNK1120: 1 unresolved externals
    However, when I look through the ni488.h, I see that ibsta is a global variable.  Therefore I am confused as to why I am getting a linking error
    I am following this guide: http://na.tm.agilent.com/pna/help/latest/Programming/GPIB_Example_Programs/GPIB_using_Visual_C++.htm
    My code is attached
    Attachments:
    code.c ‏3 KB

    Check out the 4882query.c example located on your computer at National Instruments > NI-488.2 > Examples > Standard C > 4882query.  The National Instruments folder might be in a sub-folder of Public or Public Documents.  Look at the ReadMe.txt file first.  It contains a C++ section.  Then try compiling the example and see what happens.
    Jeff Munn
    Applications Engineer
    National Instruments

  • Getting linker error in Visual studio while trying to use class ActiveSelectionObserver

    I am trying to implement a selection observer. I am using public specifier to derive from class ActiveSelectionObserver and have included the header file SelectionObserver.h.
    But I am getting the below error from linker while trying to do that.
    Below is the my code:
    class CSDTSelectionObserverImpl : public ActiveSelectionObserver
    /* some code here**/
    Below is the linker error:
    CSDTSelectionObserverImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl ActiveSelectionObserver::ActiveSelectionObserver(class IPMUnknown *,class IDType<struct PMIID_tag>)" (__imp_??0ActiveSelectionObserver@@QEAA@PEAVIPMUnknown@@V?$IDType@UPMIID_tag@@@@@Z) referenced in function "public: __cdecl CSDTSelectionObserverImpl::CSDTSelectionObserverImpl(class IPMUnknown *)" (??0CSDTSelectionObserverImpl@@QEAA@PEAVIPMUnknown@@@Z)

    Thanks Markus, this resolved the issue.
    I Included below in properties> linker>input>Additional dependencies
    $(ID_SDK_DIR)\build\win\objdx64\WidgetBin.lib
    But is there some documentation to get this information? as what all .lib are needed for a particular class etc?

  • Linking applications for Solaris 2.5.1 using Forte C 6

    Hello,
    We still need to provide applications that have to run on 2.5.1. Is there a way to compile C code using Forte C 6 on Solaris 7, and deliver executables that successfully run on 2.5.1 ?
    Any help would be appreciated.
    Thanks.
    Yves.

    Ordinarily, the same source files and makefiles that work with C++ 5.0 on Solaris 2.6 should work with C++ 5.3 on Solaris 8.
    You didn't say what you did to "adapt the makefile" when changing compilers and OS versions. If the compiler was installed in the default /opt location on each system, we don't think any makefile change would be required. (You might want to make changes for performance or program organization reasons, but we don't think any changes are required just to repeat a working program build.)
    What happens if you use the original files that worked with C++ 5.0 on Solaris 2.6?
    Are C++ 5.0 and C++ 5.3 are both installed in the same /opt directory? That isn't allowed, and will lead to strange behavior.
    Are you continuing a build using the new compiler and OS in a directory containing old binary files or template cache? When changing OS and compilers, it is safest, but not strictly necessary, to rebuild all your binary files. At a minimum, you must delete the old template cache.
    Are you still using C++ 5.0 in the build process? If so, you must isolate the use of C++ 5.0 and 5.3. The compilers cannot share a template cache, so you must run compiles in different locations.
    Anything beyond these hints will require more support and analysis than we could provide in the Forum. You will probably need to generate a .i file from the compilation and have a support engineer look at it. If you have contract with Sun, please follow the service channel.
    - Rose

  • Unsatisfied Link Error when using Oracle OCI (Type II) driver

    Using Oracle OCI (Type II) driver on HPUX with Oracle 9.2.0.4.
    If when creating a connection pool via the console, using the Oracle OCI (Type
    II) driver, you get the error "Unsatisfied link error with library libocijdbc9.sl
    or format error" then check that the library included in the SHLIB_PATH is pointing
    at the $ORACLE_HOME/lib32 directory and not just the $ORACL_HOME/lib

    We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
    do offer a type 4 driver for Linux.
    In version 5.1, I suggest trying the platform independent type 4 JDBC driver
    available for free from Oracle. It is supported (as is any JDBC driver)
    with WebLogic Server. To download it:
    Go to http://www.oracle.com and select the "Download" option.
    From the resulting page, use the "Select Utility or Driver" dropdown to
    select Oracle JDBC drivers
    From the resulting page, scroll down a little (since SQLJ stuff appears at
    the top).
    Or, to go directly there:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Michael W. Warren, Sr." <[email protected]> wrote in message
    news:[email protected]..
    I have installed WebLogic 6.0 on Solaris platform and verified that the
    server comes up
    and that I can connect to it via Netscape. Next step was to verify
    installation of WebLogic
    jDriver for Oracle. When I run the following:
    java utils.dbping ORACLE scott tiger
    I get the following error:
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message
    '/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
    ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
    fatal: libgen.so.1: open failed: No such file or directory'.
    at
    weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:182)
    Anyone seen this? Help!!!
    Thanks in advance
    Mike Warren, Sr.
    [email protected]

  • 'Link errors' while compiling Palm OS app using CodeWarrior

    I tried to compile the the sample application given in Oracle 9i lite MDK (Mobile Development Kit) using Codewarrior demo version 8 and it gave me a lot of link errors. Further more the okapi used were being termed as undefined, probably because the librabry files were not found, even though the lib files were included in the project.
    Please help...I've been stuck at this point for quite some time now.
    Regards
    Ripu

    Hi Rao,
    As Timo said, it is difficult to say the exact solution to your problem but you can try below suggestions as well.
    1. Schema check: the entity objects which you are referring might have got schema changes (lets say it is in XX_SCHMEA1 today and now they might be in XX_SCHEMA2, it happened for me in my earlier project where DBA team has moved the tables to a different schema totally). In that case, you need to edit your code to update the correct schema.
    2. Alias check: Open any of the entity for which you got error and check in the editor if it got any wrong alias name infront of it "XX_SCHEMA1.XX_TABLE_1", you can remove this alias and try again ( this happens when you modify the Configuration in AM -> Connection Type, for e.g. you converted it to "JDBC URL" from "JDBC DataSource" and in that case, you can manually delete those alias names infront of all entities because all your VOs are referring to entities without that alias (unless you refresh your vos)
    3. For entities, check the Tables as well as Synonym in case if these tables are synonym in the schema you used for your entities.
    4. Username/Password check: To do a bulk change, right click on Model project->click on "ADF Business Components"->check the connection details and see if anything got changed (like username/password). You can edit and test the connection to see if that is working or not.
    Regards,
    Ravi Nuka.

  • Linked server using kerberos working fine then after inacitive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine but after leaving the session inactive for 10 minutes is startin to fall down to ntlm and receive the anonymous logon error

    we are connecting to  SQL mgmt studio app published on citrix, using  Windows authentication and Kerberos to forward the credentials to the linked servers and avoid the double hop issue, that part is working fine,  we already have the Constrained
    delegation, SPNs and Active directory settings for the Service accounts and the authentication is working, we can connect to the linked servers without errors, it's only whe the Session get idle when we faced the issue, the citrix team already have verifyed
    any timeout setting and they mentioned there is no 10 minute timout setting anywhere,  we also looked at the Kerberos AD Global policy settings to see if maybe the kerberos service ticket was expiring, but the configured values are  Maximum lifetime
    for service ticket 600 minutes  Maximum lifetime for user ticket 10 hours  Maximum lifetime for user ticket renewal 7 days, if you have any other suggestion please let me know.

  • System Error in Forte Application using DCE thread

    I am using Forte 3.n.1 and MQSeries 5.2 on operating System Solaris7. When i am running
    An application in Forte uses DCE threads to invoke the MQseries functionality. Now this application as a server partition is not able to start up giving system resource error. Any kernal setting has to be made?
    Is there any settings in Solaris to be done for DCE threads ?

    Hey Mike,
    Is your ADS configured properly.
    This error usually comes when some of the layout UI elements are not binded properly.
    Thanks and Regards,
    Antony John Isacc

Maybe you are looking for

  • Apple Mail account suddenly offline, smtp offline

    iMac 27" (late 2009) updated to Mac OS X Yosemite 10.10 and Apple Mail 8.0 (1990.1) 17th October 2014. Mail accounts in Apple Mail where working as years before until Yesterday, 3th November 2014. Suddenly 2 out of 3 accounts where offline showing th

  • Split a large table into multiple packages - R3load/MIGMON

    Hello, We are in the process of reducing the export and import downtime for the UNICODE migration/Conversion. In this process, we have identified couple of large tables which were taking long time to export and import by a single R3load process. Step

  • Unable to create new alias, for no apparent reason

    Hi there, I want to add an alias to my iCloud account. I already have one email adresse @me.com, and i want an alias to point to it. When i try to create one, i get an error: "server error. the address couldn't be saved". What can i do? i really want

  • How to establish ebooks for automatic reading?

    I find some book can automatically reading,but i use ibooks author create book can't automatically reading. It lose Voice icon on top toolbar,it is not like other books can click open dialog by this icon,then control automatically or  manual turn pag

  • Valuation type in the P.OI

    Hello all:    I got material with a doble valuation type. and we distinguis the valuation type by the batch. So, the same material can have one valuation type or another depending of the bach.   If there any way to the system propose me by default th