Avoiding Error: referenced symbol not found in STL matrix

Hi,
in Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 there is a well known problem when STL classes are used. For example, the following code:
#include <vector>
int main()
std::vector<int> myVector;
myVector.push_back(1);
will cause a linking error:
symbol std::vector::__insert_aux : referenced symbol not found.
There is a workaround in:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
Some recommended link options are provided in:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5104725
Once solved this problem, something similar happens when I try to build a matrix using nested templates std::vector:
// Matrix defined in my class.
class myClass
public:
std::vector<std::vector<double> > matrix;
Of course, I want to use the matrix dynamically:
int main ()
myClass object;
// Create a matrix with Nrows rows.
object.matrix = std::vector<std::vector<double> > (Nrows);
// etc ...
This code will cause the following referenced symbol not found error at linking:
$ echo __1cDstdGvector4n0AGvector4Cdn0AJallocator4Cd____n0AJallocator4n0C____2G6Mrk1_r1_ | c++filt
std::vector<std::vector<double,std::allocator<double> >,std::allocator<std::vector<double,std::allocator<double> > > >&std::vector<std::vector<double,std::allocator<double> >,std::allocator<std::vector<double,std::allocator<double> > > >::operator=(const std::vector<std::vector<double,std::allocator<double> >,std::allocator<std::vector<double,std::allocator<double> > > >&)
so the matter is that the operator = is not found for matrix as a nested template. std::vector::push_back method cannot also be used, as shown above.
I have found a workaround to avoid this linking error:
int main ()
myClass object;
// Create a matrix with Nrows rows.
std::vector<std::vector<double> > auxiliarMatrix (Nrows);
object.matrix.swap (auxiliarMatrix);
// Now matrix can be filled:
for(int nCont=0; nCont < Nrows; nCont++)
std::vector<double> auxiliarVector;
// Vector must be filled first...
object.matrix[nCont] = auxiliarVector;
// etc ...
std::vector::swap method exchanges auxiliarMatrix and object.matrix, so now I have a matrix with the required size. And, very important, doesn't cause linking error in my case.
Hope this may be useful for somebody.
Bye.

Hi,
in Sun WorkShop 6 update 2 C++ 5.3 2001/05/15 there is a well known problem when STL classes are used. For example, the following code:
#include <vector>
int main()
std::vector<int> myVector;
myVector.push_back(1);
will cause a linking error:
symbol std::vector::__insert_aux : referenced symbol not found.
There is a workaround in:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
Some recommended link options are provided in:
http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5104725
Once solved this problem, something similar happens when I try to build a matrix using nested templates std::vector:
// Matrix defined in my class.
class myClass
public:
std::vector<std::vector<double> > matrix;
Of course, I want to use the matrix dynamically:
int main ()
myClass object;
// Create a matrix with Nrows rows.
object.matrix = std::vector<std::vector<double> > (Nrows);
// etc ...
This code will cause the following referenced symbol not found error at linking:
$ echo __1cDstdGvector4n0AGvector4Cdn0AJallocator4Cd____n0AJallocator4n0C____2G6Mrk1_r1_ | c++filt
std::vector<std::vector<double,std::allocator<double> >,std::allocator<std::vector<double,std::allocator<double> > > >&std::vector<std::vector<double,std::allocator<double> >,std::allocator<std::vector<double,std::allocator<double> > > >::operator=(const std::vector<std::vector<double,std::allocator<double> >,std::allocator<std::vector<double,std::allocator<double> > > >&)
so the matter is that the operator = is not found for matrix as a nested template. std::vector::push_back method cannot also be used, as shown above.
I have found a workaround to avoid this linking error:
int main ()
myClass object;
// Create a matrix with Nrows rows.
std::vector<std::vector<double> > auxiliarMatrix (Nrows);
object.matrix.swap (auxiliarMatrix);
// Now matrix can be filled:
for(int nCont=0; nCont < Nrows; nCont++)
std::vector<double> auxiliarVector;
// Vector must be filled first...
object.matrix[nCont] = auxiliarVector;
// etc ...
std::vector::swap method exchanges auxiliarMatrix and object.matrix, so now I have a matrix with the required size. And, very important, doesn't cause linking error in my case.
Hope this may be useful for somebody.
Bye.

