|
Bugzilla – Full Text Bug Listing |
| Summary: | Sudo 1.8.0 libraries failure | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Radu Mihaescu <radu.d.mihaescu> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | high | ||
| Priority: | low | ||
| Version: | 1.8.0 | ||
| Hardware: | Sun | ||
| OS: | All | ||
|
Description
Radu Mihaescu
2011-03-09 08:10:10 MST
This sounds like a configuration problem with the gcc spec file--gcc is not including the rpath to allow libgcc_s.so.1 to be found. This is how it looks for the sudo binaries I build on Solaris:
$ ldd /usr/local/libexec/sudoers.so | grep gcc
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
$ elfdump /usr/local/libexec/sudoers.so | grep PATH
[9] RUNPATH 0x102c /usr/sfw/lib
[10] RPATH 0x102c /usr/sfw/lib
This comes from the following entry in the gcc specs file:
*libgcc:
%{static|static-libgcc:-R/usr/sfw/lib -lgcc -lgcc_eh}%{!static:%{!static-libgcc:{!shared:%{!shared-libgcc:-R/usr/sfw/lib -lgcc -lgcc_eh}%{shared-libgcc:-R/usr/fw/lib -lgcc_s%M -lgcc}}%{shared:-R/usr/sfw/lib -lgcc_s%M}}}
You may be able to work around it by adding -Wl,-R/usr/local/lib to SUDOERS_LDFLAGS in plugins/sudoers/Makefile. You'll have to do a "make clean; make" afterwards.
(In reply to comment #1) > This sounds like a configuration problem with the gcc spec file--gcc is > not including the rpath to allow libgcc_s.so.1 to be found. This is > how it looks for the sudo binaries I build on Solaris: > > $ ldd /usr/local/libexec/sudoers.so | grep gcc > libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1 > > $ elfdump /usr/local/libexec/sudoers.so | grep PATH > [9] RUNPATH 0x102c /usr/sfw/lib > [10] RPATH 0x102c /usr/sfw/lib > > This comes from the following entry in the gcc specs file: > > *libgcc: > %{static|static-libgcc:-R/usr/sfw/lib -lgcc > -lgcc_eh}%{!static:%{!static-libgcc:{!shared:%{!shared-libgcc:-R/usr/sfw/lib > -lgcc -lgcc_eh}%{shared-libgcc:-R/usr/fw/lib -lgcc_s%M > -lgcc}}%{shared:-R/usr/sfw/lib -lgcc_s%M}}} > > You may be able to work around it by adding -Wl,-R/usr/local/lib to > SUDOERS_LDFLAGS in plugins/sudoers/Makefile. You'll have to do a "make > clean; make" afterwards. Hello Todd, Thanks a lot, your solution solved my libraries problem. |