Bug #11886


Build of database/berkeleydb fails with elfedit error

Added by Gary Mills almost 2 years ago. Updated 12 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


This is the first of a series of bugs I encountered while building and publishing OI source on SPARC hardware. The OI source is from 2018. Consequently, there may be a new version of the source, or some of the bugs may have already been fixed. Though the changes have been developed on SPARC hardware, they might correct bugs in some x86 packages. In any case, they should not affect other x86 packages.

Running as an ordinary user, I got the following errors:

Stripping /usr/lib/sparcv9 from RUNPATH in
elfedit: open failed:
Permission denied
Stripping /usr/lib/sparcv9 from RPATH in
elfedit: open failed:
Permission denied
Lint engine setup...
Starting lint run...
ERROR userland.action001.3        bad RUNPATH, 'usr/bin/sparcv9/db_archive' includes '/usr/lib/sparcv9'

The cause is elfedit being unable to access certain files. The solution is to make those files writable after the files are installed. The patch Makefile.diff fixes this problem.


Makefile.diff (510 Bytes) Makefile.diff Gary Mills, 2019-10-28 08:58 PM
Actions #1

Updated by Michal Nowak almost 2 years ago

These bugs should be, somehow, marked as SPARK-related. Either, create a tracking parent bug and assign bugs like this one to it, or Tag them appropriately, or perhaps create a Category.

Alexander Pyhalov Any preference in tracking this?

Actions #2

Updated by Gary Mills almost 2 years ago

This one, as it happens, is not SPARC-related. If they are, I would certainly put SPARC in the title.

Actions #3

Updated by Gary Mills 12 months ago

  • Status changed from New to Closed

Since I opened this bug report, db has been upgraded from 5.3.21 to 5.3.28 . The upgrade may have fixed the problem. My testing of the new version under OI x86 reveals that the error is avoided by not adding the defaults to the library search path list, so that userland-mangler does not attempt to edit the path list. This strategy may work for the new version. In any case, there is likely a better fix for the old version on the SPARC platform. Hence, I'm closing this bug report.


Also available in: Atom PDF