Project

General

Profile

Bug #1739

certutil with incomplete runpath

Added by Milan Jurik over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OpenIndiana Misc
Target version:
-
Start date:
2011-11-06
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
certutil

Description

$ /usr/sfw/bin/certutil
ld.so.1: certutil: fatal: libnss3.so: open failed: No such file or directory
ld.so.1: certutil: fatal: relocation error: file /usr/sfw/bin/certutil: symbol CERT_EncodeBasicConstraintValue: referenced symbol not found
Killed

$ ldd /usr/sfw/bin/certutil
libsmime3.so => (file not found)
libnss3.so => (file not found)
libnssutil3.so => (file not found)
libplc4.so => (file not found)
libnspr4.so => (file not found)
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2

It needs /usr/lib/mps as part of its runpath:

$ LD_LIBRARY_PATH=/usr/lib/mps ldd /usr/sfw/bin/certutil
libsmime3.so => /usr/lib/mps/libsmime3.so
libnss3.so => /usr/lib/mps/libnss3.so
libnssutil3.so => /usr/lib/mps/libnssutil3.so
libplc4.so => /usr/lib/mps/libplc4.so
libnspr4.so => /usr/lib/mps/libnspr4.so
libc.so.1 => /lib/libc.so.1
libplds4.so => /usr/lib/mps/libplds4.so
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libpthread.so.1 => /lib/libpthread.so.1
librt.so.1 => /lib/librt.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libdl.so.1 => /lib/libdl.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libm.so.2 => /lib/libm.so.2

History

#1

Updated by Ryo Murakawa over 7 years ago

  • Assignee set to OI PKG
  • Tags changed from needs-triage to certutil
#2

Updated by Milan Jurik over 7 years ago

simple workaround is to modify runpath with:

  1. elfedit -e 'dyn:runpath $ORIGIN/../lib:/usr/lib/mps' /usr/sfw/bin/certutil
#3

Updated by Jon Tibble over 7 years ago

  • Status changed from New to Resolved

Should be fixed in prestable1

Also available in: Atom PDF