Summary: | ASTERISK-25726: Asterisk compilation fails: 'redhat-hardened-ld: no such file or directory' - Asterisk on Fedora 23 appears to require redhat-rpm-config | ||
Reporter: | Rusty Newton (rnewton) | Labels: | |
Date Opened: | 2016-01-26 09:26:53.000-0600 | Date Closed: | 2017-04-28 10:35:24 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Core/BuildSystem |
Versions: | 11.21.0 13.7.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Fedora 23 4.2.8-300.fc23.i686 #1 SMP Tue Dec 15 17:30:11 UTC 2015 i686 i686 i386 GNU/Linux | Attachments: | |
Description: | Ran into this gcc error when compiling Asterisk 11.21.0 on Fedora 23.
{noformat} [LD] res_calendar_exchange.o -> res_calendar_exchange.so gcc: error: /usr/lib/rpm/redhat/redhat-hardened-ld: No such file or directory /root/asterisk/asterisk-11.21.0-rc1/asterisk-11.21.0/Makefile.rules:170: recipe for target 'res_calendar_exchange.so' failed make[1]: *** [res_calendar_exchange.so] Error 1 Makefile:394: recipe for target 'res' failed make: *** [res] Error 2 {noformat} At first I went back and deselected this module because I didn't need it. However a few other modules ran into the same problem. Found that apparently the redhat-rpm-config package is required: {noformat} [root@28-21-24-10 asterisk-11.21.0]# dnf provides /usr/lib/rpm/redhat/redhat-hardened-ld Last metadata expiration check performed 25 days, 14:39:35 ago on Thu Dec 31 18:38:14 2015. redhat-rpm-config-36-1.fc23.noarch : Red Hat specific rpm configuration files Repo : fedora {noformat} Installing this package allowed the build to succeed. We may need to add this package to our prereqs script. | ||
Comments: | By: George Joseph (gjoseph) 2016-02-16 12:55:47.055-0600 Actually the issue is with the neon and net-snmp packages. Their config programs set CFLAGS to require the redhat hardened spec files but their -devel packages don't require redhat-rpm-config. I'm going to file Fedora bugs on them. By: George Joseph (gjoseph) 2016-02-16 13:24:10.980-0600 https://bugzilla.redhat.com/show_bug.cgi?id=1309078 https://bugzilla.redhat.com/show_bug.cgi?id=1309080 By: George Joseph (gjoseph) 2016-02-24 18:44:12.464-0600 Bug 1309080 for net-snmp is fixed and the package is in testing. |