microo8 / plgo

easily create postgresql extensions in golang; moved to gitlab.com/microo8/plgo
292 stars 23 forks source link

pgsql-11: error: conflicting types for 'varsize_any' #22

Closed kockockockoc closed 5 years ago

kockockockoc commented 5 years ago
# command-line-arguments
/tmp/plgo748230890/pl.go:35:5: error: conflicting types for 'varsize_any'
 int varsize_any(void *var) {
     ^
In file included from /tmp/plgo748230890/pl.go:13:0:
/usr/pgsql-11/include/server/access/htup_details.h:835:15: note: previous declaration of 'varsize_any' was here
 extern size_t varsize_any(void *p);
               ^
Cannot build package: exit status 2
AoAnima commented 5 years ago

Как же исправить эту ошибку?

microo8 commented 5 years ago

varsize_any used in pl.go was renamed. try it out now, with the new plgo (go get -u github.com/microo8/plgo/...)

it it is OK please close the issue