Я нахожусь на машине x86_64. Я пытаюсь построить fortune
используя свой Makefile, но я получаю ошибку об отсутствующих символах:Ошибка компиляции «состояния» на x86_64
cd fortune && make CC='gcc' \
CFLAGS='-O2 -DFORTDIR="\"/usr/local/share/games/fortunes\"" -DOFFDIR="\"/usr/local/share/games/fortunes/off\"" -Wall -fomit-frame-pointer -pipe -DHAVE_REGEX_H -DBSD_REGEX -I../util' \
LDFLAGS='-s' LIBS=''
gcc -s -o fortune fortune.o
ld: warning: option -s is obsolete and being ignored
Undefined symbols for architecture x86_64:
"_re_comp", referenced from:
_getargs in fortune.o
"_re_exec", referenced from:
_matches_in_list in fortune.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [fortune] Error 1
make: *** [fortune-bin] Error 2
я получаю ту же ошибку, если я пытаюсь построить для x86 хоста:
terences-imac:fortune-mod-9708 MAU$ make host=x86
cd fortune && make CC='gcc' \
CFLAGS='-O2 -DFORTDIR="\"/usr/local/share/games/fortunes\"" -DOFFDIR="\"/usr/local/share/games/fortunes/off\"" -Wall -fomit-frame-pointer -pipe -DHAVE_REGEX_H -DBSD_REGEX -I../util' \
LDFLAGS='-s' LIBS=''
gcc -s -o fortune fortune.o
ld: warning: option -s is obsolete and being ignored
Undefined symbols for architecture x86_64:
"_re_comp", referenced from:
_getargs in fortune.o
"_re_exec", referenced from:
_matches_in_list in fortune.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [fortune] Error 1
make: *** [fortune-bin] Error 2`
Compile что? Что это"? Операционная система? Приложение? На каком устройстве вы компилируете? Ваш вопрос очень расплывчатый. – Coder404
Что вы пытаетесь скомпилировать? – Renan
Я понимаю, что это был не самый большой вопрос, но он говорит «удача» практически по каждой строке. –