[CONC-55] libmariadb/CMakeFiles.txt generates broken libmysqlclient.a symlink Created: 2013-10-04  Updated: 2013-10-04  Resolved: 2013-10-04

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ramesh Dharan (Inactive) Assignee: Georg Richter
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Linux



 Description   

When WITH_MYSQLCOMPAT is defined, libmariadb/CMakeLists.txt uses a custom command to generate symlinks with the standard MySQL client filenames to point at the MariaDB client library binaries.

The command to create the symlink libmysqlclient.a has a bug, however. The first argument to create_symlink should be libmariadbclient${CMAKE_STATIC_LIBRARY_SUFFIX} rather than libmariadb${CMAKE_STATIC_LIBRARY_SUFFIX} since the static archive is libmariadbclient.a.

As things stand we end up with libmysqlclient.a pointing to the non-existent libmariadb.a.



 Comments   
Comment by Ramesh Dharan (Inactive) [ 2013-10-04 ]

Actually it looks like this might already be fixed in the trunk (I was looking at the code from the 1.3 branch). If so I apologize for the stale bug report.

Comment by Georg Richter [ 2013-10-04 ]

Can't repeat:

georg@linux-eozo:~/work/mariadb/client/mariadb-native-client/libmariadb> ls -l libmaria*.so* libmaria*.a libmysql*; bzr log -l1 | grep revno
rw-rr- 1 georg users 1454020 4. Okt 18:49 libmariadbclient.a
lrwxrwxrwx 1 georg users 15 4. Okt 18:48 libmariadb.so -> libmariadb.so.1
-rwxr-xr-x 1 georg users 968810 4. Okt 18:48 libmariadb.so.1
lrwxrwxrwx 1 georg users 18 4. Okt 18:49 libmysqlclient.a -> libmariadbclient.a
lrwxrwxrwx 1 georg users 13 4. Okt 18:49 libmysqlclient_r.so -> libmariadb.so
lrwxrwxrwx 1 georg users 13 4. Okt 18:49 libmysqlclient.so -> libmariadb.so
lrwxrwxrwx 1 georg users 13 4. Okt 18:49 libmysql.so -> libmariadb.so
revno: 96

Generated at Thu Feb 08 03:02:33 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.