fix build

This commit is contained in:
Xiaotian Wu 2025-01-14 09:04:06 +08:00
parent 7088f83a35
commit ef90c92c10
3 changed files with 8 additions and 6 deletions

View File

@ -367,8 +367,8 @@ if( ${ARCHITECTURE} STREQUAL "x86_64" )
set(ARCH_LDFLAGS "")
set(OCI_DEVEL_INC "${DEP_3RD_DIR}/usr/include/oracle/12.2/client64")
elseif( ${ARCHITECTURE} STREQUAL "loongarch64" )
set(MARCHE_CFLAGS "-march=lp464")
set(MTUNE_CFLAGS "-mabi=lp64")
set(MARCHE_CFLAGS "-march=loongarch64")
set(MTUNE_CFLAGS "-mabi=lp64d")
set(ARCH_LDFLAGS "-latomic")
else()
if (${OB_DISABLE_LSE})

View File

@ -451,7 +451,6 @@ static int easy_ssl_handshake(easy_connection_t *c)
return EASY_OK;
}
#endif
sslerr = SSL_get_error(c->sc->connection, n);
easy_debug_log("SSL_get_error: %d %s errno=%d", sslerr, easy_connection_str(c), errno);

View File

@ -888,7 +888,9 @@
#define ER_AES_INVALID_IV 1882
#define ER_PLUGIN_CANNOT_BE_UNINSTALLED 1883
#define ER_GTID_UNSAFE_BINLOG_SPLITTABLE_STATEMENT_AND_GTID_GROUP 1884
#if !defined(ER_ERROR_LAST)
#define ER_ERROR_LAST 1884
#endif
#define ER_TOO_SMALL_SCALE 1885
#define ER_TOO_SMALL_PRECISION 1886
#define ER_OVERSIZE_NEED_RETRY 1887
@ -925,9 +927,6 @@
#define ER_INCORRECT_TYPE 3064
#define ER_BOOST_GEOMETRY_INCONSISTENT_TURNS_EXCEPTION 3122
#define ER_GIS_MAX_POINTS_IN_GEOMETRY_OVERFLOWED 3134
#if !defined(ER_ACCOUNT_HAS_BEEN_LOCKED)
# define ER_ACCOUNT_HAS_BEEN_LOCKED 3118
#endif
#define ER_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN 3105
#define ER_DEPENDENT_BY_GENERATED_COLUMN 3108
@ -956,9 +955,13 @@
#define ER_UNSUPPORTED_FK_SET_NULL_ON_GENERATED_COLUMN 3104
#define ER_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN 3105
#if !defined(ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN)
#define ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN 3106
#endif
#define ER_DEPENDENT_BY_GENERATED_COLUMN 3108
#if !defined(ER_ACCOUNT_HAS_BEEN_LOCKED)
#define ER_ACCOUNT_HAS_BEEN_LOCKED 3118
#endif
#define ER_USER_ALREADY_EXISTS 3163
#define ER_TOO_BIG_ENUM 3504
#define ER_TOO_LONG_SET_ENUM_VALUE 3505