[Android Software Development] m4570d0n:
Quick question. I'm trying to build TWRP 2.6.0.x for the SGS2 Skyrocket and I'm running into an error during the build regarding SELinux:

system/extras/ext4_utils/make_ext4fs.c:187: error: undefined reference to 'selabel_lookup'
system/extras/ext4_utils/make_ext4fs.c:237: error: undefined reference to 'selabel_lookup'
system/extras/ext4_utils/make_ext4fs.c:584: error: undefined reference to 'selabel_lookup'
system/extras/ext4_utils/make_ext4fs.c:593: error: undefined reference to 'freecon'
collect2: error: ld returned 1 exit status
make: *** [/home/m4570d0n/PAC/out/target/product/skyrocket/obj/EXECUTABLES/updater_intermediates/LINKED/updater] Error 1
make: *** Waiting for unfinished jobs....

more context:

bootable/recovery/updater/updater.c: In function 'main':
bootable/recovery/updater/updater.c:101:5: warning: implicit declaration of function 'yy_scan_string' [-Wimplicit-function-declaration]
bootable/recovery/updater/updater.c:102:5: warning: implicit declaration of function 'yyparse' [-Wimplicit-function-declaration]
In file included from bootable/recovery/updater/../applypatch/applypatch.h:22:0,
from bootable/recovery/updater/install.c:39:
bootable/recovery/updater/../minelf/Retouch.h:26:1: warning: 'packed' attribute ignored [-Wattributes]
bootable/recovery/updater/install.c: In function 'SetPermFn':
bootable/recovery/updater/install.c:507:9: warning: format '%d' expects a matching 'int' argument [-Wformat]
bootable/recovery/updater/install.c: In function 'FileGetPropFn':
bootable/recovery/updater/install.c:629:9: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat]
bootable/recovery/updater/install.c:642:20: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat]
bootable/recovery/updater/install.c: In function 'WriteRawImageFn':
bootable/recovery/updater/install.c:731:5: warning: implicit declaration of function 'restore_raw_partition' [-Wimplicit-function-declaration]
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fvisibility-inlines-hidden' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fvisibility-inlines-hidden' is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
+ echo 'in mkuserimg.sh PATH=/home/m4570d0n/PAC/out/host/linux-x86/bin/:/usr/bin/bin:/home/m4570d0n/PAC/out/host/linux-x86/bin:/home/m4570d0n/PAC/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/m4570d0n/PAC/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/m4570d0n/PAC/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.7/bin:/home/m4570d0n/PAC/development/emulator/qtools:/home/m4570d0n/PAC/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin:/home/m4570d0n/PAC/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin:/home/m4570d0n/PAC/development/scripts:/home/m4570d0n/PAC/prebuilts/devtools/tools:/home/m4570d0n/adt-bundle-linux-x86_64/sdk/platform-tools/:/home/m4570d0n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/m4570d0n/adt-bundle-linux-x86_64/sdk/tools:/home/m4570d0n/adt-bundle-linux-x86_64/sdk/platform-tools:/usr/lib/jvm/java-6-oracle:/usr/lib/jvm/java-6-oracle/lib:/usr/lib/jvm/java-6-oracle/bin:/usr/lib/jvm/java-6-oracle/jre:/usr/lib/jvm/java-6-oracle/jre/bin:/usr/lib/jvm/java-6-oracle/jre/lib:${ANT_HOME}/bin:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin:/home/m4570d0n/adt-bundle-linux-x86_64/sdk/tools:/home/m4570d0n/adt-bundle-linux-x86_64/sdk/platform-tools:/home/m4570d0n/adt-bundle-linux-x86_64/sdk/APK-Multi-Tool:/home/m4570d0n/bin/:/home/m4570d0n/apache-ant-1.9.0/bin:/home/m4570d0n/apache-ant-1.9.0/bin'
+ ENABLE_SPARSE_IMAGE=
+ '[' -s = -s ']'
+ ENABLE_SPARSE_IMAGE=-s
+ shift
+ '[' 6 -ne 5 -a 6 -ne 6 ']'
+ SRC_DIR=/home/m4570d0n/PAC/out/target/product/skyrocket/data
+ '[' '!' -d /home/m4570d0n/PAC/out/target/product/skyrocket/data ']'
+ OUTPUT_FILE=/home/m4570d0n/PAC/out/target/product/skyrocket/userdata.img
+ EXT_VARIANT=ext4
+ MOUNT_POINT=data
+ SIZE=20044333056
+ FC=/home/m4570d0n/PAC/out/target/product/skyrocket/root/file_contexts
+ case $EXT_VARIANT in
+ '[' -z data ']'
+ '[' -z 20044333056 ']'
+ '[' -n /home/m4570d0n/PAC/out/target/product/skyrocket/root/file_contexts ']'
+ FCOPT='-S /home/m4570d0n/PAC/out/target/product/skyrocket/root/file_contexts'
+ MAKE_EXT4FS_CMD='make_ext4fs -s -S /home/m4570d0n/PAC/out/target/product/skyrocket/root/file_contexts -l 20044333056 -a data /home/m4570d0n/PAC/out/target/product/skyrocket/userdata.img /home/m4570d0n/PAC/out/target/product/skyrocket/data'
+ echo make_ext4fs -s -S /home/m4570d0n/PAC/out/target/product/skyrocket/root/file_contexts -l 20044333056 -a data /home/m4570d0n/PAC/out/target/product/skyrocket/userdata.img /home/m4570d0n/PAC/out/target/product/skyrocket/data
+ make_ext4fs -s -S /home/m4570d0n/PAC/out/target/product/skyrocket/root/file_contexts -l 20044333056 -a data /home/m4570d0n/PAC/out/target/product/skyrocket/userdata.img /home/m4570d0n/PAC/out/target/product/skyrocket/data
+ '[' 0 -ne 0 ']'
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: external/guava/guava/src/com/google/common/base/Joiner.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
system/extras/ext4_utils/make_ext4fs.c:187: error: undefined reference to 'selabel_lookup'
system/extras/ext4_utils/make_ext4fs.c:237: error: undefined reference to 'selabel_lookup'
system/extras/ext4_utils/make_ext4fs.c:584: error: undefined reference to 'selabel_lookup'
system/extras/ext4_utils/make_ext4fs.c:593: error: undefined reference to 'freecon'
collect2: error: ld returned 1 exit status
make: *** [/home/m4570d0n/PAC/out/target/product/skyrocket/obj/EXECUTABLES/updater_intermediates/LINKED/updater] Error 1
make: *** Waiting for unfinished jobs....

Can anyone tell me what I'm missing here? I can build cm-10.2 on here with the CWM recovery without any issues, and I was fairly sure I added everything I needed to the BoardConfig.mk.