logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: Statically linking log4cxx's dependencies: msg#00005

Subject: RE: Statically linking log4cxx's dependencies
JK,

Make sure in your linking that you are referencing the object archive
and not the shared object.  I think you need to use -Bstatic before the
-lapr and -lapr-util in order for it to pick up the archives.  Make sure
that the libapr.ar and libapr-util.ar files are in the same places as
the .so files.  Or, you can simply be explicit and rather than using the
-l<lib> format, just insert a reference to the archive file, such as
../lib/libapr.ar.

Cheers!
 
Tom Hawker
Home    408-274-4128
Office  408-576-6591
Mobile  408-835-3643

-----Original Message-----
From: Jitendra Kharche [mailto:Jitendra.Kharche@xxxxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, January 4, 2006 02:34 AM
To: Log4CXX User
Subject: RE: Statically linking log4cxx's dependencies

 
Hi Lingyun,

Thanks for the reply. But there is some more help required.
We could also build Log4cxx statically but the static log4cxx library
links apr & apr-util dynamically. So when we build our application, it
needs apr & apr-util libraries. We want to avoid shipping these
binaries. We want to link log4cxx statically with apr & apr-util.

 
Regards,
Jitendra Kharche
Geometric Software Solutions Co. Ltd.
Work: +91-20-2290 6351
 
********************************************************************
This e-mail communication and any attachments are privileged and
confidential and intended only for the use of the recipients named
above. If you are not the intended recipient, please do not review,
disclose, disseminate, distribute or copy this e-mail and attachments.
If you have received this communication in error, please notify the
sender immediately by email or telephone at+91-20-22906351.
*********************************************************************

-----Original Message-----
From: Lingyun Tuo [mailto:lingyuntuo@xxxxxxxxx] 
Sent: Wednesday, January 04, 2006 12:41 PM
To: Log4CXX User
Subject: Re: Statically linking log4cxx's dependencies

We have been using static libraries of log4cxx in both Windows and Linux
platforms.

Good luck.

Lingyun Tuo

On 1/4/06, Jitendra Kharche <Jitendra.Kharche@xxxxxxxxxxxxxxxxxxxxx>
wrote:
>
> Hi,
>
> Can Log4cxx 0.9.8 be linked statically with all its dependencies like 
> apr, apr-util?
> I am trying to do the same on Solaris 5.8. I could build the log4cxx 
> statically but not able link it's dependencies statically. Has anybody

> tried this before?
>
> Regards
>



IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not 
intended for you, please delete it immediately unread.  The internet cannot 
guarantee that this communication is free of viruses, interception or 
interference and anyone who communicates with us by email is taken to accept 
the risks in so doing.  Without limitation, OOCL and its affiliates accept no 
liability whatsoever and howsoever arising in connection with the use of this 
email.  Under no circumstances shall this email constitute a binding agreement 
to carry or for provision of carriage services by OOCL, which is subject to the 
availability of carrier's equipment and vessels and the terms and conditions of 
OOCL's standard bill of lading which is also available at http://www.oocl.com.




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>