Я не могу найти файл /usr/lib/kernex.exp в AIX 6.1, когда пишу расширение ядра

Я написал расширение ядра "hello world" для aix, а потом "сделал" его. мой make-файл выглядит следующим образом:

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.

Поэтому мне интересно, что в моем aix 6.1 нет "libsys", "libcsys" и "/usr/lib/kernex.exp".

Так не могли бы вы, ребята, помочь мне?


person edsionte    schedule 11.12.2013    source источник


Ответы (1)


Вероятно, вам нужно установить bos.adt.all. kernexp.exp является частью bos.adt.syscalls, но я бы установил весь набор, чтобы уменьшить разочарование.

person pedz    schedule 31.12.2013
comment
Да, ты прав. Я установил их и сделал это правильно. - person edsionte; 02.01.2014