I've made quick hack to avoid this problem, file with patch attached.

On Saturday 10 February 2007 07:46, Michael Nottebrock wrote:
> On Saturday, 10. February 2007 04:03, Steven James Samuel Stapleton wrote:
> > Hello, I was wondering if you had any suggestions on how to fix this
> > particular build error, I've become somewhat of a build-error sleuth, but
> > this just completely stumps me.
>
> Downgrade postgresql-libpqxx to version 2.6.7 (you can use
> sysutils/portdowngrade to do this rather quickly) or deinstall
> postgresql-libpqxx completely and manually hack the koffice port Makefile
> to not depend on it. The last update to postgresql-libpqxx broke API
> compatibility and thus kexi/koffice. I've already contacted the kexi
> developers and I'm waiting for fixes.
>
> Cheers,
diff -ubdBrN koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection.cpp koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection.cpp
--- koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection.cpp	Thu Jan  1 03:00:00 1970
+++ koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection.cpp	Sun Feb 11 17:33:56 2007
@@ -0,0 +1,11 @@
+--- kexi/kexidb/drivers/pqxx/pqxxconnection.cpp.orig	Sun Feb 11 16:58:22 2007
++++ kexi/kexidb/drivers/pqxx/pqxxconnection.cpp	Sun Feb 11 16:58:53 2007
+@@ -277,7 +277,7 @@
+ 		//		m_trans = new pqxx::nontransaction(*m_pqxxsql);
+ //		KexiDBDrvDbg << "About to execute" << endl;
+ 		//Create a result object through the transaction
+-		d->res = new pqxx::result(m_trans->data->exec(statement.utf8()));
++		d->res = new pqxx::result(m_trans->data->exec(statement.utf8().data()));
+ //		KexiDBDrvDbg << "Executed" << endl;
+ 		//Commit the transaction
+ 		if (implicityStarted) {
diff -ubdBrN koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection_p.h koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection_p.h
--- koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection_p.h	Thu Jan  1 03:00:00 1970
+++ koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxconnection_p.h	Sun Feb 11 17:33:56 2007
@@ -0,0 +1,11 @@
+--- kexi/kexidb/drivers/pqxx/pqxxconnection_p.h.orig	Sun Feb 11 16:52:10 2007
++++ kexi/kexidb/drivers/pqxx/pqxxconnection_p.h	Sun Feb 11 16:54:21 2007
+@@ -31,7 +31,7 @@
+ #define PQXXSQLCONNECTIONINTERNAL_H
+ 
+ #include <kexidb/connection_p.h>
+-#include <pqxx/all.h>
++#include <pqxx/pqxx>
+ 
+ namespace KexiDB
+ {
diff -ubdBrN koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxcursor.cpp koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxcursor.cpp
--- koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxcursor.cpp	Thu Jan  1 03:00:00 1970
+++ koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxcursor.cpp	Sun Feb 11 17:33:56 2007
@@ -0,0 +1,11 @@
+--- kexi/kexidb/drivers/pqxx/pqxxcursor.cpp.orig	Sun Feb 11 16:45:47 2007
++++ kexi/kexidb/drivers/pqxx/pqxxcursor.cpp	Sun Feb 11 16:50:26 2007
+@@ -155,7 +155,7 @@
+ 			m_implicityStarted = true;
+ 		}
+ 
+-		m_res = new pqxx::result(((pqxxSqlConnection*)connection())->m_trans->data->exec(m_sql.utf8()));
++		m_res = new pqxx::result(((pqxxSqlConnection*)connection())->m_trans->data->exec(m_sql.utf8().data()));
+ 		((pqxxSqlConnection*)connection())
+ 			->drv_commitTransaction(((pqxxSqlConnection*)connection())->m_trans);
+ //		my_conn->m_trans->commit();
diff -ubdBrN koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxdriver.cpp koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxdriver.cpp
--- koffice-kde3.orig/files/patch-kexi_kexidb_drivers_pqxx-pqxxdriver.cpp	Thu Jan  1 03:00:00 1970
+++ koffice-kde3/files/patch-kexi_kexidb_drivers_pqxx-pqxxdriver.cpp	Sun Feb 11 17:33:56 2007
@@ -0,0 +1,19 @@
+--- kexi/kexidb/drivers/pqxx/pqxxdriver.cpp.orig	Sun Feb 11 16:38:08 2007
++++ kexi/kexidb/drivers/pqxx/pqxxdriver.cpp	Sun Feb 11 17:29:18 2007
+@@ -133,14 +133,14 @@
+ //
+ QString pqxxSqlDriver::escapeString( const QString& str) const
+ {
+-    return QString(pqxx::Quote(str.ascii()).c_str());
++    return "'"+QString(pqxx::sqlesc(str.ascii()).c_str())+"'";
+ }
+ 
+ //==================================================================================
+ //
+ QCString pqxxSqlDriver::escapeString( const QCString& str) const
+ {
+-    return QCString(pqxx::Quote(QString(str).ascii()).c_str());
++    return "'"+QCString(pqxx::sqlesc(QString(str).ascii()).c_str())+"'";
+ }
+ 
+ //==================================================================================
diff -ubdBrN koffice-kde3.orig/files/patch-kexi_migration_pqxx-pqxxmigrate.h koffice-kde3/files/patch-kexi_migration_pqxx-pqxxmigrate.h
--- koffice-kde3.orig/files/patch-kexi_migration_pqxx-pqxxmigrate.h	Thu Jan  1 03:00:00 1970
+++ koffice-kde3/files/patch-kexi_migration_pqxx-pqxxmigrate.h	Sun Feb 11 17:33:56 2007
@@ -0,0 +1,11 @@
+--- kexi/migration/pqxx/pqxxmigrate.h.orig	Sun Feb 11 17:15:12 2007
++++ kexi/migration/pqxx/pqxxmigrate.h	Sun Feb 11 17:15:38 2007
+@@ -26,7 +26,7 @@
+ #include <kexidb/field.h>
+ #include <kexidb/connection.h>
+ 
+-#include <pqxx/all.h>
++#include <pqxx/pqxx>
+ 
+ namespace KexiMigration
+ {
_______________________________________________
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd

Reply via email to