[Postgres-xl-developers] [patch]pgxc_ctl compile failed

Jov amutu at amutu.com
Wed Dec 17 20:58:03 PST 2014


hi Pavan
   your clean pgxc_ctl commit make the pgxc_ctl broken:
$cd contrib/pgxc_ctl && gmake
./make_signature
未找到匹配
cc -DPGXC -DXCP -g3  -gdwarf-2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -g -DFRONTEND
-DDLSUFFIX=\".so\" -I. -I../../src/interfaces/libpq -I. -I.
-I../../src/include   -c -o pgxc_ctl_bash.o pgxc_ctl_bash.c
pgxc_ctl_bash.c:693:2: error: invalid preprocessing directive
#!/usr/bin/env bash
 ^
pgxc_ctl_bash.c:695:3: error: invalid preprocessing directive
# Postgres-XC Configuration file for pgxc_ctl utility.
  ^
pgxc_ctl_bash.c:697:3: error: invalid preprocessing directive
# Configuration file can be specified as -c option from pgxc_ctl command.
Default is
...

This patch fix it:

diff --git a/contrib/pgxc_ctl/make_signature
b/contrib/pgxc_ctl/make_signature
index f0ddce2..c143e6d 100755
--- a/contrib/pgxc_ctl/make_signature
+++ b/contrib/pgxc_ctl/make_signature
@@ -145,8 +145,6 @@ ex pgxc_ctl_conf_part.wk <<EOF
 %s/"/\\\"/g
 w
 %s/^\(.*\)$/"\1",/
-%s/^"#ifdef XCP",$/#ifdef XCP/
-%s/^"#endif",$/#endif/
 wq
 EOF

Jov
blog: http:amutu.com/blog <http://amutu.com/blog>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.postgres-xl.org/private.cgi/postgres-xl-developers-postgres-xl.org/attachments/20141218/d829910d/attachment.htm>


More information about the Postgres-xl-developers mailing list