[sles-beta] static libraries

Joel Barbieri Joel.Barbieri at merge.com
Wed May 28 08:44:16 MDT 2014


- mount "source" or "sources" [as you show below]
- create a report of the files available from all rpms.
-- find /mnt1 -name "*.rpm" -exec rpm -qp '{}' --qf '[%{NAME} %{FILENAMES}\n]' \; > ~/rpm.pkgfiles
- search or grep for the objects you need...best to place objects in a file and ask grep to find the objects.
-- add regexes for objects interested in to the file "~/objects"  e.g. "libbz"
-- grep --color -f objects ~/rpm.pkgfiles

You can get fancier with awk if you want and report just the filenames after matching on the second field, but the above should help you pinpoint what you have or need.

You can even consider using tools to analyze your source objects to create your search object list, but I digress.  That, and I don't recall if ldd or nm or ar, or what would actually tear a statically linked file apart for its pieces.  ldd definitely tells you your dynamic library requirements, but for static...it's been too long and there are not many left for me to give you an answer to that question.

-Joel

-----Original Message-----
From: sles-beta-bounces at lists.suse.com [mailto:sles-beta-bounces at lists.suse.com] On Behalf Of Wendy Palm
Sent: Wednesday, May 28, 2014 9:01 AM
To: Antoine Ginies
Cc: sles-beta at lists.suse.com
Subject: Re: [sles-beta] static libraries

I think this is incorrect.  It's in the libbz2-devel rpm in SLE 11-SP3-SDK.

# mount -o loop SLE-11-SP3-SDK-DVD-x86_64-GM-DVD1.iso /mnt1
# rpm -q -p /mnt1/suse/x86_64/libbz2-devel-1.0.5-34.253.1.x86_64.rpm --filesbypkg
libbz2-devel              /usr/include/bzlib.h
libbz2-devel              /usr/lib64/libbz2.a
libbz2-devel              /usr/lib64/libbz2.so

> -----Original Message-----
> From: Antoine Ginies [mailto:aginies at suse.com]
> Sent: Wednesday, May 28, 2014 3:22 AM
> To: Wendy Palm
> Cc: sles-beta at lists.suse.com
> Subject: Re: [sles-beta] static libraries
> 
> Wendy Palm:
> > Ok, what about libbz2.a?
> >
> > It's not included in glibc-devel-static (at least as of beta 6.  We're still in the
> process of downloading beta7).
> 
> We do not provide bzip2-devel-static libraries in SLE12. I have done a check in
> SLE11SP3 and it seems we don't provide it also.
> 
> Regards.
> 
> Antoine
> 
> > > -----Original Message-----
> > > From: sles-beta-bounces at lists.suse.com [mailto:sles-beta-
> > > bounces at lists.suse.com] On Behalf Of Wendy Palm
> > > Sent: Tuesday, May 27, 2014 3:39 PM
> > > To: Antoine Ginies
> > > Cc: sles-beta at lists.suse.com
> > > Subject: Re: [sles-beta] static libraries
> > >
> > > Thanks.  we hadn't noticed those.
> > >
> > > > -----Original Message-----
> > > > From: Antoine Ginies [mailto:aginies at suse.com]
> > > > Sent: Tuesday, May 27, 2014 3:31 PM
> > > > To: Wendy Palm
> > > > Cc: sles-beta at lists.suse.com
> > > > Subject: Re: [sles-beta] static libraries
> > > >
> > > > Wendy Palm:
> > > > > We ran into a problem trying to build some of our internal tests.
> > > > > It looks like SLES12 no longer includes libc.a or libpthread.a.
> > > > >
> > > > > Is it planned that static libraries will no longer be provided?
> > > >
> > > > hello,
> > > > static libraries are provided in the SLE-12-SDK-DVD iso.
> > > > "glibc-devel-static*.rpm" will provide you libc.a and libpthread.a.
> > > >
> > > > Regards.
> > > >
> > > > Antoine
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Ginies <aginies at suse.com>
> > > > Project Manager
> > > > SUSE France
> > > _______________________________________________
> > > sles-beta mailing list
> > > sles-beta at lists.suse.com
> > > http://lists.suse.com/mailman/listinfo/sles-beta
> >
> 
> --
> Antoine Ginies <aginies at suse.com>
> Project Manager
> SUSE France
_______________________________________________
sles-beta mailing list
sles-beta at lists.suse.com
http://lists.suse.com/mailman/listinfo/sles-beta


More information about the sles-beta mailing list