Bug 82418 - Cannot Statically Link Against librpm
Cannot Statically Link Against librpm
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
8.0
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-21 18:25 EST by Adam H. Pendleton
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-22 05:18:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam H. Pendleton 2003-01-21 18:25:28 EST
Description of problem:
When using libtool and automake to link the RPM 4.1 libraries, full static
linkage is not possible.

Version-Release number of selected component (if applicable):
4.1-1.06

How reproducible:

100%

Steps to Reproduce:

In Makefile.am use:

program_LDADD = -lrpm
program_LDFLAGS = -all-static

Compiling this program produces the following error:

/usr/bin/ld: cannot find -lrpmdb-4.1
collect2: ld returned 1 exit status

This occurs because there is indeed no static version of librpmdb-4.1.  There is
a shared version, but not static version.  Since /usr/lib/librpm.la depends on
librpmdb-4.1, there should be static versions of these libraries.


    
Actual results:

No linkage statically against rpm.

Expected results:

Static link to rpm libraries.


Additional info:

It should be possible to statically link against librpm.
Comment 1 Jeff Johnson 2003-01-22 05:18:21 EST
Use -lrpmdb, not -lrpmdb-4.1.

Note You need to log in before you can comment on or make changes to this bug.