Conspy: 최신 버전을 컴파일하려고 할 때 "정의되지 않은 참조" 오류가 발생함

Conspy: 최신 버전을 컴파일하려고 할 때 "정의되지 않은 참조" 오류가 발생함

코스비Linux에서 TTY 가상 콘솔을 위한 간단한 원격 제어 프로그램입니다.

노력하고있어최신 컴파일 v1.10-1버전이지만 소위 필수 패키지를 모두 설치한 후에도 여전히컴파일 오류프로세스를 중지합니다.

luis@utilite-desktop:~/Temporal/conspy/conspy-1.10$ make clean
test -z "conspy" || rm -f conspy
test -z "*~" || rm -f *~
rm -f *.o
luis@utilite-desktop:~/Temporal/conspy/conspy-1.10$ make
gcc -DPACKAGE_NAME=\"conspy.c\" -DPACKAGE_TARNAME=\"conspy-c\" -DPACKAGE_VERSION=\"1.10\" -DPACKAGE_STRING=\"conspy.c\ 1.10\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"conspy-c\" -DVERSION=\"1.10\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_GETOPT_H=1 -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_SELECT=1 -DHAVE_STRTOL=1 -I.     -g -O2 -MT conspy.o -MD -MP -MF .deps/conspy.Tpo -c -o conspy.o conspy.c
conspy.c: In function 'process_command_line':
conspy.c:352:11: warning: ignoring return value of 'strtol', declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/conspy.Tpo .deps/conspy.Po
gcc  -g -O2   -o conspy conspy.o
conspy.o: In function `cleanup':
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:542: undefined reference to `endwin'
conspy.o: In function `conspy':
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:624: undefined reference to `wmove'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:625: undefined reference to `wclrtoeol'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:658: undefined reference to `wmove'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:659: undefined reference to `waddchnstr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:660: undefined reference to `wchgat'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:680: undefined reference to `wmove'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:681: undefined reference to `waddchnstr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:682: undefined reference to `wchgat'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:685: undefined reference to `wmove'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:686: undefined reference to `wrefresh'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:615: undefined reference to `LINES'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:615: undefined reference to `LINES'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:699: undefined reference to `endwin'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:700: undefined reference to `wrefresh'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:552: undefined reference to `LINES'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:552: undefined reference to `stdscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:552: undefined reference to `COLS'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:552: undefined reference to `curscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:729: undefined reference to `wrefresh'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:617: undefined reference to `stdscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:617: undefined reference to `stdscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:618: undefined reference to `stdscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:618: undefined reference to `stdscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:617: undefined reference to `wmove'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:618: undefined reference to `wclrtobot'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:779: undefined reference to `stdscr'
conspy.o: In function `setup':
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:499: undefined reference to `initscr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:500: undefined reference to `nonl'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:515: undefined reference to `has_colors'
conspy.o: In function `main':
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:278: undefined reference to `tigetstr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:280: undefined reference to `tigetstr'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:280: undefined reference to `putp'
conspy.o: In function `setup':
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:517: undefined reference to `start_color'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:529: undefined reference to `init_pair'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:519: undefined reference to `acs_map'
/home/luis/Temporal/conspy/conspy-1.10/conspy.c:519: undefined reference to `COLOR_PAIRS'
collect2: ld returned 1 exit status
make: *** [conspy] Error 1

컴파일 및 생성유사한 오류존재하다:

  • PC(ASUS 노트북)의 Ubuntu 14.04 LTS.
  • Compulab Utilite(RaspBerry와 같은 내장 장치)의 Ubuntu 12.04 LTS.

이 오류로 인해 건물이 undefined reference제대로 작동 하지 않았나요? 어떻게이 일이 일어 났어요?해결됨?

답변1

여기 오시는 분들은 이렇습니다.필수 패키지ConSpy의 경우:

# apt-get install libtool libncurses5-dev fakeroot sudo automake devscripts

문제(또는 그렇게 생각합니다): @SteelDriver가 지적했듯이 make각 시도 사이에 필요한 작업을 수행하지 않습니다 ./configure.

2015년 10월 16일 업데이트됨:

  • /configurev1.13 이상부터는 이 작업을 수행할 필요가 없습니다. 실제로 소스에는 더 이상 그러한 스크립트가 없습니다. 컴파일 스크립트에 포함된 것 같습니다.

관련 정보