Bug 1377803 - [regression] -rpath appears to clear default library search path
Summary: [regression] -rpath appears to clear default library search path
Keywords:
Status: CLOSED DUPLICATE of bug 1377949
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1377799 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 16:02 UTC by Orion Poplawski
Modified: 2016-10-01 21:47 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-21 16:15:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2016-09-20 16:02:43 UTC
Description of problem:

# cat conftest.c
int main() {

  ;
  return 0;
}
# gcc -L/usr/lib64/mpich/lib -Wl,-rpath,/usr/lib64/mpich/lib -lmpi conftest.c
/usr/bin/ld: warning: librt.so.1, needed by /usr/lib64/mpich/lib/libmpi.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libpthread.so.0, needed by /usr/lib64/mpich/lib/libmpi.so, not found (try using -rpath or -rpath-link)
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `aio_error64.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `clock_gettime.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `pthread_mutexattr_init.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `aio_return64.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `pthread_create.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `clock_getres.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `pthread_mutexattr_destroy.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `pthread_mutexattr_setpshared.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `pthread_mutexattr_settype.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `aio_suspend64.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `aio_read64.5'
/usr/lib64/mpich/lib/libmpi.so: undefined reference to `aio_write64.5'

On F25 with binutils-2.26.1-1.fc25.x86_64 this works fine.

Version-Release number of selected component (if applicable):
binutils-2.27-6.fc26.x86_64

Comment 1 Orion Poplawski 2016-09-20 16:18:50 UTC
Seems to be new going from -5 to -6.

Comment 2 Kalev Lember 2016-09-20 19:51:46 UTC
I went ahead and untagged binutils-2.27-6.fc26 from rawhide as this was causing distro wide breakage, e.g. pretty much all of GNOME was failing to build.

Comment 3 Nick Clifton 2016-09-21 16:15:55 UTC

*** This bug has been marked as a duplicate of bug 1377949 ***

Comment 4 Patrick Uiterwijk 2016-10-01 21:47:11 UTC
*** Bug 1377799 has been marked as a duplicate of this bug. ***


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