[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re:[SUMMARY] error with rpm 4.0.3 libs
- From: André Ladeira <ladeira automatos com>
- To: "rpm-list" <rpm-list redhat com>
- Subject: Re:[SUMMARY] error with rpm 4.0.3 libs
- Date: Thu, 27 Dec 2001 16:37:08 -0300
Hi,
First, thanks to jeff johnson, that posted my only answer. Thanks jeff!
The only problem with your idea of statically link the rpm libs is that the
final exucutable grows to 5Mb! But you are right, it's insanity trying to do
something
sophisticated with these libs....
But I found by myself a weird solution: I wrote a shared library that when
called
with dlopen just link at run time to itself all the libraries of rpm and
then I can use dlopen on my own lib for indirectly access the functions of
rpm API. This lib have only 3kb and my executable remains low sized.
what is the use of this? I will try to explain....I'm writting an
application that need to read data from rpm database, no matter the version
of rpm. My initial idea is to ask rpm about its version and then load the
right libraries with dlopen and the right functions with dlsym (I know in
advance the
right ones for each version..). But this scheme failed with rpm 4.0.3
because of the
cross reference from one lib to another as I mentioned before.
( Jeff, now you know why I need rpm 4.0.1, 4.0.2 .... :-) )
----- Original Message -----
From: "Jeff Johnson" <jbj@JBJ.ORG>
To: <rpm-list@redhat.com>
Sent: Friday, December 14, 2001 9:57 PM
Subject: Re: error with rpm 4.0.3 libs
> On Thu, Dec 13, 2001 at 07:06:18PM -0200, root wrote:
> > Hi,
> >
> > I'm trying to use the APIs from the rpmlib, with dlopen call.
> > my problem is that in the 4.0.3 release there is a cross reference
> > between librpm.so and
> > librpmdb.so (librpm.so uses an symbol called chroot_prefix that is
> > defined in librpmdb.so and librpmdb.so
> > uses the symbol _noDirTokens defined in librpm.so). Because of that
> > dlopen cant load these libs, even when using the RTLD_LAZY option.
>
> Nasty loops are known, actually fixed in rpm-4.1, but that code
> ain't even close to being cooked yet.
>
> Meanwhile you're *insane* to attempt anything sophisticated with
> rpm shared libraries. Don't even think about it, roll your own
> modules if you must. Better yet, figger a way to statically
> link.
>
> HTH
>
> 73 de Jeff
>
> --
> Jeff Johnson ARS N3NPQ
> jbj@jbj.org (jbj@redhat.com)
> Chapel Hill, NC
>
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]