Similar Messages

  • Ld.so.1 problem - fatal: relocation error - "referenced symbol not found"

    Hi, I've been trying to compile and run my application non Solaris using CC (detils below) but haven't got luck with running the application because of a linker error :
    ld.so.1: java: fatal: relocation error: file ./libtest.so: symbol __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: referenced symbol not found
    Here's what I'm trying to do :
    I'm compieing one library to include another shared library whcih uses the "string" class (STL). The compilation of both the libraries proceeds perfectly fine. However, when i preload this library with LD_PRELOAD and run a JAVA application (which will have calls to some function in the preloaded library), the get the above linker error.
    Here's what all I have tries to get thsi wroking : ( I understand that this error is due to a missing library that CC has not linked to and i've no idea what the library is!!!)
    1.> # LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
    # export LD_LIBRARY_PATH - NO LUCK :-(
    2.> linked to /opt/SUNWspro/lib/libCrun.so (found this from another forum on the net), but NO LUCK :-(
    3.> export LD_DEBUG=bindings
    export LD_DEBUG_OUTPUT=/home/log.txt (so that all sysmbols refered are logged!!!)
    i did a grep on the log for the symbol but NO LUCK!!! :-(
    Please can you help me with this? What is the library that is to be linked too, or is there something else?
    Details About my system, compiler and compilation options :
    1.> uname -a output : SunOS sh1sol9 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-280R Solaris
    2.> CC version : Sun WorkShop 6 update 2 C++ 5.3
    3.> Compilation flags i've used to build the library :
    FIRST LIBRARY : CC -G -xcode=pic32 -I../common/ -ldl ../common/logger.cpp helper_functions.cpp BCPEntries.cpp BCP_class.cpp -o libBCP.so
    SECOND LIBRARY : CC -G -xcode=pic32 -I../common/ test_BCP_construct.cpp -lBCP -L. -o libtest.so
    Please help me out of this,
    Any and every help (or even a hint to it) will be appreciated!!!
    Thanks in advance,
    Madhur Kumar Tanwani

    Refer to the C++ Users Guide that comes with the compiler, the chapter on Building Libraries, which explains these points in more detail.
    When you build a C++ shared library, you must explicitly list all the libraries that it depends on. Unlike building an executable, the CC -G command does not by default create dependencies on system libraries. Although not explained well in the Guide, you should be sure you get the shared (.so) versions of all libraries, not the static (.a) versions.
    All C++ programs require at least libCrun and libc. Programs that use the C++ Standard library (using anything in the std namespace, like std::string) also need to link to the appropriate version of the library.
    The default library is libCstd. If you compile using the optional STLport library, you need the libstlport instead. You cannot use both libCstd and libstlport in the same program.
    In your case, the build command would look something like this, assuming you are using the default libCstd:
    CC -G -o mylib.so ..... -library=Cstd,Crun -lc
    Be sure that any preceeding -Bstaic option is followed by -Bdynamic before listing these system libraries.
    To verify you have picked up the dynamic libraries, run the command
    ldd mylib.so
    to see a list of dependencies. If you don't see the following in the list
    /usr/lib/libCstd
    /usr/lib/libCrun
    /usr/lib/libc (or /lib/libc)
    something is wrong.
    A note about LD_LIBRARY_PATH: don't use it.
    Ideally, the environment variable should never be set. If you must set it to reach vendor-supplied libraries, never put the system directories /lib or /usr/lib on the path, and never put the compiler installation directory, like /opt/SUNWspro/... on the path. You can wind up forcing the runtime loader to seach directories in the wrong order and pick up inappropriate versions of libraries.
    For more on LD_LIBRARY_PATH, read this note in Rod Evans' blog. He's the Sun linker expert. The material here is available in the manuals, but his blog has a nice summary.
    http://blogs.sun.com/roller/page/rie/?anchor=tt_ld_library_path_tt

  • Solaris 7 sparc 64 bit jdk giving error:referenced symbol not found

    hi
    I have installed jdk 5.0 on solaris 7 sparc for 64 bit support
    I am getting this error while giving java, plz help me
    dl failure on line 717Error: failed /els/install/jdk1.5.0_04/jre/lib/sparcv9/server/libjvm.so, because ld.so.1: java: fatal: relocation error: file /els/install/jdk1.5.0_04/jre/lib/sparcv9/server/libjvm.so: symbol __1c2n6FL_pv_: referenced symbol not found

    I got this problem too.
    have fixed this?
    whether should we patch the os first?

  • Referenced symbol not found error

    Hello,
    I am using Solaris 5.6 and CC(Sun native) compiler 5.0.
    I build Xalan1.0 (C++ version) in Solaris and created necessary '.so' files. If I use this '.so' in my development environment, while runing my program it is showing the following error.
    "/home/kvelu/EDP_R1_GA_1114/EDPSERVER/SOLARISDEBUG/Bin/EDPServer: fatal: relocation error: file /home/kvelu/EDP_R1_GA_1114/SOFTWARE/SOLARISDEBUG/BIN/libxalan-c1_0.so: symbol __1cDstdGvector4Cbn0AJallocator4Cb___M__insert_aux6Mn0CIiterator_b_v_: referenced symbol not found"
    The demangling of this symbol is
    void std::vector<bool,std::allocator<bool> >::__insert_aux(std::vector<bool,std::allocator<bool> >::iterator,bool)
    Then I added some more options in the Xalan Makefile like "-library=iostream,Crun" compiler option and "-liostream -lCrun -lc -ltls7d" link option. Again I got the same error. Instead of "lc" I used "lCstd" also, again not solved.
    Can any body give me which compiler option and link option I must use to avoid this problem?
    Thanks
    kalees.

    Hi Kalees,
    I know this error quite well but I don't know if the cause is the same, because your environment seems to be different.
    Anyway you can take a look on thread:
    http://forum.java.sun.com/thread.jspa?forumID=850&threadID=5069680
    If vectors causing the error are in your library you can try to solve it using the solution suggested there, but if those vectors are in external linked libraries maybe you have no chance, so you need to update the compiler or the Workshop environment (Sun Studio nowadays).
    Good luck.
    Bye.

  • Firefox-bin fatal relocation error libthebes.so symbol round referenced symbol not found

    I compiled Firefox 3.6.23 on Solaris 9. When I try to start firefox it exits with the following error.
    ld.so.1 firefox-bin: fatal: relocation error: file /usr/local/lib/firefox-3.6.23/components/../libthebes.so: symbol round: referenced symbol not found killed

    It is not in the java documentation because it is not a java problem.
    When you write JNI code (or any other code for that matter) you probably should look at the documentation for the compilers and other tools that you are using for recommendations for how to use these third party tools.
    What would have been surprizing to me, is if your C++ compiler manual did not recommend linking with the standard C++ library when you use code contained in the library. Which was the problem here.

  • Ld.so.1: java: fatal: relocation error: file :referenced symbol not found

    Hello,
    I am trying to run my application (using Java) on windows which in turn calls the Remote Manager on Solaris(Solaris 9 on SPARC Processor).
    It gives the following linker error:
    ApiInitLocal():ApiInitLocal: START
    ApiInitLocal():* * * A P I I N I T * * *
    ld.so.1: java: fatal: relocation error: file /opt/rm902/remotemanager/soFile/libACEUser.so: symbol Sd_ApiInit: referenced symbol not found
    Killed
    I tried setting "LD_LIBRARY_PATH" , but that also didnt work.
    Any help would be highly appreciated.
    Thanks in advance

    Hello all
    I am new to JNI and while trying to run my
    to run my first program I am receiving an error in
    compilation of the 'C' file. For ur clarity my taken
    steps are given as follows:
    a. First I created 'HelloNative.java'
    Then I compiled it and after running created the
    the HelloNative.h
    b. Then I wrote the HelloNative.c file and when I
    compile it using MS VC++ then it gives the
    following error:
    --------------------Configuration: helloNative -
    - Win32 Debug--------------------
    Compiling...
    helloNative.c
    f:\bin\hellonative.c(3) : fatal error C1083: Cannot
    open include file: 'jni.h': No such file or directory
    Error executing cl.exe.
    helloNative.obj - 1 error(s), 0 warning(s)
    PLZ HELP ME ON THIS.
    So for a quick patch, copy the jni.h file from the include
    directory of your java installation files to the include
    files that your c complirer has and uses.

  • Apache: mod_wl.so: symbol ap_log_rerror: referenced symbol not found

    Hello.
    I am working with os solaris 64 and weblogic 12c.
    I installes weblogic and wiork fine, I compiled the apache and start without problem bt when I try to load the module for weblogic the apache no start.
    This is the sentences:
    ./configure prefix=$APACHE_HOME with-apr=$UTILS/apr with-apr-util=$UTILS/apr-util with-pcre=$UTILS/pcre enable-module=all enable-rule=SHARED_CODE --enable-so
    I did the make and make install without problem.
    I add the Load Module in the httpd.conf and fail the start:
    LoadModule weblogic_module /orasoft/product/middleware/apache/plugins/wlsapache/lib/mod_wl.so
    weblogic:sc-prodBD0-2:/orasoft/product/middleware/apache/conf>apachectl start
    httpd: Syntax error on line 507 of /orasoft/product/middleware/apache/conf/httpd.conf: Cannot load /orasoft/product/middleware/apache/plugins/wlsapache/lib/mod_wl.so into server: ld.so.1: httpd: fatal: relocation error: file /orasoft/product/middleware/apache/plugins/wlsapache/lib/mod_wl.so: symbol ap_log_rerror: referenced symbol not found
    What is wrong?
    Regards

    Hi,
    I am having same problem.added line in APACHE   httpd.conf  file
    LoadModule weblogic_module /u01/APACHE2/lib/mod_wl_24.so
    and following error:
    httpd: Syntax error on line 67 of /usr/apache2.4/conf/httpd.conf: Cannot load /u01/APACHE2/lib/mod_wl_24.so into server: ld.so.1: httpd: fatal: /u01/APACHE2/lib/mod_wl_24.so: wrong ELF class: ELFCLASS64
    i complied Apache 2.4.6  on solaris 10 u11. by using this procedure
    2) and pkg add, gcc-3.4.6-sol10-sparc-local    libgcc-3.3-sol10-sparc-local  libiconv-1.14-sol10-sparc-local  openssl-1.0.0j-sol10-sparc-local
    3) then install in this order   pcre, apr, apr-util  & then apache-httpd
    4) ./configure --prefix=/u01/APACHE2/pcre
      make
      make install
    5) ./configure --prefix=/u01/APACHE2/apr
      make
      make install
    6) ./configure --prefix=/u01/APACHE2/apr-util --with-apr=/u01/APACHE2/apr/
      make
      make install
    7) ./configure --prefix=/usr/apache2.4 --enable-so --enable-pie --enable-module=all --enable-mods-shared=all --enable-proxy --enable-proxy-connect --enable-
    proxy-ftp --enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer --enable-ssl --enable-static-support --enable-static-htpasswd --enable-static-
    htdigest --enable-static-rotatelogs --enable-static-logresolve  --enable-substitute  --enable-rewrite --enable-cgi --enable-vhost --enable-imagemap --with-
    mpm=prefork --with-pcre=/u01/APACHE2/pcre/ --with-apr=/u01/APACHE2/apr --with-apr-util=/u01/APACHE2/apr-util/
      make
      make install

  • Safari 7.0.6 crashes: Dyld Error Message: Symbol Not Found

    After I did the latest MacOS update (10.9.5) Safari (7.0.6) no longer runs. I repaired permissions and also rebooted in safe mode so I could potentially remove any spurious plug-ins, but the last time I did this was with MaxOS 6 so I have no idea where to look in the current version.
    The error message that pops up is:
    Process:         Safari [1279]
    Path:            /Applications/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Version:         ???
    Build Info:      WebBrowser-7537085010017001~4
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [194]
    Responsible:     Safari [1279]
    User ID:         505
    Date/Time:       2014-09-26 08:16:17.066 +1000
    OS Version:      Mac OS X 10.9.5 (13F34)
    Report Version:  11
    Anonymous UUID:  84ADDFB5-CAD4-0759-3667-8E0B47E8E995
    Sleep/Wake UUID: 51EC656E-25AB-4167-810D-D7A644340E28
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries, ignoring DYLD_* env vars
    Dyld Error Message:
    Symbol not found: __ZN3JSC10JSDataView6s_infoE
    Referenced from: /System/Library/StagedFrameworks/Safari/WebCore.framework/Versions/A/WebCore
    Expected in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    in /System/Library/StagedFrameworks/Safari/WebCore.framework/Versions/A/WebCore
    (insert a 'shed load' of other lines of log data which you probably don't need, right?)

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Workshop 5.0, Sol 2.7/64-bit: "referenced symbol not found"

    One of our customers reports that "some" of their Sol2.7 machines cannot run our 64-bit software (compiled with -xarch=v9).
    % a.out
    ld.so.1: a.out: fatal: relocation error: file a.out: symbol __1cDstdJbad_allocG__vtbl_: referenced symbol not found
    Killed
    On the machines where our stuff doesn't run, this message is seen with all of the executables we provide, and even with trivial test programs. The same symbol name is shown every time.
    We are using
    % CC -V
    CC: WorkShop Compilers 5.0 98/12/15 C++ 5.0
    and ldd on a test program shows this:
    % ldd a.out
    libCrun.so.1 => /usr/lib/sparcv9/libCrun.so.1
    libm.so.1 => /usr/lib/sparcv9/libm.so.1
    libw.so.1 => /usr/lib/sparcv9/libw.so.1
    libc.so.1 => /usr/lib/sparcv9/libc.so.1
    libdl.so.1 => /usr/lib/sparcv9/libdl.so.1
    /usr/platform/SUNW,Ultra-4/lib/sparcv9/libc_psr.so.1
    Any ideas? Thanks.

    Try a 'ldd -r' on your shared library. My bet is you will receive tons of unresolved symbols. You have to eliminate them all. In my case, -lCrun helped a lot and reduced the number of missing symbols radically. Some were still missing, though, and I was quite sure to take care of those with -lCstd (Note that the manual says that both are included by default...). Didn't help, but I just found a hint that the libC shipped with Solaris might need a patch...

  • SUNWcry_installed: referenced symbol not found

    We have installed some patches on our solaris server. After installationw hen we are trying to open SSH connection from that host to any another we are getting this error:
    ssh: fatal: relocation error: file /usr/bin/ssh: symbol SUNWcry_installed: referenced symbol not found
    LDD check gave the below results :
    libsocket.so.1 => /lib/libsocket.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libz.so.1 => /usr/lib/libz.so.1
    libcrypto.so.0.9.7 => /opt/symas/lib/libcrypto.so.0.9.7
    libgss.so.1 => /usr/lib/libgss.so.1
    libc.so.1 => /lib/libc.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd.so.1 => /lib/libmd.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdl.so.1 => /lib/libdl.so.1
    libcmd.so.1 => /lib/libcmd.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    libgen.so.1 => /lib/libgen.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
    /platform/SUNW,Sun-Fire-T200/lib/libmd_psr.so.1
    Please advice.

    That look sensible enough.
    On my system ldd output looks like this
    directory4# ldd /usr/bin/ssh
            libsocket.so.1 =>        /lib/libsocket.so.1
            libnsl.so.1 =>   /lib/libnsl.so.1
            libz.so.1 =>     /usr/lib/libz.so.1
            libcrypto.so.0.9.7 =>    /usr/sfw/lib/libcrypto.so.0.9.7
            libgss.so.1 =>   /usr/lib/libgss.so.1
            libc.so.1 =>     /lib/libc.so.1
            libmp.so.2 =>    /lib/libmp.so.2
            libmd.so.1 =>    /lib/libmd.so.1
            libscf.so.1 =>   /lib/libscf.so.1
            libcmd.so.1 =>   /lib/libcmd.so.1
            libdoor.so.1 =>  /lib/libdoor.so.1
            libuutil.so.1 =>         /lib/libuutil.so.1
            libgen.so.1 =>   /lib/libgen.so.1
            libcrypto_extra.so.0.9.7 =>      /usr/sfw/lib/libcrypto_extra.so.0.9.7
            libm.so.2 =>     /lib/libm.so.2
            /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
            /platform/SUNW,Sun-Fire-V210/lib/libmd_psr.so.1so you can see your picking up stuff from /opt/symas/lib inappropriately.
    That can be caused by either setting LD_LIBRARY_PATH or using crle.
    What does crle show.
    Mine show
    directory4# crle
    Default configuration file (/var/ld/ld.config) not found
      Default Library Path (ELF):   /lib:/usr/lib  (system default)
      Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

  • Referenced symbol not found

    Hi,
    I'm trying to migrate a program from Solaris2.6 with the 4.2 C++ compiler to Solaris 2.8 with the 6.3 C++ compiler.
    The compilation and link works fine. I then try to use a dynamic library obtained to run python test on my server and I get the following error:
    ImportError: ld.so.1: python: fatal: relocation error: file /space4/users/bmicha/livr/sem/lib/libpy_oss_orp.so: symbol __1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_: referenced symbol not found
    The symbol is defined in the libCstd.a library.
    The compilation option I use are:
    CC -c -library=rwtools7_std -I/opt/SUNWSPRO/WS6U2/include/CC -pto -I/space4/users/bmicha/sem/../brique/include -I/space2/integre/export/include -DSYSTEM_SunOS -DUSE_MULTITHREAD -D_REENTRANT -DCTBP_NDEBUG -DCTBO_NDEBUG -g -I/usr/local/include/python2.2 -D_REENTRANT -I/opt/iona/include
    I'd be very greatfull if anyone could tell me how I can get this symbol defined in the dynamic library?
    Thanks

    Problems like this one are usually caused by a bad LD_LIBRARY_PATH environment variable. Since the symbol for which your application is looking is in a standard library, you should not need to specifically reference the directory.
    Try a couple things:
    1) % ldd <application name>
    This should give you a list of libraries that your application will try to dynamically load.
    Example:
    % ldd /usr/bin/strings
    libelf.so.1 => /usr/lib/libelf.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
    If any of the libraries are undefined, then your LD_LIBRARY_PATH is messed up.
    2) unsetenv LD_LIBRARY_PATH
    or
    LD_LIBRARY_PATH=
    export LD_LIBRARY_PATH
    if you're running /bin/sh
    3) Try the ldd again and see if the libraries are all
    being picked up now.

  • Ldopen() failed:ld.s0.1: fatal: relocation error: ..symbol not found

    Hi All,
    I got the following fatal error when running my application:
    dlopen() failed:ld.so.1: delosd: fatal: relocation error: file libwellbuilder.so.1: symbol __1cDstdM__node_alloc4BiA_N_M_deallocate6FpvI_v_: referenced symbol not found
    I compile and link with option -library=stlport4,Crun
    I check the libwellbuilder.so.1 but don't see stlport lib at all. Not sure in what lib the undefined symbol is defined.
    ldd libwellbuilder.so.1
    libconfig.so.1 => /mnt/calnas02/home/zik31726/libs/server/libconfig.so.1
    liblogging.so.1 => /mnt/calnas02/home/zik31726/libs/server/liblogging.so.1
    libtiff.so.1 => (file not found)
    libcdm.so.1 => (file not found)
    libdelos.so.1 => /mnt/calnas02/home/zik31726/libs/server/libdelos.so.1
    libdbaccess.so.1 => (file not found)
    libxtiff.so.1 => (file not found)
    libsrvutil.so.1 => /mnt/calnas02/home/zik31726/libs/server/libsrvutil.so.1
    libdbprovider.so.1 => (file not found)
    libsrvnet.so.1 => /mnt/calnas02/home/zik31726/libs/server/libsrvnet.so.1
    libloader.so.1 => /mnt/calnas02/home/zik31726/libs/server/libloader.so.1
    libiss_conf.so.1 => /mnt/calnas02/home/zik31726/libs/server/libiss_conf.so.1
    libCrun.so.1 => /*usr/lib/libCrun.so.1*
    libmd5.so.1 => /usr/lib/libmd5.so.1
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/SUNW,Ultra-250/lib/libmd5_psr.so.1
    /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
    My solaris system is as following:
    CC -V: CC: Sun C++ 5.8 2005/10/13
    uname -a: SunOS dlp001 5.9 Generic_122300-32 sun4u sparc SUNW,Ultra-250System = SunOS
    If you know how to resolve this issue, please let me know.
    Thanks,
    Iceman

    Thanks for your quick response.
    Here is the compiling line, I cut off some due it exceed 5000 line:
    /sw/opt/SUNWspro/bin/CC -KPIC -zdefs -library=stlport4 -library=stlport4,Crun -lm -lc -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.config/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.logging/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.vendor.lib.libtiff/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/nsl/1.1 -I/usr/include/test -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.loader/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.issconf/1.0 -DSunOS=900000 -g -DUNIX -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.config/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.util/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.dbprovider/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.net/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.loader/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.issconf/1.0 -c CurveDigits.cpp -o CurveDigits.cpp_So.o
    /usr/ccs/bin/ld -o CurveDigits.So -r CurveDigits.cpp_So.o
    /bin/rm CurveDigits.cpp_So.o
    And linking line:
    /sw/opt/SUNWspro/bin/CC -Bdynamic -G -zdefs -library=stlport4 -library=stlport4,Crun -lm -lc -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.config/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.logging/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.vendor.lib.libtiff/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.loader/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.issconf/1.0 -DSunOS=900000 -g -DUNIX -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.config/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.logging/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.loader/1.0 -I/mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.issconf/1.0 -o libwellbuilder.so.1 -h libwellbuilder.so.1 *.So -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.config/1.0 -lconfig -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.logging/1.0 -llogging -lxtiff -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.util/1.0 -lsrvutil -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.dbprovider/1.0 -ldbprovider -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.net/1.0 -lsrvnet -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.loader/1.0 -lloader -L /mnt/calnas02/home/zik31726/devcm/workspaces/merge_server/inst/SunOS-5.9-sun4u/NativeLibrary/src.server.lib.issconf/1.0 -liss_conf

  • Symbol __SUNW_init_wiostreams: referenced symbol not found

    We have an executable built with the 5.2 compiler that fails on Solaris 10 with the 119963-08 patch installed. It gets the error in the subject line:
    ld.so.1: <executable>: fatal: relocation error: file <full path to exe>: symbol __SUNW_init_wiostreams: referenced symbol not found
    However, if we remove the patch, the executable runs just fine. We do not link libCstd statically; all system libs are linked dynamically.
    Any suggestions on how to track this down?

    please refer infoDoc#89603, recompile the program will resolve the issue, then could you please send your app sample code to me ([email protected]) so that I can made the doc more perfect.

  • Symbol __mt_MasterFunction_: referenced symbol not found

    I am trying to build a matlab s-function using Sun Studio 10 compilers. The program compiles but when I try to load it into matlab I get
    ??? Invalid MEX-file '/export/ford/sl0473/u/jmccall4/+Work/GMP_data/Release_tests_6/gmp_cf_4_state_gui_redo/gmp_4_state_base_gmp_mex.mexsol': ld.so.1: /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/MATLAB: fatal: relocation error: file /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfai_isa.so.3: symbol __mt_MasterFunction_: referenced symbol not found.
    This is a mixed Fortran and C program.
    The fortran code is compiled with
    f90 -c -I/apps/matlab/14sp3.p/vendor/extern/include -I/apps/matlab/14sp3.p/vendor/simulink/include -KPIC -C -e -u -O2 -v -r8const -mt -xopenmp base_main.f
    The C code with
    cc -c -I/apps/matlab/14sp3.p/vendor/extern/include -I/apps/matlab/14sp3.p/vendor/simulink/include -DMATLAB_MEX_FILE -KPIC -xO2 -xlibmieee -D__EXTENSIONS__ -D_POSIX_C_SOURCE=199506L -mt -xopenmp -D_XOPEN_SOURCE=600 -xlibmil -DNDEBUG base_mex.c
    and the link is done with
    f90 -xO2 -G -mt -xopenmp -M/apps/matlab/14sp3.p/vendor/extern/lib/sol2/fexport.map -o base_mex.mexsol base_main.o base_mex.o /apps/matlab/14sp3.p/vendor/extern/lib/sol2/version4.o my_base_main.a -L/apps/matlab/14sp3.p/vendor/bin/sol2 -lmx -lmex -lmat -lm -lc -L/apps/matlab/14sp3.p/vendor/bin/sol2 -lmx -lmex -lmat -lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai -lfminvai -lfmaxvai -lfsu -lsunmath -lm -lc -lmtsk
    an elfdump of the mtsk library leads me to believe the __mt_MasterFunction_ is defined in that library.
    How can I compile this so it will run in Matlab?
    James.

    I am running Solaris 2.8.
    The output from ldd is
    !ldd gmp_4_state_base_gmp_mex.mexsollibmx.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmx.so
    libmex.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmex.so
    libmat.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmat.so
    libm.so.1 => /usr/lib/libm.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libfui.so.2 => /opt/SUNWspro/lib/libfui.so.2
    libfai.so.3 => /opt/SUNWspro/lib/v8plus/libfai.so.3
    libfai2.so.3 => /opt/SUNWspro/lib/v8plus/libfai2.so.3
    libfsumai.so.1 => /opt/SUNWspro/lib/v8plus/libfsumai.so.1
    libfprodai.so.1 => /opt/SUNWspro/lib/v8plus/libfprodai.so.1
    libfminlai.so.1 => /opt/SUNWspro/lib/v8plus/libfminlai.so.1
    libfmaxlai.so.1 => /opt/SUNWspro/lib/v8plus/libfmaxlai.so.1
    libfminvai.so.1 => /opt/SUNWspro/lib/v8plus/libfminvai.so.1
    libfmaxvai.so.1 => /opt/SUNWspro/lib/v8plus/libfmaxvai.so.1
    libfsu.so.1 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/sys/os/sol2/libfsu.so.1
    libsunmath.so.1 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/sys/os/sol2/libsunmath.so.1
    libmtsk.so.1 => /usr/lib/libmtsk.so.1
    libut.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libut.so
    libicudata.so.32 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libicudata.so.32
    libicuuc.so.32 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libicuuc.so.32
    libicui18n.so.32 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libicui18n.so.32
    libicuio.so.32 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libicuio.so.32
    libw.so.1 => /usr/lib/libw.so.1
    librt.so.1 => /usr/lib/librt.so.1
    libz.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libz.so
    libpthread.so.1 => /usr/lib/libpthread.so.1
    libCstd.so.1 => /usr/lib/libCstd.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libmwmvalue.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmwmvalue.so
    libmwservices.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmwservices.so
    libmwmpath.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmwmpath.so
    libmwm_dispatcher.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmwm_dispatcher.so
    libdl.so.1 => /usr/lib/libdl.so.1
    libMTwister.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libMTwister.so
    libaio.so.1 => /usr/lib/libaio.so.1
    libxnet.so.1 => /usr/lib/libxnet.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libcurses.so.1 => /usr/lib/libcurses.so.1
    libmwdatasvcs.so => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libmwdatasvcs.so
    libxerces-c.so.26 => /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/bin/sol2/libxerces-c.so.26
    libmp.so.2 => /usr/lib/libmp.so.2
    libsocket.so.1 => /usr/lib/libsocket.so.1
    /usr/platform/SUNW,Sun-Blade-2500/lib/libc_psr.so.1
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfai_isa.so.3
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfai2_isa.so.3
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfsumai_isa.so.1
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfprodai_isa.so.1
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfminlai_isa.so.1
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfmaxlai_isa.so.1
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfminvai_isa.so.1
    /opt/SUNWspro/prod/lib/cpu/sparcv9+vis2/libfmaxvai_isa.so.1
    /apps/avcae-fsabs/1.0/common/mathworks/matlab/14sp3.p/vendor/sys/os/sol2/cpu/sparcv8plus+vis/libfsu_isa.so.1
    libthread.so.1 => /usr/lib/lwp/libthread.so.1
    /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
    libmtsk is in the ldd list, but it appears earlier in the list than libfai2_isa.so.3, which has the unresolved symbol. Is the list order relevant?

  • Symbol kglsimlat_p: referenced symbol not found

    Hi,
    anyone have ever encountered this error
    ld.so.1: rman: fatal: relocation error: file /app/oracle/product/10.2.0/bin/rman: symbol kglsimlat_p: referenced symbol not found
    I am getting this error from my EM Grid Control webpage while doing backup.
    In the BACKUP step webpage.
    Below is the complete output log
    ===============================================================
    Output Log
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jul 27 16:52:16 2006
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    SQL> SQL> Connected.
    SQL> SQL> SQL> Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jul 27 16:52:42 2006
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    SQL> SQL> Connected to an idle instance.
    SQL> SQL> ORACLE instance started.
    Total System Global Area 524288000 bytes
    Fixed Size          2030168 bytes
    Variable Size          171967912 bytes
    Database Buffers     343932928 bytes
    Redo Buffers          6356992 bytes
    Database mounted.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ld.so.1: rman: fatal: relocation error: file /app/oracle/product/10.2.0/bin/rman: symbol kglsimlat_p: referenced symbol not found
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Jul 27 16:52:49 2006
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    SQL> SQL> Connected.
    SQL> SQL>

    Hi,
    I am using Oracle 10g rel 2 (OMS & Database) on Solaris 10.
    I read somewhere that the problem is with the LD_LIBRARY_PATH.
    I set the LD_LIBRARY_PATH to ${ORACLE_HOME}/lib, but it still doesn't work.
    When I ran RMAN manually from the telnet terminal, it works okay.
    Thanks

Maybe you are looking for

  • Error message while configuring logical standby in OEM

    Hi, I am trying to configure a logical dataguard using OEM. I am using the option use staging area option, I am receiving the error message the user does not have permission to create db files. Any suggestions on this please.

  • When is the Content Viewer iPad app update hitting the App Store?

    It's been over a week now of not being able to view anything on the iPad.

  • Archiving Video Tapes

    I've recently been asked to look into the best way to archive video footage at full resolution. The originals Digital Betacam tapes may be released or edited at some point of time in the future, so they must be stored under dry and cool conditions. A

  • Content migration from 5.01 to 6.2

    Any clue how to migrate a portlet based on the Announcement web service from Content Server 5.01 to Publisher 6.2? After a regular migration the content item is not migrated into the Content Server. Thanks! Val

  • Oracle Rac video training

    May any one give me a very good reference where i can buy oracle training video for Rac beside oracle university. Thank you for your assistance.