Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utils from binary release WPS-CMake 4.1.0 are no relocatable #20

Closed
cofinoa opened this issue Apr 17, 2020 · 1 comment
Closed

Utils from binary release WPS-CMake 4.1.0 are no relocatable #20

cofinoa opened this issue Apr 17, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@cofinoa
Copy link

cofinoa commented Apr 17, 2020

Tested with: wps-cmake-4.1.0-basic_nesting-serial-x64-linux-release.tar.xz
The executables under util directory doesn't define the RPATH on the binary dynamic section.
For example util/calc_ecmwf_p.exe:

$  objdump -p util/calc_ecmwf_p.exe
....
Dynamic Section:
  NEEDED               libgfortran.so.5
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
....

[some output ommited]

It can be fixed like:

$ patchelf --force-rpath --set-rpath "\$ORIGIN/../.libs" --replace-needed libgfortran.so.5 libgfortran-2e0d59d6.so.5.0.0 util/calc_ecmwf_p.exe
$ objdump -p util/calc_ecmwf_p.exe
.....
Dynamic Section:
  RPATH                $ORIGIN/../.libs
  NEEDED               libgfortran-2e0d59d6.so.5.0.0
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6

the fixing includes also to point the right SO.

Regards

@letmaik letmaik added the bug Something isn't working label Apr 17, 2020
@letmaik
Copy link

letmaik commented Apr 17, 2020

Thanks for the report. This is fixed now in the re-released 4.1.0.

@letmaik letmaik closed this as completed Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants