[ERROR description] no reference defined
bootable/recovery/minzip/zip.c:1122:error:undefined reference to ' Selabel_lookup '
bootable/recovery/minzip/zip.c:1123:error:undefined reference to ' Setfscreatecon '
bootable/ recovery/minzip/zip.c:1129:error:undefined reference to ' Freecon '
Bootable/recovery/minzip/zip.c:1130:error: Undefined reference to ' Setfscreatecon '
bootable/recovery/minzip/dirutil.c:151:error:undefined reference to ' Selabel_lookup '
bootable/recovery/minzip/dirutil.c:152:error:undefined reference to ' Setfscreatecon '
bootable/recovery/minzip/dirutil.c:158:error:undefined reference to ' Freecon '
bootable/recovery/minzip/ dirutil.c:159:error:undefined reference to ' Setfscreatecon '
Collect2:error:ld returned 1 exit status
Make: * * * [ Out/target/product/fly/obj/shared_libraries/ua-server_intermediates/linked/ua-server.so] Error 1
[Problem analysis] according to the hint, ZIP.C calls the four functions ' selabel_lookup ', ' Setfscreatecon ', ' Freecon ', ' setfscreatecon ' undefined. In fact, they are defined in the libselinux library , only because the Libselinux library is not included in the corresponding module's android.mk file, resulting in such a compilation error.
[Processing method] Open the Android.mk file of the compiled module, add local_static_libraries + = Libselinux in the corresponding module, and if there are other libraries, add the libselinux directly to the back.
Small summary, only for the discussion, if the reader in the compilation process encountered similar problems, can be extrapolate, to solve.
#欢迎技术交流 # Skype account: Fxwlucky
Android compilation error--undefined reference to