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

 
 

bug #58058: Fail to build without mysql enabled

Submitted by:  Petter Reinholdtsen <pere>
Submitted on:  Sat 28 Mar 2020 09:37:16 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Torsten Mueller <muellerto>
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.6