Bug 1377803

Summary: [regression] -rpath appears to clear default library search path
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, jakub, klember, nickc, puiterwijk
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-21 16:15:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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. ***