public inbox for [email protected]
help / color / mirror / Atom feedFrom: Sravan Kumar <[email protected]>
To: [email protected]
To: [email protected]
Subject: Compilation error after redesign of the archive modules
Date: Fri, 10 Mar 2023 13:41:07 +0530
Message-ID: <CA+=NbjguiQy-MbVqfQ-jQ=2Fcmx3Zs36OkKb-vjt28jMTG0OOg@mail.gmail.com> (raw)
Hi,
With the redesign of the archive modules:
35739b87dcfef9fc0186aca659f262746fecd778 - Redesign archive modules
if we were to compile basic_archive module with USE_PGXS=1, we get
compilation error:
[]$ make USE_PGXS=1
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -g -g -O0 -fPIC
-fvisibility=hidden -I. -I./
-I/home/sravanv/work/workspaces/PGdevel_test/include/postgresql/server
-I/home/sravanv/work/workspaces/PGdevel_test/include/postgresql/internal
-D_GNU_SOURCE -I/usr/include/libxml2 -c -o basic_archive.o
basic_archive.c -MMD -MP -MF .deps/basic_archive.Po
basic_archive.c:33:36: fatal error: archive/archive_module.h: No such
file or directory
#include "archive/archive_module.h"
^
compilation terminated.
make: *** [basic_archive.o] Error 1
I have attached a patch that fixes the problem. Can you please review
if it makes sense to push this patch?
--
Thanks & Regards,
Sravan Velagandula
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachments:
[application/octet-stream] v1-0001-fix-archive-module-compilation-error.patch (850B, ../CA+=NbjguiQy-MbVqfQ-jQ=2Fcmx3Zs36OkKb-vjt28jMTG0OOg@mail.gmail.com/2-v1-0001-fix-archive-module-compilation-error.patch)
download | inline diff:
From 49bfe6750d6b1709226708808830251dddf93414 Mon Sep 17 00:00:00 2001
From: Sravan Velagandula <[email protected]>
Date: Thu, 9 Mar 2023 08:18:43 -0500
Subject: [PATCH v1] fix archive module compilation error
---
src/include/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/Makefile b/src/include/Makefile
index 7472cd5e01..56576dcf5c 100644
--- a/src/include/Makefile
+++ b/src/include/Makefile
@@ -17,7 +17,7 @@ all: pg_config.h pg_config_ext.h pg_config_os.h
# Subdirectories containing installable headers
-SUBDIRS = access bootstrap catalog commands common datatype \
+SUBDIRS = access archive bootstrap catalog commands common datatype \
executor fe_utils foreign jit \
lib libpq mb nodes optimizer parser partitioning postmaster \
regex replication rewrite \
--
2.38.1
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Compilation error after redesign of the archive modules
In-Reply-To: <CA+=NbjguiQy-MbVqfQ-jQ=2Fcmx3Zs36OkKb-vjt28jMTG0OOg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox