Skip to content

In Greenplum, compiling the AGE plugin fails with the error: 'void value not ignored as it ought to be #1975

Description

@legendzyb

Describe the bug
Hi! I am trying to integrate the AGE plugin into Greenplum. Since Greenplum 7 is based on PostgreSQL 12, I think it should be compilable and usable. I used the version package of age-PG12-v1.5.0-rc0, but I encountered an error when compiling AGE separately. What is the problem? Or does AGE not support the Greenplum 7 database?

How are you accessing AGE (Command line, driver, etc.)?
none

What data setup do we need to do?
compile

What is the necessary configuration info needed?
pg_config
make install

What is the command that caused the error?

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 -Wno-format-truncation -Wno-stringop-truncation -O3 -std=gnu99   -Werror=uninitialized -Werror=implicit-function-declaration -fPIC -I.//src/include -I.//src/include/parser -I. -I./ -I/root/greenplum-db-7.0.0/include/postgresql/server -I/root/greenplum-db-7.0.0/include/postgresql/internal  -D_GNU_SOURCE -I/usr/include/libxml2   -c -o src/backend/parser/ag_scanner.o src/backend/parser/ag_scanner.c
src/backend/parser/ag_scanner.l: In function ‘_scan_errmsg’:
src/backend/parser/ag_scanner.l:1171:16: error: void value not ignored as it ought to be
     else
                ^                                
src/backend/parser/ag_scanner.l:1173:16: error: void value not ignored as it ought to be
 }
                ^                                     
src/backend/parser/ag_scanner.l: In function ‘_scan_errposition’:
src/backend/parser/ag_scanner.l:1187:12: error: void value not ignored as it ought to be
 }
            ^               
src/backend/parser/ag_scanner.l: In function ‘_scan_errmsg’:
src/backend/parser/ag_scanner.l:1174:1: warning: control reaches end of non-void function [-Wreturn-type]
 
 ^
src/backend/parser/ag_scanner.l: In function ‘_scan_errposition’:
src/backend/parser/ag_scanner.l:1188:1: warning: control reaches end of non-void function [-Wreturn-type]
 
 ^
make: *** [src/backend/parser/ag_scanner.o] Error 1

Expected behavior
Compilation successful

Environment (please complete the following information):
Linux version 3.10.0-1160.119.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Jun 4 14:43:51 UTC 2024
gcc version 8.5.0 (GCC)
flex 2.6.1
bison (GNU Bison) 3.0.4

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions