openwrt-dnsforwarder icon indicating copy to clipboard operation
openwrt-dnsforwarder copied to clipboard

relocation R_X86_64_32 against `.rodata' can not be used

Open tacuar opened this issue 7 years ago • 3 comments

make && sudo make install cc -o src/po2lmo src/po2lmo.o src/template_lmo.o /usr/bin/ld: src/po2lmo.o: relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: src/template_lmo.o: relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: 最后的链结失败: 输出不可表示的节 collect2: error: ld returned 1 exit status Makefile:6: recipe for target 'po2lmo' failed make: *** [po2lmo] Error 1

tacuar avatar Dec 05 '17 08:12 tacuar

@AlexZhuo

The above error occurs after running below codes:


pushd package/dnsforwarder/tools/po2lmo make && sudo make install


then i ingored the erros and complete the compiling, it seems all is running well in router firmware except one error notice keeps showing up in syslog:

entry not found entry not found entry not found entry not found entry not found

each time you click the luci interface of this dnsforwarder, the above error notice will show up once in syslog, it's exactly the same as the error before which occured in another repository named luci-app-pdnsd.

tacuar avatar Dec 05 '17 11:12 tacuar

@AlexZhuo

another question to Alex: if i run both dnsforwarder and SSR, do we still need to setup the DHCP/DNS interface like before? no more DNS forwardings needed in that interface? also the option of ingoring the resolve file

tacuar avatar Dec 05 '17 11:12 tacuar

You need not setup DHCP/DNS any more; The compile error of po2lmo could be avoided by compiling with Ubuntu 16.04 or you can skip this step by modifying the Makefile.mk

AlexZhuo avatar Dec 23 '17 02:12 AlexZhuo