Linker problem using version 12.4 on Linux

I am trying to use Solaris Studio 12.4 on Linux ( OpenSuse 13.2 ). I have installed the compiler and set up the PATH to its bin directory. When I compile/link a program I am receiving:
"sun.link ../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem
    "/opt/oracle/solarisstudio12.4/bin/CC" -g -m64 -KPIC   -o "../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem" "../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o"  -Bdynamic -lrt -Bstatic  -Bdynamic
CC: Warning: failed to detect system linker version, falling back to custom linker usage"
and this is followed by:a series of errors involving standard streams, standard output, and the like:
"../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `__SLIP.INIT_A()':
/opt/oracle/solarisstudio12.4/lib/compilers/CC-gcc/include/c++/4.8.2/iostream:74: undefined reference to `std::ios_base::Init::Init()'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `__SLIP.FINAL__A':
test_after_array_elem.cpp:(.text+0x28f): undefined reference to `std::ios_base::Init::~Init()'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `boost::report_errors()':
/home/suseldiener/vcs/modular-boost/libs/vmd/test//../../../boost/core/lightweight_test.hpp:133: undefined reference to `std::cerr'
/home/suseldiener/vcs/modular-boost/libs/vmd/test//../../../boost/core/lightweight_test.hpp:139: undefined reference to `std::cerr'
/home/suseldiener/vcs/modular-boost/libs/vmd/test//../../../boost/core/lightweight_test.hpp:139: undefined reference to `std::ostream::operator<<(int)'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `boost::detail::error_impl(char const*, char const*, int, char const*)':
/home/suseldiener/vcs/modular-boost/libs/vmd/test//../../../boost/core/lightweight_test.hpp:75: undefined reference to `std::cerr'
/home/suseldiener/vcs/modular-boost/libs/vmd/test//../../../boost/core/lightweight_test.hpp:75: undefined reference to `std::ostream::operator<<(int)'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `std::ostream & std::endl<char, std::char_traits<char> >(std::ostream &)':
test_after_array_elem.cpp:(.text.std::ostream & std::endl<char, std::char_traits<char> >(std::ostream &)[std::ostream & std::endl<char, std::char_traits<char> >(std::ostream &)]+0x75): undefined reference to `std::ostream::put(char)'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `std::ostream & std::operator<<<std::char_traits<char> >(std::ostream &, char const*)':
/opt/oracle/solarisstudio12.4/lib/compilers/CC-gcc/include/c++/4.8.2/ostream:536: undefined reference to `std::ostream & std::__ostream_insert<char, std::char_traits<char> >(std::ostream &, char const*, long)'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `std::ios::setstate(std::_Ios_Iostate)':
test_after_array_elem.cpp:(.text.std::ios::setstate(std::_Ios_Iostate)[std::ios::setstate(std::_Ios_Iostate)]+0x7d): undefined reference to `std::ios::clear(std::_Ios_Iostate)'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `std::ostream & std::flush<char, std::char_traits<char> >(std::ostream &)':
test_after_array_elem.cpp:(.text.std::ostream & std::flush<char, std::char_traits<char> >(std::ostream &)[std::ostream & std::flush<char, std::char_traits<char> >(std::ostream &)]+0x37): undefined reference to `std::ostream::flush()'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `std::ctype<char> const& std::__check_facet<std::ctype<char> >(std::ctype<char> const*)':
/opt/oracle/solarisstudio12.4/lib/compilers/CC-gcc/include/c++/4.8.2/bits/basic_ios.h:49: undefined reference to `std::__throw_bad_cast()'
../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem.o: In function `std::ctype<char>::widen(char) const':
/opt/oracle/solarisstudio12.4/lib/compilers/CC-gcc/include/c++/4.8.2/bits/locale_facets.h:869: undefined reference to `std::ctype<char>::_M_widen_init() const'
...failed sun.link ../../../bin.v2/libs/vmd/test/test_after_array_elem.test/sun-cxx11-12.4/debug/address-model-64/test_after_array_elem..."
This is all being done from Boost and Boost Build and the linker errors are occurring because of the run-time use of the lightweight_test component of Boost.
There is no problem using gcc directly compiling in 64-bit mode but Solaris Studio C++ 12.4 is failing.
Any ideas why it cannot find the system linker and use it, or why it is failing with the "custom linker", whatever that is, would be appreciated. If Boost Build needs some other compiler/linker option to work I can adjust that. Maybe I need to install some library for -std=c++11 mode or maybe -std=c++11 mode dopes has some sort of bug.

> undefined reference to `std::ios_base::Init::~Init()'
It looks like you link with different -library/-std set of options compared to those that you compiled with.
> CC -g -m64 -o test *.o -Bdynamic -lrt -Bstatic  -Bdynamic
This link line uses default settings, which is -library=Cstd for Studio 12.4.
And since you use Boost most likely you compile with -library=stlport4 or with -std=c++03, which implies -library=stdcpp (gcc STL).
Otherwise you would most likely get compilation failures (since -library=Cstd is a rather outdated STL).
You should use pretty much the same set of options when you compile and when you link.
Verify your build configuration (CXXFLAGS/LDFLAGS whatever).
regards,
  Fedor.

Similar Messages

  • Problems using version set in Elements 9

    Hi!
    I have problems using the version set. When saving files in the Element 9 editor I can not mark the "version set" option, its not highlighted and not possible to mark or use. Is there a basic setting that I´m missing or??? I have the MAC version of Elements.
    Also I have noticed that when I have edited a file in the Elements 9 editor and I come back to the Organizer the editor have changed the time of the photo? This means that its rather difficult to find the photo in the Organiser. It often change the time 1 or 2 hours.
    As I cant use the version set I can not keep my tags on the edited pictures. Is there a setting for keeping the tags and catalogue belongings to a edited file?
    As of today this software makes no sense to me and I can basically not keep working with it as it does not support basic functionality that I´m dependent on.
    Best Re
    A

    I’m not seeing this in my own version sets in PSE9; when I expand the set every image has the same date and time under each thumbnail.
    I’m wondering if you have used the “save for web” command at some point, which
     wipes all EXIF metadata, including the date & time of the original - in order to optimize the image for display on the internet. So if you have imported such an image Elements has to make an estimate. Apart from this known scenario I can’t really explain what’s going on.

  • Character encoding problem using XSLT and Tomcat on Linux

    Hi,
    I have an application running on a Tomcat 4.1.18 application server that applies XSLT transformations to DOM objects using standard calls to javax.xml.transform API. The JDK is J2SE 1.4.1_01.
    It is all OK while running on a development enviroment (which is Windows NT 4.0 work station), but when I put it in the production enviroment (which is a red hat linux 8.0), it comes up with some kind of encoding problem: the extended characters (in spanish) are not shown as they should.
    The XSL stylesheets are using the ISO-8859-1 encoding, but I have also tried with UTF-8.
    These stylesheets are dynamicly generated from a JSP:
    // opens a connection to a JSP that generates the XSL
    URLConnection urlConn = (new URL( xxxxxx )).openConnection();
    Reader readerJsp = new BufferedReader(new InputStreamReader( urlConn.getInputStream() ));
    // Gets the object that represents the XSL
    Templates translet = tFactory.newTemplates( new StreamSource( readerJsp ));
    Transformer transformer = translet.newTransformer();
    // applies transformations
    // the output is sent to the HttpServletResponse's outputStream object
    transformer.transform(myDOMObject, new StreamResult(response.getOutputStream()) );Any help would be appreciated.

    Probably you need to set your LANG OS especific environment variable to spanish.
    Try adding this line:
    export LANG=es_ES
    to your tomcat/bin/catalina.sh, and restart tomcat.
    It should look like this:
    # OS specific support.  $var _must_ be set to either true or false.
    cygwin=false
    case "`uname`" in
    CYGWIN*) cygwin=true;;
    esac
    export LANG=es_ES
    # resolve links - $0 may be a softlink
    PRG="$0"
    .(BTW, keep using ISO-8859-1 encoding for your XSL)
    HTH
    Un Saludo!

  • Error in linking by using arm-linux-g++

    Hi
    I use arm-linux-g++ to link my program, and get the following error message:
    "/usr/local/BerkeleyDB.4.5b/bdb-4.5.so: could not read symbols: ?????"
    The question marks is post by system, I don't know what it is on earth.
    But it was no problem using gcc/g++ to compile and link the program for PC version. I generated the MAKEFILE by qmake.
    And the configuration in it showed below:
    INCPATH = -I/qt/qt-embedded-arm-3.3.6/mkspecs/qws nux-arm-g++ -I. -I. -I../..
    /include -I.moc/release-shared-mt-emb-arm/ -I /usr/local/BerkeleyDB.4.5/include
    LIBS = $(SUBLIBS) -L/qt/qt-embedded-arm-3.3.6 b -lqte-mt -ldl -lpthread -L/usr/local/BerkeleyDB.4.5 b -ldb-4.5 -g
    My arm-linux-gcc/ arm-linux-g++ version is 2.95.3, my system is Red Hat Enterprise 4.2. And I am using C++.
    I think that it should be the problem linking configuration, but I do not know how to make it correct.

    I found the answer!!
    1.Modify the configure file of Berkeley DB
    #tar zxfv db-4.x.tgz
    #cd db-4.x/build_unix
    #vi /dist/configure
    Insert the following lines to configure file
    CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc
    AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar
    RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib
    STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip
    #../dist/configure prefix=/opt/db host=arm41-unknown-linux
    (Then, lib and include directories will be installed into /opt/db)
    OR
    #env CC=/opt/host/armv4l/bin/armv4l-unknown-linux-gcc \
    AR=/opt/host/armv4l/bin/armv4l-unknown-linux-ar \
    RANLIB=/opt/host/armv4l/bin/armv4l-unknown-linux-ranlib \
    STRIP=/opt/host/armv4l/bin/armv4l-unknown-linux-strip \
    ../dist/configure prefix=/opt/db host=arm41-unknown-linux
    2.Install with this configuration
    #make
    #make install
    #vi /etc/ld.so.conf
    3.Append the lib path of BDB into this file, now the path is /opt/db/lib
    #ldconfig
    4.Compile and link my program again, everything is OK!!! :)

  • I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyon

    I have just installed Digital Editions 4.3 but am having poblems downloading digital books as I get an error message stating 'Error! Check Activation'. I have Windows 7 and didn't have any problems using the previous version of Digital Editions. Can anyone advise?

    Hi Siobhan ,
    Please refer to the following link and see if that helps.
    https://helpx.adobe.com/digital-editions/kb/error-e_act_not_ready.html
    I would also like to know ,does that error message has any specific number ?
    Regards
    Sukrit Dhingra

  • Problems using RMI between linux and windows.

    I have problems using RMI between linux and windows.
    This is my scenario:
    - Server running on linux pc
    - Clients running on linux and windows PCs
    When a linux client disconnect, first time that server try to call a method of this client, a rmi.ConnectException is generated so server can catch it, mark the client as disconnected and won't communicate with it anymore.
    When a windows client (tested on XP and Vista) disconnect, no exceptions are generated (I tryed to catch all the rmi exception), so server cannot know that client is disconnected and hangs trying to communicate with the windows client.
    Any ideas?
    Thanks in advance.
    cambieri

    Thanks for your reply.
    Yes, we are implementing a sort of callback using Publisher (remote Observable) and Subscribers (remote Observer). The pattern and relative code is very well described at this link: http://www2.sys-con.com/ITSG/virtualcd/java/archives/0210/schwell/index.html (look at the notifySubscribers(Object pub, Object code) function).
    Everything works great, the only problem is this: when a Publisher that reside on a Linux server try to notify something to a "dead" Subscriber that reside on a Windows PC it does't receive the usual ConnectException and so tends to hang.
    As a workaround we have solved now starting a new Thread for each update (notification), so only that Thread is blocked (until the timeout i guess) and not the entire "notifySubscribers" function (that contact all the Subscribers).
    Beside this, using the Thread seem to give us better performance.
    Is that missed ConnectException a bug? Or we are just making some mistake?
    We are using java 6 and when both client and server are Linux or Windows the ConnectException always happen and we don't have any problem.
    I hope that now this information are enough.
    Thanks again and greetings.
    O.C.

  • When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message 'An error as occurred. Please try again later'. It has been this way for some weeks. I don't have this problem using Safari or Opera.

    When ever I try to watch any video, from a link or YouTube say, using Firefox, I get a message ‘An error as occurred. Please try again later’. It has been this way for some weeks. I don’t have this problem using Safari or Opera.

    I believe that our “Werbung problem” adds an additional second hyperlink to the pop-up window. This second link is activated whenever you trigger a saved hyperlink to a Mail.com site.
    I had the same problem and eliminated it by deleting all bookmarks, hyperlinks and automatic links that take firefox to a mail.com address. So I just deleted all bookmarks I had saved for mail.com. I also changed my home page link because it also went to my email at mail.com. I then did a warm boot, opened firefox and re-saved my bookmarks and homepage to the desired addresses. Good luck.

  • Oracle 8.1.7.3 on Linux 7.2 linking problem.

    I am installing Oracle 8.1.7.3 on Linux.
    I successfully get the installer to run and can install Oracle.
    However, when I perform the link part of the install it fails.
    I am following the procedure of changing the compatibility libraries for Linux.
    I think the reason the link fails is because /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh doesn't exist.
    Where does this script come from ?

    I don't remember excet, something like compat*--, but you can find it. In RedHat installation dir (where *.rpm are stored) use this command:
    rpm -qpil *.rpm | grep -A N -B N <filename> | more\
    Change N and you will see all information (package name, files in it) about rpm. May be it's not a best way, but I always use this command to find something in rpms.

  • Problem in launching webstart application when using version atribute

    Hello Experts,
    I am trying out my first example of JNLP. This is my JNLP file.
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8092/webApplForWebStart" href="launch.jnlp">
        <information>
            <title>ForWebStart2</title>
            <vendor>NAgrawal</vendor>
            <description>ForWebStart2</description>
            <description kind="short">ForWebStart2</description>
            <homepage href=""/>
            <offline-allowed/>
            <shortcut online="true">
              <!-- create desktop shortcut -->
              <desktop/>
              <menu submenu="WebStart Trial"/>
         </shortcut>
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.5+"/>
            <jar href="JNLPTime.jar" version="1.0" main="true" download="eager"/>
        </resources>
        <application-desc main-class="TheTime">
        </application-desc>
    </jnlp>My Problem is if I remove version="1.0" from <jar > tag application is launching properly. But if I am using version attribute , it is giving me this error while launching the application.
    "Unable to load resource :( http://localhost:8092/webApplForWebStart/JNLPTime.jar , 1.0)
    java.io.IOException : missing version response from server."
    I can't afford to remove the version attribute as it is required for auto-update. Has anyone ever tried faced such problem.? Please help me. Any help is highly appreciated.Thanks in advance.

    It's just as told.
    If you're using explicit versions, the server response MUST provide an header to tell which version is returned (you could be using 'wildcards' like 1+).
    How are you serving requests? Are you using JnlpDownloadServlet? If so, check docs: extra work is required in order to use version features.
    If using your own service google for header (and parameter) name, use exact versions and copy to the response the value you're retrieving from the request.
    Bye.

  • I am currently using Firefox Version 1.5.0.12 on my iBook G4 with Mac OS X Version 10.3.9. I have problems using Facebook. What can I do?

    I am currently using Firefox Version 1.5.0.12 on my iBook G4 with Mac OS X Version 10.3.9. I have problems using Facebook. I cannot confirm friend requests or view messages in the inbox for instance. What can I do?
    == URL of affected sites ==
    http://facebook.com

    Firefox 2.0.0.20 is the last ever release for Mac OSX 10.3.9 and earlier versions, but that may not work any better because some large websites are blocking those older browsers or dropping support for older browsers like IE6 & earlier, and Firefox 2 & earlier due to security issues.
    Using Safari on those websites ''(not enough total users for websites to be concerned about)'', or installing a new version of MacOSX are two solutions; or getting a new computer.

  • HT3775 I'm using version 10.7.5 OSX. I can't play or use the normal AVI recently. Some problem with (codecs version incompatible with OSX) Please give me some help. I'm in Vietnam and to have a real place to have stuffs from Apple is ****-

    I'm using version 10.7.5 OSX. I can't play or use the normal AVI recently. Some problem with (codecs version incompatible with OSX) Please give me some help. I'm in Vietnam and to have a real place to have stuffs from Apple is ****…

    I would recommend that you download and install the excellent and Free "VLCPlayer for Mac", which reads many more types of files for video than Quicktime Player:
                 http://vlc-media-player.en.softonic.com/mac

  • Someone else's Notes appearing on my iPhone. I'm using version 5.0.1. I assume there is some type of over-the-air sync problem happening?

    Someone else's Notes appearing on my iPhone. I'm using version 5.0.1. I assume there is some type of over-the-air sync problem happening?

    Doing a restore will more than likely resolve the problem. Plug the phone into iTunes, select your phone under DEVICES, and press Restore. This will restore your phone to factory settings. Now, after the restore is complete, you have two options:
    1) Restore from Backup
    This will let you restore all of the content you had on your phone but may also restore the other person's notes and their ability to sync notes to your phone.
    2) Set Up as New iPhone
    Your data will not be restored, but you can always sync content back later as long as it is in iTunes. On the positive side, this would positively remove any setting that would allow someone else's notes to appear on your phone.
    You will be presented with these two options after the restore. I recommend restoring from a backup first so you won't lose your data, but if it doesn't solve the problem, proceed to restore as a new phone.

  • Can I use Creative Cloud Applications on LINUX through Wine as It is possible now with box versions?

    as in title:
    Can I use Creative Cloud Applications on LINUX through Wine as It is possible now with box versions?
    Are there any things to consider / do differently?

    You are certainly welcome to try.  We have not tested this environment in anyway and you may face difficulties with Adobe Creative applications that require heavy use of the CPU.  I also would be surprised if Acrobat could be installed in this environment due to it's dependencies to system resources.

  • Problem of executing a process under Linux using Runtime.exec

    Hi, All
    I am having a problem of executing a process under Linux and looking for help.
    I have a simple C program, which just opens a listening port, accept connection request and receive data. What I did is:
    1. I create a script to start this C program
    2. I write a simple java application using Runtime.exec to execute this script
    I can see this C program is started, and it is doing what it supposed to do, opening a listening port, accepting connection request from client and receiving data from client. But if I stop the Java application, then this C program will die when any incoming data or connection request happens. There is nothing wrong with the C program and the script, because if I manually execute this script, everying works fine.
    I am using jre1.4.2_07 and running under Linux fedora 3.0.
    Then I tried similar thing under Windows XP with service pack2, evrything works OK, the C program doesn't die at all.

    Mind reading is not an exact science but I bet that you are not processing either the process stdout or the stderr stream properly. Have you read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html ?

  • Oracle 9.2.0.1.0 installation link problems.....HELP !!!!!!

    Hi All
    During installation of Oracle 9.2.0.1.0 on Linux, I received the following error:
    Error:
    Error in invoking target install of makefile
    /opt/oracle/product/9.2.0.1.0/network/lib/ins_oemagent.mk
    I did some research and found that it is executing the "relink" script. So I tried to debug it it. Here is the output:
    [oracle@redash oracle]$ cd /opt/oracle/product/9.2.0.1.0/bin/
    [oracle@redash bin]$ relink oemagent
    chmod 755 /opt/oracle/product/9.2.0.1.0/bin
    if [ linux = aix ]; then \
    gcc -L/opt/oracle/product/9.2.0.1.0/lib/ -L/opt/oracle/product/9.2.0.1.0/rdbms/lib -L/opt/oracle/product/9.2.0.1.0/network/lib -L/opt/oracle/product/9.2.0.1.0/lib/ -L/opt/oracle/product/9.2.0.1.0/rdbms/lib -L/opt/oracle/product/9.2.0.1.0/network/lib -o dbsnmp /opt/oracle/product/9.2.0.1.0/network/lib/s0nmi.o -lvppdc /opt/oracle/product/9.2.0.1.0/network/lib/libvps.a \
    /opt/oracle/product/9.2.0.1.0/network/lib/libnmi.a \
    /opt/oracle/product/9.2.0.1.0/network/lib/libnmd.a /opt/oracle/product/9.2.0.1.0/network/lib/libnms.a /opt/oracle/product/9.2.0.1.0/network/lib/libnmt.a /opt/oracle/product/9.2.0.1.0/network/lib/libnml.a \
    /opt/oracle/product/9.2.0.1.0/network/lib/libnmi.a /opt/oracle/product/9.2.0.1.0/net[i]Long postings are being truncated to ~1 kB at this time.

    Before installing Oracle 9.2 on linux (i'm using redhat 7.2), there are some steps you have to issue.
    Those link problems are related to the wrong version of binutils, you need binutils-2.10.0.18-1.i386.rpm
    You need also JDK,to set some kernel parameters and so on..
    However follow the steps of this link http://www.puschitz.com/OracleOnLinux.shtml
    For me it worked.
    Hope this helps
    Tarek

Maybe you are looking for

  • IMPORT/EXPORT problem.

    Hi, I am using a import export statement in my program. REPORT  ZKATEST. data : w_test type c value '1'. data : w_test1 type c. export w_test to memory id 'ZKAPIL'. import w_test1 from memory id 'ZKAPIL'. write : w_test1. Here the value gets exported

  • Effects seen in this video

    Soccer Tricks by Manchester FC - GoPro - YouTube How can I achieve this kind of effects?

  • Pr release date is previouse to PR request date.

    Hello SAP Experts, Its an immediate requirement, in MRP run for auto. PR creation, the date ,is not updating after PR creation it is showing the Planned date. Pr release date is previouse to PR request date. Thanks & Regards, Anisha

  • DAC source system parameters not being generated

    HI all, We are implementing BI apps 7962 with Informatica 861 Hot FX11, OBIEE 101341 on Linux5. We have installed and set up the configuration completely. The Informatica services are created and the DAC was configured with the Source System Paramete

  • Can i combine pdf, word and powerpoint into 1 pdf, and add page number?

    hi, i've been tasked to create a proposal combining these document types into 1 pdf. does anyone know if i can add page number as well, before i pay for subscription? thank you!!