[CONCPP-31] DriverManager.h not present in binary tarball packages Created: 2020-08-17  Updated: 2020-09-25  Resolved: 2020-09-25

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: 0.9.3
Fix Version/s: 0.9.4

Type: Bug Priority: Critical
Reporter: Geoff Montee (Inactive) Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

PM Planning: DOCS_BUG

 Description   

The file DriverManager.h is not present in the binary tarball packages:

$ ls -l mariadb-connector-cpp-0.9.3-beta-ubuntu-bionic-amd64/include/mariadbcpp/
total 116
-rw-r--r-- 1 geoff geoff  5913 Aug 11 08:10 CallableStatement.h
drwxr-xr-x 2 geoff geoff  4096 Aug 11 08:13 compat
-rw-r--r-- 1 geoff geoff  1465 Aug 11 08:10 ConnCpp.h
-rw-r--r-- 1 geoff geoff  5119 Aug 11 08:10 Connection.h
-rw-r--r-- 1 geoff geoff 14295 Aug 11 08:10 DatabaseMetaData.h
-rw-r--r-- 1 geoff geoff  1928 Aug 11 08:10 Driver.h
-rw-r--r-- 1 geoff geoff  8358 Aug 11 08:10 Exception.h
-rw-r--r-- 1 geoff geoff  3969 Aug 11 08:10 jdbccompat.h
-rw-r--r-- 1 geoff geoff  1949 Aug 11 08:10 ParameterMetaData.h
-rw-r--r-- 1 geoff geoff  7173 Aug 11 08:10 PreparedStatement.h
-rw-r--r-- 1 geoff geoff 14011 Aug 11 08:10 ResultSet.h
-rw-r--r-- 1 geoff geoff  2549 Aug 11 08:10 ResultSetMetaData.h
-rw-r--r-- 1 geoff geoff  1362 Aug 11 08:10 Savepoint.h
-rw-r--r-- 1 geoff geoff  4914 Aug 11 08:10 SQLString.h
-rw-r--r-- 1 geoff geoff  4067 Aug 11 08:10 Statement.h
-rw-r--r-- 1 geoff geoff  1704 Aug 11 08:10 Types.h
-rw-r--r-- 1 geoff geoff  1504 Aug 11 08:10 Warning.h

This leads to the following compilation error:

$ g++ -o Conn.o Conn.cpp -std=c++11 -lmariadbcpp
In file included from Conn.cpp:3:0:
/usr/include/mariadbcpp/ConnCpp.h:25:10: fatal error: DriverManager.h: No such file or directory
 #include "DriverManager.h"
          ^~~~~~~~~~~~~~~~~
compilation terminated.

The workaround is:

$ wget https://raw.githubusercontent.com/mariadb-corporation/mariadb-connector-cpp/master/include/DriverManager.h
$ sudo install DriverManager.h /usr/include/mariadbcpp/



 Comments   
Comment by Lawrin Novitsky [ 2020-09-25 ]

Commit 0837eeb

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