使用我的PC,我试图构建一个x86二进制文件,以将其用于根植Logitech Revue的软件中。在启动makefile时,我很早就遇到了这个错误。
我试图在32位Linux lite发行版和64位Linux发行版上进行编译
root@DESKTOP-ODIQTIF:/usr/local/src/revue-
nandpwn/revue/nandpwn# make
gcc nandpwn.o kstack.o leak.o nand.o -o
nandpwn -m32
kstack.o: In function `get_kstack':
kstack.c:(.text+0x205): undefined reference to
`test_possible_kstack'
collect2: error: ld returned 1 exit status
Makefile:5: recipe for target 'nandpwn' failed
make: *** [nandpwn] Error 1
我应该得到以下信息:
gcc -c nandpwn.c -m32
gcc -c kstack.c -m32
gcc -c leak.c -m32
gcc -c nand.c -m32
gcc nandpwn.o kstack.o leak.o nand.o -o nandpwn -m32