2013-12-11 23 views
0

我編寫了「hello world」aix內核擴展,然後「製作」它。 我的Makefile如下:當我編寫內核擴展時,我無法在我的AIX 6.1中找到文件「/usr/lib/kernex.exp」

all:kernext_hello 
kernext_hello:kernext_hello.c 
     gcc -D_KERNEL -maix64 -c kernext_hello.c -o kernext_hello.o 
     ld -b64 -o kernext_hello kernext_hello.o -e hello_init -bI:/usr/lib/kernex.exp -lsys -lcsys 
clean: 
     rm -f *.o kernext_hello 2> /dev/null 

和錯誤信息:

gcc -D_KERNEL -maix64 -c kernext_hello.c -o kernext_hello.o 
     ld -b64 -o kernext_hello kernext_hello.o -e hello_init -bI:/usr/lib/kernex.exp -lsys -lcsys 
ld: 0706-005 Cannot find or open file: kernext_hello.o 
     ld: open(): A file or directory in the path name does not exist. 
ld: 0706-006 Cannot find or open library file: -l sys 
     ld: open(): A file or directory in the path name does not exist. 
ld: 0706-006 Cannot find or open library file: -l csys 
     ld: open(): A file or directory in the path name does not exist. 
ld: 0706-003 Cannot find or read import file: /usr/lib/kernex.exp 
     ld: accessx(): A file or directory in the path name does not exist. 
make: 1254-004 The error code from the last command is 255. 

所以我想知道,有沒有 「LIBSYS」, 「libcs​​ys」 和「/ usr/lib中/ kernex。 exp「在我的aix 6.1中。

所以你們可以幫我嗎?

回答

1

您可能需要安裝bos.adt.all。 kernexp.exp是bos.adt.syscalls的一部分,但我會安裝整套以減少挫折感。

+0

是的,你是對的。我已經安裝並正確設置了它們。 – edsionte

相關問題