[MDEV-7313] http_monitor compile in static failed Created: 2014-12-13  Updated: 2022-11-09  Resolved: 2022-11-09

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.0.15
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: VAROQUI Stephane Assignee: Sergei Golubchik
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

Hi ,

When changing :

LINK_LIBRARIES ${SSL_LIBRARIES} ${CURL_LIBRARIES} mysqlclient vmime  )

to

LINK_LIBRARIES ${SSL_LIBRARIES} ${CURL_LIBRARIES} mysqlclient vmime STATIC_ONLY )

Im' getting following error message

Can you help me identify what i'm doing wrong with CMakeList.txt

Linking CXX static library libsql.a
[ 61%] Built target sql
Scanning dependencies of target explain_filename-t
 
Linking CXX executable explain_filename-t
../../libmysql/libmysqlclient.a(libmysql.c.o): dans la fonction « my_net_local_init »:
/home/svar/src/mariadb-10.0.15/libmysql/libmysql.c:1137: définitions multiples de « my_net_local_init »
../../sql/libsql.a(sql_client.cc.o):/home/svar/src/mariadb-10.0.15/sql/sql_client.cc:31: défini pour la première fois ici



 Comments   
Comment by VAROQUI Stephane [ 2014-12-24 ]

Fixed by linking without mysqlclient and change mysql_query by mysql_real_query

Generated at Thu Feb 08 07:18:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.