You are not logged in.

#1 2022-10-15 06:20:14

perosoft
Member
Registered: 2022-10-15
Posts: 2

libmysqlclient57 32bit

Hello,

Installed mysql57

pamac build mysql-clients57
pamac build mysql57
pamac build libmysqlclient57

sample c source test.cpp:

#include <stdio.h>
#include <mysql.h>


int main( int argc, char *argv[] ) {
   MYSQL mySQL;

   mysql_init( &mySQL );
   printf( "hello !\n");
}

using gcc command line:

gcc -m64 `mysql_config --cflags --libs` test.cpp -o test

all ok.

using gcc command line:

gcc -m32 `mysql_config --cflags --libs` test.cpp -o test

result:
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libatomic.so when searching for -latomic
/usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
/usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: skipping incompatible /usr/lib/libgcc_s.so.1 when searching for libgcc_s.so.1
collect2: error: ld returned 1 exit status

how can i get libmysqlclient57 32 bits?

Offline

#2 2022-10-15 13:11:52

Muflone
Package Maintainer (PM)
From: Italy
Registered: 2013-10-08
Posts: 102
Website

Re: libmysqlclient57 32bit

You have to create your own mysql57 package for 32 bits. No 32 bits libraries are included in MySQL, this is a general rule, only the lib32- packages have 32 bits libraries

I'm not even sure the mysql57 package builds fine in 32 bits systems, it wasn't tested for that

Offline

#3 2022-10-15 13:19:13

perosoft
Member
Registered: 2022-10-15
Posts: 2

Re: libmysqlclient57 32bit

Thanks !

You have right, no 32 bits for libmysqlclient57, and can not be build under 64 bits.

Offline

Board footer

Powered by FluxBB