Skip to content

Patch - can`t create language #3

@Ligverd

Description

@Ligverd

create language plphp;
ERROR: could not load library "/usr/lib/postgresql/plphp.so": /usr/lib/postgresql/plphp.so: undefined symbol: HeapTupleHeaderGetTypeId

and

create language plphp;
ERROR: could not load library "/usr/lib/postgresql/plphp.so": /usr/lib/postgresql/plphp.so: undefined symbol: GETSTRUCT

=== patch ===
diff --git a/plphp.c b/plphp.c
index 72d5dbd..a9514b7 100644
--- a/plphp.c
+++ b/plphp.c
@@ -49,6 +49,7 @@
#include "postgres.h"
#include "access/heapam.h"
#include "access/transam.h"
+#include "access/htup_details.h"

#include "catalog/catversion.h"
#include "catalog/pg_language.h"
diff --git a/plphp_io.h b/plphp_io.h
index 8292797..ebda6ab 100644
--- a/plphp_io.h
+++ b/plphp_io.h
@@ -8,6 +8,7 @@
/* PostgreSQL stuff */
#include "postgres.h"
#include "access/heapam.h"
+#include "access/htup_details.h"
#include "commands/trigger.h"
#include "funcapi.h"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions