Problems linking with log4cpp..

Hi all,
working on a T200 with solaris 10 and sunstudio 11,
I have a program that I have to compile with -library=stlport4 since it's being ported from gcc where it was using <hash_map>.
I succeeded building log4cpp-0.3.5-rc3 with SUN compiler both with standard STL and with stlport, but now it seems I cannot use neither one of these two version of liblog4cpp.so with my program, because when it comes to linking in sunstudio, it fails with a lot of messages like
undefined symbol first referenced in file
std::ostream &std::operator<<(...) liblog4cpp.so
std::ios::operator void *() const liblog4cpp.so
The test application included in the log4cpp source distribution has been built and runs with no problems...
So I have no clue of what this could be, it seems like liblog4cpp.so itself is missing some external library when it comes to linking with my app...
If I remove -library=stlport4 everything is ok, but then I cannot use hash_map in my program....
Any idea? Am I missing something particularly stupid?...
Thanks in advance.
Andrea.

Yes,
I've checked that liblog4cpp.so has been built with -library=stlport4 both on the compile and on the linker command line.
And here I'm showing you the full output during the compile and linking stage:
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/cmd.o source/cmd.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/dbmgr.o source/dbmgr.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/Feeder.o source/Feeder.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/IndexedMap.o source/IndexedMap.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/main.o source/main.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/Monitor.o source/Monitor.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/mspp_config.o source/mspp_config.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/mspp_utils.o source/mspp_utils.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/NSMapper.o source/NSMapper.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/patterns.o source/patterns.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/PDUSequencer.o source/PDUSequencer.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/processor.o source/processor.cpp
CC -g   -c  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/Status.o source/Status.cpp
CC -g   -filt=%none  -library=stlport4  -I./include  -I/usr/sfw/include/mysql  -I/usr/local/include  -I../rps/mc_receive/source  -I../rps/common/include  -I../common/include  -L.  -Lbuild/solaris  -L/usr/local/mysql/lib  -L/usr/local/lib -o build/solaris/mspp build/solaris/cmd.o  build/solaris/dbmgr.o  build/solaris/Feeder.o  build/solaris/IndexedMap.o  build/solaris/main.o  build/solaris/Monitor.o  build/solaris/mspp_config.o  build/solaris/mspp_utils.o  build/solaris/NSMapper.o  build/solaris/patterns.o  build/solaris/PDUSequencer.o  build/solaris/processor.o  build/solaris/Status.o -lmc_receive -llog4cpp_stlport -lmysqlclient_r -lsocket
Undefined                       first referenced
symbol                             in file
__1cDstdGsmanip4Ci_2t6MpFrn0AIios_base_i_3i_v_ ./liblog4cpp_stlport.so
__1cDstdJbasic_ios4Ccn0ALchar_traits4Cc___2C6kM_b_ ./liblog4cpp_stlport.so
__1cDstdHgetline4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___6Frn0ANbasic_istream3CTACTB__rn0AMbasic_string3C1C2CTC__1_4_ ./liblog4cpp_stlport.so
__1cDstdJbasic_ios4Ccn0ALchar_traits4Cc___2v6kM_pv_ ./liblog4cpp_stlport.so
__1cDstdLsmanip_fill4Ccn0ALchar_traits4Cc___2t6MpFrn0AJbasic_ios4Ccn0B___c_3c_v_ ./liblog4cpp_stlport.so
__1cDstdLchar_traits4Cc_Deof6F_i_   ./liblog4cpp_stlport.so
__1cDstdCws4Ccn0ALchar_traits4Cc___6Frn0ANbasic_istream3CTACTB___4_ ./liblog4cpp_stlport.so
__1cDstdM__initialize4CI_6FrTA1_v_  ./liblog4cpp_stlport.so
__1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_ ./liblog4cpp_stlport.so
__1cDstd2E4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___6Frkn0AMbasic_string3CTACTBCTC__pk1_b_ ./liblog4cpp_stlport.so
__1cDstdLchar_traits4Cc_Emove6FpcpkcI_2_ ./liblog4cpp_stlport.so
__1cDstdJuse_facet4n0AFctype4Cc___6Frkn0AGlocale_pTA_rk4_ ./liblog4cpp_stlport.so
__1cDstdNbasic_istream4Ccn0ALchar_traits4Cc___Hgetline6Mpcl_r1_ ./liblog4cpp_stlport.so
__1cDstd2s4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___6Frkn0AMbasic_string3CTACTBCTC__1_4_ ./liblog4cpp_stlport.so
__1cDstdLlogic_error2t5B6Mrkn0AMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc_____v_ ./liblog4cpp_stlport.so
__1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____c_2_ ./liblog4cpp_stlport.so
__1cDstdLchar_traits4Cc_Leq_int_type6Frkir2_b_ ./liblog4cpp_stlport.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_concat6kMrk1_1_ ./liblog4cpp_stlport.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___M__sun_concat6kMpkc_1_ ./liblog4cpp_stlport.so
__1cDstdJbasic_ios4Ccn0ALchar_traits4Cc___Egood6kM_b_ ./liblog4cpp_stlport.so
__1cDstdNbasic_istream4Ccn0ALchar_traits4Cc___Gsentry2v6M_b_ ./liblog4cpp_stlport.so
ld: fatal: Symbol referencing errors. No output written to build/solaris/mspp
*** Error code 1
dmake: Fatal error: Command failed for target `build/solaris/mspp'I wonder how I'm going to bring all my code base (actually built with gcc) under sunstudio 11, if I can't even get my feet out of this first project, that is the simplest I have to deal with...
In any case, even if I have to give up, I'd really like at least to understand what's really going on under the hood and why does liblog4cpp_stlport cause all of this...
Andrea.

Similar Messages

  • Problem link with blog french iWeb

    Have some problem with the "blog french" version iWeb8. Have a 1-Name 2-Entrées 3-Archive
    About #2 Entrées ( é ) make error with Window user can't go to direct link, but with mac no problem
    Can't change "Entrées" to exemple "Enter" with no french accent.
    If you use Window can you try the link if work? Under " Les départs de groupe"
    you can see "Explorer of the sea+Norwegian Gem+Tahitian Princess."
    Thank's to help me http://web.mac.com/escapademedia/vps/Accueil.html
    Michel

    I am having the same problem-- and viewing with Safari as the browser has had no effect. Any thoughts on solutions?
    I've been a Mac proponent for two years now, though recent problems are causing me to re-evaluate. Aside from this snafu, the most recent Quicktime update neutered all sound on my .avi files as well. When can we expect updates/solutions to these problems?

  • Problem linking with OCI

    Hi,
    I am using Oracle 8.0.5.0 and am trying to compile a C++ program
    using the OCI. I am using RedHat Linux v5.1 with g++ egcs
    version 2.90.27.
    This is my library and object list from the makefile:
    ORALIBS = -lnetwork -lclient -lnetv2 -lncr -lgeneric -lmm -lepc -
    lcore4 \
    -lnlsrtl3 -lcommon \
    -lnetwork -lcore4 -lnlsrtl3 -lncr -lnttcp \
    -lnetwork -lepc -lclient -lepcpt -lnlsrtl3 -lclient -ldl
    ORAOBJS = $(ORACLE_HOME)/lib/naedhs.o $(ORACLE_HOME)/lib/naect.o
    $(ORACLE_HOME)/lib/naeet.o
    $(ORACLE_HOME)/rdbms/lib/defopt.o
    When I issue the make command, I get the following link errors:
    /disk2/oracle8/lib/libnetwork.a(nau.o): In function `nau_gettab':
    nau.o(.text+0x164b): undefined reference to `nautab'
    nau.o(.text+0x1651): undefined reference to `nautabnum'
    /disk2/oracle8/lib/libnetwork.a(nau.o): In function `nau_dis':
    nau.o(.text+0x2fb2): undefined reference to `nautab'
    Has anyone else seen this and if so, can you help me out please?
    It is pretty urgent.
    Thanks in advance.
    Timothy Sim
    null

    Link with client-shell -lclntsh

  • Ati driver problem linked with HP on Dutch win7 Pro

    Hello,
    There are 2 notifications that show up about having display adapter problem and  Ati driver problem .
    Is there a  solutions ?

    Please upload a copy of your system information file. Click "start" , type "msinfo32" , Click "file" at the top of the page, select "export" and give the file a name and click "save" .
    Navigate to where the file was saved to, and upload the generated text file to a public folder on your OneDrive account and post the link here.

  • Problems Linking with demo

    I just downloaded xdk_cpp_9_0_1_0_0_LINUX.tar.gz
    I ran 'make' to try and build the xsdtest demo and I'm getting undefined references.
    In function `main':
    /tmp/ccQA8Vqb.o(.text+0x1a1): undefined reference to `XMLSchema::initialize(XMLParser *)'
    /tmp/ccQA8Vqb.o(.text+0x22f): undefined reference to `XMLSchema::validate(Element *, unsigned char *)'
    /tmp/ccQA8Vqb.o(.text+0x282): undefined reference to `XMLSchema::terminate(void)'
    /tmp/ccQA8Vqb.o(.text+0x2ad): undefined reference to `XMLSchema::terminate(void)']
    collect2: ld returned 1 exit status
    make: *** [xsdtest] Error 1
    Anyone know what I'md doing wrong?
    TIA

    I just downloaded xdk_cpp_9_0_1_0_0_LINUX.tar.gz
    I ran 'make' to try and build the xsdtest demo and I'm getting undefined references.
    In function `main':
    /tmp/ccQA8Vqb.o(.text+0x1a1): undefined reference to `XMLSchema::initialize(XMLParser *)'
    /tmp/ccQA8Vqb.o(.text+0x22f): undefined reference to `XMLSchema::validate(Element *, unsigned char *)'
    /tmp/ccQA8Vqb.o(.text+0x282): undefined reference to `XMLSchema::terminate(void)'
    /tmp/ccQA8Vqb.o(.text+0x2ad): undefined reference to `XMLSchema::terminate(void)']
    collect2: ld returned 1 exit status
    make: *** [xsdtest] Error 1
    Anyone know what I'md doing wrong?
    TIA

  • Sensor Battery Died- Problem Linking Replacement Sensor

    I had a great experience with my NikePlus sensor the first time around. The training program option on nikeplus.com has been great to keep me motivated, and so far I have lost 30 pounds! Then the sensor battery died...
    I have gotten a new sensor and receiver for my 3rd generation ipod, but it is having problems linking with the sensor. I use a velco pack on the laces rather than spend the money on the Nike+ shoes and it wasn't a problem with the first sensor. The set up is still the same, but now the replacement sensor isn't reading properly. The replacement sensor is linked to the nano, but the pace zeros out. As an example, today I ran 2.5 miles and it only read .07 miles since the pace was 0.00 the majority of the time.
    I want to get back on track, but can't figure out how to fix this. Is anyone else having this problem? I'm not sure if it is related to my nano being linked to another (my original) sensor, or if it is just a bad sensor.
    Help!

    My wife had the same problem with her Nano 3rd Gen iPod and Nike Sensor. She is using a pair of Nike shoes with the sensor pocket (not the most comfortable shoes, ... but that's another story). The battery died on the sensor after 3 months of fairly regular use. We took the sensor in to the Apple Store and they were kind enough to provide her with a replacement free of charge.
    We got back home and the new sensor will not sync with the receiver/iPod. I am OK with buying a $19 sensor (OK, but not at all thrilled) every 3-6 months if it provides the type of enthusiasm and incentive to workout that my wife has enjoyed. But to have to purchase the sensor and the receiver every 2-3 months is a joke.
    With the great minds at both Nike and Apple, they should be able to provide a sustainable product with a replaceable battery with more consistent life. I have read many reviews and the battery on the sensor lasts anywhere from 2 months to 14 months. That is a horrible variation in performance for a high tech piece of electronics.
    If you are close to an Apple Store, I would return the sensor and demand a free replacement. Perhaps when Apple gets a thousands of the sensors piling up in their storerooms they will increase the reliability.

  • Safari keeps crashing every time I try to open a link from a different application, i.e. Mail. The trouble report says that some problem occurs with libcooliris.dylib plug-in. Can any one help?

    Safari keeps crashing every time I try to open a link from a different application, i.e. Mail. The trouble report says that some problem occurs with libcooliris.dylib plug-in. Can any one help?
    Thanks!

    Dear Linc,
    Thank you for the advice, John Blanchard1  and Linc Davis
    As suggested in your reference thread I removed "/Library/Printers/hp/PDEs/hpPostScriptPDE.plugin" and the problem has been resolved.
    I am guessing the the plug-in for the hp printers got corrupted and effected every thing, or became unsuitable when I installed an Apple update. I would be most grateful if you can confirm how the problem was coursed so I can understand and learn from this experiance.
    Ash

  • My brother ipad was linked with old apple id and he forgot his id and never use same email.the problem now his mini ipad ask him for this id to open (activate ipad) what we can do ?

    my brother ipad was linked with old apple id and he forgot his id and never use same email.the problem now his mini ipad ask him for this id to open (activate ipad) what we can do ?

    He remember the id name and password but he can't enter we don't now if the password is wrong or the id was  lock . I have the all thing for the ipad such as his box . I now this is security thing but you could help me.

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • Please can you help me to solve my problem  ( I have iphone is linked with Apple ID and I forgot that Apple ID and I can't remember it , I need thats Apple ID to activate my iphone ,,, what should I do ?

    please can you help me to solve my problem  ( I have iphone is linked with Apple ID and I forgot that Apple ID and I can't remember it , I need thats Apple ID to activate my iphone ,,, what should I do ?

    mohammed aljasim wrote:
    there are many people that error is happened with them and one of this people is me ,, Apple must be find the solution for this problem
    You are absolutely WRONG. Apple bears no responsibility in this at all. YOU purchased a STOLEN phone. You are guilty of receiving stolen property at best. Take it back to wherever you bought it and demand a refund. Failing that, turn it over to the police. You got ripped off. I'm sorry you wasted your money, but there is NOTHING Apple or anyone else can do for you. Only the rightful owner of the phone can unlock it.

  • I dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me

    i dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me i dont want to lose my village, i have spent my money on that game to much. hmmm

    thanks mate, but the problem is im using different apple id now, and after about 1 year play coc and today i want to link the village , suddenly coc said that
    thats mean im playing this village with different apple id and it not saved. and the problem is i dont remember the first apple id and password that i use first time to download this game. hmmm it was so confusing, why coc and game center just make this thing saved with a new game center account.

  • Link with File's Owner problem

    I created a nib file "WebViewController.xib". And try to link the UIView with File's Owner. But it doesn't work. Also sometimes with other nib files, I deleted a connection from View Connections->Referencing Outlet, then tried to connect again, but it can't link with File's Owner anymore. This problem
    is very annoying.
    How to fix this? Thank you.

    You need first to add
    @property (strong, nonatomic) IBOutlet UITextField *label;
    before the IBAction

  • How can i solve the problem relate with gmail links opening in firefox ? New link start in new tab and disconnects.Also youtube streaming breaks everytime .

    Firefox disconnects by clicking link in my gmail and most of time i refreshes the page few clicks. And also some problem relate with playing youtube videos. I frankly notice that i connect my net using PC Suite and also system protected with Anti virus program. So kindly check my browser and restore it's missing without using factory reset. Notify me for any urgent update of yours 16th version. Thanking for yours brilliant support .
    Jaison James.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Does anyone have a link to common bugs/problems encountered with flex 3?

    Hi,
    does anyone have a link to common bugs/problems encountered
    with flex 3, just so i can try and familarise myself before I go
    asking etc? thanks folks!!

    flex warnings:
    http://livedocs.macromedia.com/flex/2/langref/compilerWarnings.html
    flex errors
    http://livedocs.macromedia.com/flex/2/langref/compilerErrors.html

  • Problem with creating links with WPC (SP 14)

    Hi,
    I have a problem creating links with the WPC (SP14): When I want to create internal links (Browse and select the target item) via the right button (choosing a website as a reference link). If I do so I encounter the problems either that the linked site (outside the WPC) shows a blue background and/ or has no navigation frame (on the left side & no breadcrumb-navigation on top).
    If I create links with the left button in the WPC via URLs I have the problem with the inserted URL, because sometimes (I don't know why und when) some parts of the code in the URL changes, so that the linked Website is empty (besides the navigation fram - the content isn't displayed anymore). To me it looks like as if the originally website cannot be "found" anymore.
    Does anyone has the same problems and is eventually able to help me? This would be really great. Thanks!

    Hi,
    you have also to deploy the following file from Service Marketplace:
    Patch for SP14 for KMC WEB PAGE COMPOSER 7.00
    Than it will works. The best way is you deploy WPC SP 15.
    If you want i can send you this file via email.
    regards,
    Sharam
    Edited by: Seed mopo on Apr 28, 2008 11:45 AM

Maybe you are looking for

  • Crazy MacBook wont boot up...help!

    My friend has brought her intel macbook to me to fix (i am her personal Apple care repairman!) and we have the following problem... 1. She installed the Firmware update (she thinks) 2. At start up there is only the grey screen, apple logo and the spi

  • Is the ZAGG keys Universal Keyboard compatible with Apple TV?

      is the ZAGG keys Universal Keyboard compatible with Apple TV?

  • Battery Condition Poor why, cycle count: 157

    In my laptop lenovo IBM Thinkpad T60, I have the original battery of news that I cared, always charged and discharged to the end, rarely recharged. Today it has 157 cycles and its condition is poor. Why? Perform Reset did nothing but that does not he

  • TS2570 Locked iPhoto after the installation of OS X Yosemite

    Hi After I installed OS X Yosemite my iPhoto got locked. I updated the iPhoto but still it has been locked. Every time I tried to open it I was asked to repair it but it failed every time and the error message was- "Caution... The iPhoto Library is l

  • Error when erasing a partition on a drive

    First of all, I transferred a hard drive from a damaged Maxtor II External due to a container issue to my G4 Silver and it worked fine. I had it partition to a bootable backup and an extra storage drive. Using SuperDuper back up software, I mistakenl