编译radiusplugin出现
/usr/bin/ld: RadiusClass/RadiusAttribute.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
RadiusClass/RadiusAttribute.o: could not read symbols: Bad value
由于系统是64位导致的。
RadiusClass/RadiusAttribute.o: could not read symbols: Bad value
由于系统是64位导致的。
解决方法:
删除原来解压的文件,重新解压
vi Makefile
在CFLAGS=-Wall -shared 添加-fPIC -DPIC
然后重新make即可
转载于:https://blog.51cto.com/mcshell/436130