Cannot compile it with Fedora 32
jeonghanlee opened this issue · 1 comments
jeonghanlee commented
RecStd -ldbCore -lca -lCom `net-snmp-config --libs`
/usr/bin/ld: snmp_registerRecordDeviceDriver.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
collect2: error: ld returned 1 exit status
gcc --version
gcc (GCC) 10.0.1 20200328 (Red Hat 10.0.1-0.11)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
jeonghanlee commented
Add -fPIC flag in building configuration. Fixed at 6f0acd4