![autogen.sh의 CFLAGS를 변경하는 방법](https://linux55.com/image/36115/autogen.sh%EC%9D%98%20CFLAGS%EB%A5%BC%20%EB%B3%80%EA%B2%BD%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95.png)
저는 Linux를 처음 접했습니다.
URL에서 Linux mint용 MDM 디스플레이 관리자를 다시 빌드하려고 합니다. https://github.com/linuxmint/mdm.
문서에는 다음을 사용해야 한다고 나와 있습니다.
./autogen.sh --enable-ipv6=yes --with-prefetch
이렇게 하고 make를 하면 이 오류가 발생합니다.
mdm-daemon-config.c:1818:4: 오류: 형식이 문자열 리터럴이 아니고 형식 매개변수가 없습니다. [-Werror=format-security]
gchar *s = g_strdup_printf (C_(N_("MDM "
^
그런 다음 우분투가 이것을 버그로 간주한다는 어딘가를 읽었습니다. 나는 전에 시도했다
./autogen.sh --enable-ipv6=yes --with-prefetch CFLAGS="-Wno-format-security"
이 경고를 제거했지만 또 다른 오류가 발생했습니다.
mdm-daemon-config.c:2003:1: 오류: 'mdm_daemon_load_config_file'에는 이전 프로토타입이 없습니다. [-Werror=missing-prototypes] mdm_daemon_load_config_file (MdmConfig **load_config) ^
그런 다음 시도했습니다.
./autogen.sh --enable-ipv6=yes --with-prefetch CFLAGS="-Wno-format-security -Wno-missing-prototypes"
하지만 그것도 도움이 되지 않습니다. a를 실행하면 make
gcc가 사용 중임을 알 수 있습니다(무엇보다도 흥미로운 부분만 복사함).
-Wno-누락된 프로토타입 -Wall -Wstrict-prototypes -Wnested-externs -Werror=누락된 프로토타입
따라서 -Wno-missing-prototypes 및 -Werror=missing-prototypes를 모두 사용하므로 아마도 오작동이 발생할 수 있습니다.