bugpdrx - Bugs: bug #58058, Fail to build without mysql enabled

 
 

bug #58058: Fail to build without mysql enabled

Submitter:  Petter Reinholdtsen <pere>
Submitted:  Sat 28 Mar 2020 09:37:16 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  muellerto Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Sat 28 Mar 2020 09:37:16 AM UTC, original submission:  

The source fail to build without the --enable-mysql configure flag, because the needed library is not listed on the linker command line.  The following patch solve the problem:

```
Index: src/libpdrx/poco_db.cc
===================================================================
--- src/libpdrx/poco_db.cc      (revision 475)
+++ src/libpdrx/poco_db.cc      (working copy)
@@ -191,7 +191,9 @@
 void PocoDatabase::Initialize ()
 {
        Poco::Data::SQLite::Connector::registerConnector();
+#ifdef MYSQL
        Poco::Data::MySQL::Connector::registerConnector();
+#endif // MYSQL
 }
 
 //=== DBTransactor =========================================================
```

Petter Reinholdtsen <pere>

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 16MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by muellerto (Updated the item)
  • -email is unavailable- added by pere (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-28 muellerto StatusNone Fixed
        Assigned toNone muellerto

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code