programing

amazon Linux 2의 Mariadb 빌드 오류 - auth_gssapi 오류

firstcheck 2022. 10. 2. 22:56
반응형

amazon Linux 2의 Mariadb 빌드 오류 - auth_gssapi 오류

코드 repo(mariadb 외부 소스로부터의 sudo yum 설치가 아님)에서 Amazon Linux 2에 mariadb를 빌드할 때 다음과 같은 오류가 발생합니다.인증 셋업/파라미터/코드 문제인 것 같습니다.누가 좀 도와줄래?

다음 링크를 찾았습니다.https://fossies.org/linux/mariadb/plugin/auth_gssapi/README.md 하지만 저는 Linux에 익숙하지 않기 때문에 이 모든 것을 해야 할지 말아야 할지 잘 모르겠습니다.또한 오류가 참조하는 파일(gssapi_server.cc)은 https://fossies.org/linux/mariadb/plugin/auth_gssapi/gssapi_server.cc 입니다.

또, 빌드에 실패해도 Mariadb가 동작하고 있는 것을 확인하는 방법, 데이터베이스가 인스톨 되어 있는지 어떤지를 확인하는 방법.

src/plugin/auth_gssapi/gssapi_server.cc:34:38: error: ‘krb5_xfree’ was not declared in this scope
 #define krb5_free_unparsed_name(a,b) krb5_xfree(b)
                                      ^
src/plugin/auth_gssapi/gssapi_server.cc:79:5: note: in expansion of macro ‘krb5_free_unparsed_name’
     krb5_free_unparsed_name(context, unparsed_name);
     ^~~~~~~~~~~~~~~~~~~~~~~
src/plugin/auth_gssapi/gssapi_server.cc:34:38: note: suggested alternative: ‘krb5_cred’
 #define krb5_free_unparsed_name(a,b) krb5_xfree(b)
                                      ^
src/plugin/auth_gssapi/gssapi_server.cc:79:5: note: in expansion of macro ‘krb5_free_unparsed_name’
     krb5_free_unparsed_name(context, unparsed_name);
     ^~~~~~~~~~~~~~~~~~~~~~~

또, 빌드 로그에 다음과 같은 에러가 몇번이나 표시됩니다.

    [42/1134] /usr/bin/g++  -DFORCE_INIT_OF_VARS -DGZ_SUPPORT -DHAVE_CONFIG_H -DHUGE_SUPPORT -DLIBXML2_SUPPORT -DLINUX -DMARIADB -DMYSQL_DYNAMIC_PLUGIN -DNOCRYPT -DUBUNTU -DUNIX -DVCT_SUPPORT -DXMAP -DZIP_SUPPORT -D_FILE_OFFSET_BITS=64 -Dconnect_EXPORTS -Isrc/wsrep-lib/include -Isrc/wsrep-lib/wsrep-API/v26 -Iinclude -Isrc/include -Isrc/sql -Ipcre -Isrc/pcre -Iextra/wolfssl -Isrc/extra/wolfssl/wolfssl -Isrc/extra/wolfssl/wolfssl/wolfssl -I/local/home/-pkg-cache/packages/Libxml2/Libxml2-2.9.x.312246.0/AL2_x86_64/DEV.STD.PTHREAD/build/include/libxml2 -I/local/home/-pkg-cache/packages/Zlib/Zlib-1.289527.0/AL2_x86_64/DEV.STD.PTHREAD/build/include -I/home/workplace/MariaDB/build/MariaDB/MariaDB-10.4.x/AL2_x86_64/DEV.STD.PTHREAD/build/private/tmp/-path/build.libfarm/include -L/home/workplace/MariaDB/build/MariaDB/MariaDB-10.4.x/AL2_x86_64/DEV.STD.PTHREAD/build/private/tmp/-path/build.libfarm/lib -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -Wall -Wmissing-declarations -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-value -Wno-error=parentheses -Wno-error=strict-aliasing -Wno-error=misleading-indentation -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=type-limits -fpermissive -fexceptions -fPIC  -O3 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -fPIC   -std=gnu++11 -MD -MT storage/connect/CMakeFiles/connect.dir/maputil.cpp.o -MF storage/connect/CMakeFiles/connect.dir/maputil.cpp.o.d -o storage/connect/CMakeFiles/connect.dir/maputil.cpp.o -c src/storage/connect/maputil.cpp
src/storage/connect/maputil.cpp: In function ‘bool CloseMemMap(void*, size_t)’:
src/storage/connect/maputil.cpp:193:9: warning: unused variable ‘rc’ [-Wunused-variable]
     int rc = msync((char*)memory, dwSize, MS_SYNC);
         ^~
         
[44/1134] /usr/bin/g++  -DFORCE_INIT_OF_VARS -DGZ_SUPPORT -DHAVE_CONFIG_H -DHUGE_SUPPORT -DLIBXML2_SUPPORT -DLINUX -DMARIADB -DMYSQL_DYNAMIC_PLUGIN -DNOCRYPT -DUBUNTU -DUNIX -DVCT_SUPPORT -DXMAP -DZIP_SUPPORT -D_FILE_OFFSET_BITS=64 -Dconnect_EXPORTS -Isrc/wsrep-lib/include -Isrc/wsrep-lib/wsrep-API/v26 -Iinclude -Isrc/include -Isrc/sql -Ipcre -Isrc/pcre -Iextra/wolfssl -Isrc/extra/wolfssl/wolfssl -Isrc/extra/wolfssl/wolfssl/wolfssl -I/local/home/-pkg-cache/packages/Libxml2/Libxml2-2.9.x.312246.0/AL2_x86_64/DEV.STD.PTHREAD/build/include/libxml2 -I/local/home/-pkg-cache/packages/Zlib/Zlib-1.289527.0/AL2_x86_64/DEV.STD.PTHREAD/build/include -I/home/workplace/MariaDB/build/MariaDB/MariaDB-10.4.x/AL2_x86_64/DEV.STD.PTHREAD/build/private/tmp/-path/build.libfarm/include -L/home/workplace/MariaDB/build/MariaDB/MariaDB-10.4.x/AL2_x86_64/DEV.STD.PTHREAD/build/private/tmp/-path/build.libfarm/lib -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -Wall -Wmissing-declarations -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-value -Wno-error=parentheses -Wno-error=strict-aliasing -Wno-error=misleading-indentation -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=type-limits -fpermissive -fexceptions -fPIC  -O3 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -fPIC   -std=gnu++11 -MD -MT storage/connect/CMakeFiles/connect.dir/myutil.cpp.o -MF storage/connect/CMakeFiles/connect.dir/myutil.cpp.o.d -o storage/connect/CMakeFiles/connect.dir/myutil.cpp.o -c src/storage/connect/myutil.cpp        


     

데이터베이스를 컴파일하지 못하여 사용할 수 없습니다.

mariadb 소스가 다음을 확인합니다.krb5_xfree머리글에krb5.h설정 시(plugin/auth_gssapi/CMakeLists.txt)이므로 컴파일 시 존재하지 않는 것이 이상합니다.

아마 gssapi는 필요 없을 거예요.인증확장(옵션)입니다.cmake configure 옵션을 사용합니다.-DPLUGIN_AUTH_GSSAPI=NO이 플러그인의 빌드를 비활성화하려면

예, 스토리지 엔진 연결에는 정리해야 하는 경고가 몇 가지 있습니다.

언급URL : https://stackoverflow.com/questions/63094100/mariadb-build-error-on-amazon-linux-2-auth-gssapi-error

반응형