{"action":"created","issue":{"url":"https://api.github.com/repos/Kozea/Multicorn/issues/206","repository_url":"https://api.github.com/repos/Kozea/Multicorn","labels_url":"https://api.github.com/repos/Kozea/Multicorn/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/Multicorn/issues/206/comments","events_url":"https://api.github.com/repos/Kozea/Multicorn/issues/206/events","html_url":"https://github.com/Kozea/Multicorn/issues/206","id":327216283,"node_id":"MDU6SXNzdWUzMjcyMTYyODM=","number":206,"title":"Build failure with PG11: error: incompatible types when initializing type 'Form_pg_attribute {aka struct FormData_pg_attribute *}' using type 'FormData_pg_attribute {aka struct FormData_pg_attribute}'","user":{"login":"ChristophBerg","id":1021828,"node_id":"MDQ6VXNlcjEwMjE4Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/1021828?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristophBerg","html_url":"https://github.com/ChristophBerg","followers_url":"https://api.github.com/users/ChristophBerg/followers","following_url":"https://api.github.com/users/ChristophBerg/following{/other_user}","gists_url":"https://api.github.com/users/ChristophBerg/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristophBerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristophBerg/subscriptions","organizations_url":"https://api.github.com/users/ChristophBerg/orgs","repos_url":"https://api.github.com/users/ChristophBerg/repos","events_url":"https://api.github.com/users/ChristophBerg/events{/privacy}","received_events_url":"https://api.github.com/users/ChristophBerg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-29T08:23:47Z","updated_at":"2018-09-25T14:41:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Multicorn fails to build against PG 11beta1:\r\n```\r\n10:10:11 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fdebug-prefix-map=/build/postgresql-11-LcCi7f/postgresql-11-11~beta1=. -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7  -I. -I./ -I/usr/include/postgresql/11/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o src/python.o src/python.c\r\n10:10:12 src/python.c: In function 'getColumnsFromTable':\r\n10:10:12 src/python.c:462:28: error: incompatible types when initializing type 'Form_pg_attribute {aka struct FormData_pg_attribute *}' using type 'FormData_pg_attribute {aka struct FormData_pg_attribute}'\r\n10:10:12     Form_pg_attribute att = desc->attrs[i];\r\n10:10:12                             ^~~~\r\n10:10:12 src/python.c: In function 'getCacheEntry':\r\n10:10:12 src/python.c:569:38: error: macro \"AllocSetContextCreate\" passed 5 arguments, but takes just 3\r\n10:10:12                 ALLOCSET_SMALL_MAXSIZE),\r\n10:10:12                                       ^\r\n10:10:12 src/python.c:565:30: error: 'AllocSetContextCreate' undeclared (first use in this function); did you mean 'SlabContextCreate'?\r\n10:10:12   MemoryContext tempContext = AllocSetContextCreate(CurrentMemoryContext,\r\n10:10:12                               ^~~~~~~~~~~~~~~~~~~~~\r\n10:10:12                               SlabContextCreate\r\n10:10:12 src/python.c:565:30: note: each undeclared identifier is reported only once for each function it appears in\r\n10:10:12 src/python.c: In function 'pythonDictToTuple':\r\n10:10:12 src/python.c:1217:28: error: incompatible types when initializing type 'Form_pg_attribute {aka struct FormData_pg_attribute *}' using type 'FormData_pg_attribute {aka struct FormData_pg_attribute}'\r\n10:10:12    Form_pg_attribute attr = slot->tts_tupleDescriptor->attrs[i];\r\n10:10:12                             ^~~~\r\n10:10:12 src/python.c: In function 'pythonSequenceToTuple':\r\n10:10:12 src/python.c:1266:28: error: incompatible types when initializing type 'Form_pg_attribute {aka struct FormData_pg_attribute *}' using type 'FormData_pg_attribute {aka struct FormData_pg_attribute}'\r\n10:10:12    Form_pg_attribute attr = slot->tts_tupleDescriptor->attrs[i];\r\n10:10:12                             ^~~~\r\n10:10:12 src/python.c: In function 'tupleTableSlotToPyObject':\r\n10:10:12 src/python.c:1661:28: error: incompatible types when initializing type 'Form_pg_attribute {aka struct FormData_pg_attribute *}' using type 'FormData_pg_attribute {aka struct FormData_pg_attribute}'\r\n10:10:12    Form_pg_attribute attr = tupdesc->attrs[i];\r\n10:10:12                             ^~~~~~~\r\n10:10:12 make[2]: *** [<builtin>: src/python.o] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/Kozea/Multicorn/issues/comments/424371573","html_url":"https://github.com/Kozea/Multicorn/issues/206#issuecomment-424371573","issue_url":"https://api.github.com/repos/Kozea/Multicorn/issues/206","id":424371573,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDM3MTU3Mw==","user":{"login":"guncek","id":30113905,"node_id":"MDQ6VXNlcjMwMTEzOTA1","avatar_url":"https://avatars1.githubusercontent.com/u/30113905?v=4","gravatar_id":"","url":"https://api.github.com/users/guncek","html_url":"https://github.com/guncek","followers_url":"https://api.github.com/users/guncek/followers","following_url":"https://api.github.com/users/guncek/following{/other_user}","gists_url":"https://api.github.com/users/guncek/gists{/gist_id}","starred_url":"https://api.github.com/users/guncek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guncek/subscriptions","organizations_url":"https://api.github.com/users/guncek/orgs","repos_url":"https://api.github.com/users/guncek/repos","events_url":"https://api.github.com/users/guncek/events{/privacy}","received_events_url":"https://api.github.com/users/guncek/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T14:41:49Z","updated_at":"2018-09-25T14:41:49Z","author_association":"NONE","body":"Hello,\r\n\r\nI've got similar error when I try with PostgreSQL11 Beta 4. You can find more detail as bellow. \r\n\r\n[root@localhost Multicorn]# make\r\nPython version is 2.7\r\n[ -d sql ] || mkdir sql\r\n[ -d src ] || mkdir src\r\ntouch directories.stamp\r\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -I. -I./ -I/usr/include/python2.7 -I. -I./ -I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/errors.o src/errors.c\r\ngcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -I. -I./ -I/usr/include/python2.7 -I. -I./ -I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o src/python.o src/python.c\r\nsrc/python.c: In function ‘getColumnsFromTable’:\r\nsrc/python.c:462:28: error: incompatible types when initializing type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} using type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}\r\n    Form_pg_attribute att = desc->attrs[i];\r\n                            ^~~~\r\nsrc/python.c: In function ‘getCacheEntry’:\r\nsrc/python.c:569:38: error: macro \"AllocSetContextCreate\" passed 5 arguments, but takes just 3\r\n                ALLOCSET_SMALL_MAXSIZE),\r\n                                      ^\r\nsrc/python.c:565:30: error: ‘AllocSetContextCreate’ undeclared (first use in this function); did you mean ‘SlabContextCreate’?\r\n  MemoryContext tempContext = AllocSetContextCreate(CurrentMemoryContext,\r\n                              ^~~~~~~~~~~~~~~~~~~~~\r\n                              SlabContextCreate\r\nsrc/python.c:565:30: note: each undeclared identifier is reported only once for each function it appears in\r\nsrc/python.c: In function ‘pythonDictToTuple’:\r\nsrc/python.c:1217:28: error: incompatible types when initializing type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} using type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}\r\n   Form_pg_attribute attr = slot->tts_tupleDescriptor->attrs[i];\r\n                            ^~~~\r\nsrc/python.c: In function ‘pythonSequenceToTuple’:\r\nsrc/python.c:1266:28: error: incompatible types when initializing type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} using type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}\r\n   Form_pg_attribute attr = slot->tts_tupleDescriptor->attrs[i];\r\n                            ^~~~\r\nsrc/python.c: In function ‘tupleTableSlotToPyObject’:\r\nsrc/python.c:1661:28: error: incompatible types when initializing type ‘Form_pg_attribute’ {aka ‘struct FormData_pg_attribute *’} using type ‘FormData_pg_attribute’ {aka ‘struct FormData_pg_attribute’}\r\n   Form_pg_attribute attr = tupdesc->attrs[i];\r\n                            ^~~~~~~\r\nmake: *** [<builtin>: src/python.o] Error 1\r\n[root@localhost Multicorn]# \r\n"}}
{"actor":{"display_login":"guncek"}}