Hello, perl (any version) default build, makes dynamic linking against -R/usr/local/lib/perl5/5.18/mach/CORE: # perl -V ... Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector' ... Because of that, net-snmpd is built with: # net-snmp-config --agent-libs -L/usr/lib -lm -lkvm -ldevstat -lpkg -L/usr/local/lib -L/lib -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -lwrap -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE -lnetsnmp -lcrypto -lelf -lssp_nonshared which causes cyrus-imapd build to fail with error: cc: error: unknown argument: '-R/usr/local/lib/perl5/5.18/mach/CORE' *** Error code 1 Stop. make[3]: stopped in /var/ports/usr/ports/mail/cyrus-imapd23/work/cyrus-imapd-2.3.18/master *** Error code 1 Stop. make[2]: stopped in /var/ports/usr/ports/mail/cyrus-imapd23/work/cyrus-imapd-2.3.18 *** Error code 1 Stop. make[1]: stopped in /usr/ports/mail/cyrus-imapd23 *** Error code 1 Stop. make: stopped in /usr/ports/mail/cyrus-imapd23
Attempt an assignment.
Nope, not really a perl@, the problem must be in cyrus-imapd, replacing -Wl,-R with -R, or using LDFLAGS with CC, for some strange reason.
Well, cyrus, or net-snmp
Also, the ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE' in Perl has been there since before the dinosaurs, it was already there in Perl 5.8: # perl -V:ccdlflags ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.8.9/mach/CORE';
"Also, the ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE' in Perl has been there since before the dinosaurs, it was already there in Perl 5.8:" So as gcc, but now there is clang and these ccdlfags are unusable. Regards
(In reply to vladimir.nikolic from comment #5) > "Also, the ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE' in Perl > has been there since before the dinosaurs, it was already there in Perl 5.8:" > > So as gcc, but now there is clang and these ccdlfags are unusable. > > Regards Well, Perl sets "-Wl,-R/usr/local/lib/perl5/5.18/mach/CORE" not "-R/usr/local/lib/perl5/5.18/mach/CORE". If the -Wl, got dropped somewhere, it's not Perl's fault.
Ok, thank you. Regards
(In reply to vladimir.nikolic from comment #7) > Ok, thank you. > > Regards Though, I'm wondering exactly why cyrus imapd fails to build, I've had net-snmp with Perl, and cyrus-imapd with snmp built for years. Could you post the options with which perl, net-snmp and cyrus-imapd are built ?
It should be fixed now. Please refer PR 196015. *** This bug has been marked as a duplicate of bug 196015 ***