autogen.sh에 대한 CFLAGS를 변경하는 방법

autogen.sh에 대한 CFLAGS를 변경하는 방법

저는 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"

하지만 그것도 도움이 되지 않았습니다. 내가 할 때 makegcc가 사용하고 있는 것을 봅니다(무엇보다도 흥미로운 부분을 복사했습니다).

-Wno-누락된 프로토타입 -Wall -Wstrict-prototypes -Wnested-externs -Werror=누락된 프로토타입

그래서 -Wno-missing-prototypes와 -Werror=missing-prototypes를 모두 사용하고 있는데, 이는 아마도 오작동의 원인일 것입니다.

관련 정보