The attached patch works around the issue.  The change might not be correct for 
some ports.
The main issue is hppa is not PIE be default.

Dave
--
John David Anglin       dave.ang...@bell.net


--- ./res/Makefile.save 2017-12-28 13:00:40.802110566 -0500
+++ ./res/Makefile      2017-12-28 14:35:05.354564489 -0500
@@ -41,7 +41,7 @@
 ais/clm.o ais/evt.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_ais)
 
 res_snmp.so: snmp/agent.o
-snmp/agent.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_snmp)
+res_snmp.o snmp/agent.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_snmp) -fPIC
 
 res_ael_share.so: ael/ael_lex.o ael/ael.tab.o ael/pval.o
 ael/ael_lex.o ael/ael.tab.o ael/pval.o: _ASTCFLAGS+=$(call 
MOD_ASTCFLAGS,res_ael_share)

Reply via email to