Joined April 2018
·

dhananjaya

DBA at Personal
·
Mumbai
·
·
·

hi

I am trying to compile pg_rman on ubuntu. but i am facing some issue while compiling. please look at below error and help me.

root@dhanraj-Lenovo-V310-14ISK:/opt/pgrman-REL95STABLE# make USEPGXS=1 install
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -g -O2 -DMAPHUGETLB=0x40000 -I/opt/PostgreSQL/10/include -lm -I. -I./ -I/opt/PostgreSQL/10/include/postgresql/server -I/opt/PostgreSQL/10/include/postgresql/internal -I/opt/local/Current/include -DGNUSOURCE -I/opt/local/Current/include/libxml2 -I/opt/local/Current/include -c -o controlfile.o controlfile.c
controlfile.c: In function ‘read
controlfile’:
controlfile.c:44:30: error: ‘PG
CONTROLSIZE’ undeclared (first use in this function)
buffer = (char *) pg
malloc(PGCONTROLSIZE);
^
controlfile.c:44:30: note: each undeclared identifier is reported only once for each function it appears in
<builtin>: recipe for target 'controlfile.o' failed

Achievements
1 Karma
0 Followers
0 Total ProTip Views
Interests & Skills