Quantcast
Channel: Symantec Connect - Endpoint Protection - Discussions
Viewing all articles
Browse latest Browse all 10484

Failed to compile Auto-Protect kernel on Amazon Linux

$
0
0
I need a solution

Hi guys,

Now I'm using kernel 4.4.8-20.46.amzn1.x86_64 on Amazon Linux, I got Auto-Protect malfunctioning when install symantec client. (symantec 12.1.6)

So, based on the support document, I do some steps from this link:
https://support.symantec.com/en_US/article.INFO2514.html
https://support.symantec.com/en_US/article.TECH132773.html

The point is to build auto-protect for my kernel version, but when I run ./build.sh the result is like this:

./build.sh --kernel-dir /lib/modules/$(uname -r)/build
Tue May 17 05:19:10 UTC 2016: starting to build kernel modules of SEP for Linux
Kernel release not specified. Build kernel modules for current kernel version 4.4.8-20.46.amzn1.x86_64
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev /opt/symantec/src/ap-kernelmodule-12.1.6867-6400
rm -f *.o *.ko *.mod.c .*.cmd modules.order Module.symvers* Module.markers Modules.symvers *.ko.unsigned Makefile.xen
rm -rf .tmp_versions* .build-*
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symap /opt/symantec/src/ap-kernelmodule-12.1.6867-6400
rm -f *.o *.ko *.mod.c .*.cmd modules.order Module.symvers* Module.markers Modules.symvers *.ko.unsigned Makefile.xen symap_test
rm -rf ../symev/.tmp_versions* .build-*
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev /opt/symantec/src/ap-kernelmodule-12.1.6867-6400
make -C /lib/modules/4.4.8-20.46.amzn1.x86_64/build M=/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev MODVERDIR=/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/.tmp_versions-custom-4.4.8-20.46.amzn1-x86_64 modules
make[1]: Entering directory `/usr/src/kernels/4.4.8-20.46.amzn1.x86_64'
  CC [M]  /opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.o
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c: In function ‘sym_filename_str’:
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c:173:53: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
 static char* sym_filename_str(sym_filename_t* fn) { return fn==NULL? NULL: fn->name; }
                                                     ^
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c: In function ‘symev_putname’:
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c:196:13: error: ‘sym_filename_t’ has no member named ‘separate’
     if (name->separate) {
             ^
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c: In function ‘symev_getname’:
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c:229:8: error: ‘struct filename’ has no member named ‘separate’
  result->separate = false;
        ^
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.c:255:9: error: ‘struct filename’ has no member named ‘separate’
   result->separate = true;
         ^
make[2]: *** [/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev/symev.o] Error 1
make[1]: *** [_module_/opt/symantec/src/ap-kernelmodule-12.1.6867-6400/symev] Error 2
make[1]: Leaving directory `/usr/src/kernels/4.4.8-20.46.amzn1.x86_64'
make: *** [custom] Error 2
/opt/symantec/src/ap-kernelmodule-12.1.6867-6400

Tue May 17 05:19:11 UTC 2016: Build failed
 

Do you know how to resolve this issue?

Thanks.

0

Viewing all articles
Browse latest Browse all 10484

Trending Articles