Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to build a copy of HTTPD with mod_ssl and mod_security that's completely portable (IE, rpath relative to $ORIGIN) on a CentOS 7 x86_64 system.
I've got essentially everything working except openssl-1.0.2l. I absolutely cannot find a way to get the literal '$' into the rpath.
The command I'm using to test looks like this:
Code:
(./config --prefix=/sites/opt/HTTPD/httpd-2.4.27_modsecurity-2.9.1 --openssldir=/sites/opt/HTTPD/httpd-2.4.27_modsecurity-2.9.1 threads shared no-comp '-Wl,-z,origin,-rpath,\$\$\$ORIGIN/../lib,-rpath,\$ORIGIN/../../lib' && make depend && make && make install) &>/dev/null && readelf -d /sites/opt/HTTPD/httpd-2.4.27_modsecurity-2.9.1/lib/libssl.so.1.0.0
So, I'm pretty sure this is flat out impossible to do. OpenSSL ignores the normal environment variables (LDFLAGS, CFLAGS, LD_RUN_PATH, etc) and will only listen to what you feed in via ./config. I tried this:
Code:
./config --prefix=/sites/opt/HTTPD/httpd-2.4.27_modsecurity-2.9.1 --openssldir=/sites/opt/HTTPD/httpd-2.4.27_modsecurity-2.9.1 threads shared no-comp '-Wl,-z,origin,-rpath,$$ORIGIN01/../lib,-rpath,$$$ORIGIN02/../lib,-rpath,$$$$ORIGIN03/../lib,-rpath,$$$$$ORIGIN04/../lib,-rpath,\$$ORIGIN05/../lib,-rpath,\$$$ORIGIN06/../lib,-rpath,\$$$$ORIGIN07/../lib,-rpath,\$$$$$ORIGIN08/../lib,-rpath,\$$$$$ORIGIN09/../lib,-rpath,\\$$ORIGIN10/../lib,-rpath,\\$$$ORIGIN11/../lib,-rpath,\\$$$$ORIGIN12/../lib,-rpath,\\$$$$$ORIGIN13/../lib,-rpath,\\$$$$$$$ORIGIN14/../lib,-rpath,\\\$$ORIGIN15/../lib,-rpath,\\\$$$ORIGIN16/../lib,-rpath,\\\$$$$ORIGIN17/../lib,-rpath,\\\$$$$$ORIGIN18/../lib,-rpath,\\\$$$$$$ORIGIN19/../lib,-rpath,\$\$ORIGIN/../../lib' && make depend && make && make install
I have no idea what the '1876' thing is about. It's interesting that some of them flat out disappeared. Has anyone, anywhere, managed to compile a copy of OpenSSL with a relative runpath? Ever?
Expletive. I wanted to do it the 'pure' way and just use flags and such to get it all working, but I'm just gonna brute force it with chrpath instead. It's been fun, but forget this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.