Skip to content

Error during make on 9.5.5 #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thamerlan opened this issue Jan 30, 2018 · 3 comments
Closed

Error during make on 9.5.5 #142

thamerlan opened this issue Jan 30, 2018 · 3 comments

Comments

@thamerlan
Copy link

Добрый день.

Problem description

Не могу собрать pg_pathman-1.4.9 под postgresql-9.5.5.
Во время "make install USE_PGXS=1" получую ошибку:

pathman-1.4.9/src/include -I. -I./ -I/opt/postgres/binaries/pgsql-9.5.5/include/server -I/opt/postgres/binaries/pgsql-9.5.5/include/internal -D_GNU_SOURCE   -c -o src/utility_stmt_hooking.o src/utility_stmt_hooking.c
src/utility_stmt_hooking.c: In function ‘is_pathman_related_copy’:
src/utility_stmt_hooking.c:114:4: warning: implicit declaration of function ‘lfirst_node’ [-Wimplicit-function-declaration]
    DefElem *defel = lfirst_node(DefElem, lc);
    ^
src/utility_stmt_hooking.c:114:33: error: expected expression before ‘DefElem’
    DefElem *defel = lfirst_node(DefElem, lc);
                                 ^
make: *** [src/utility_stmt_hooking.o] Error 1

Environment

      extname       | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition 
--------------------+----------+--------------+----------------+------------+-----------+--------------
 plpgsql            |       10 |           11 | f              | 1.0        |           | 
 pg_stat_statements |       10 |         2200 | t              | 1.3        |           | 
 pgcrypto           |       10 |         2200 | t              | 1.2        |           | 
 pg_cron            |       10 |         2200 | f              | 1.0        | {38228}   | {""}
(4 rows)

                                                version                                                 
--------------------------------------------------------------------------------------------------------
 PostgreSQL 9.5.5 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bit

@funbringer funbringer changed the title Error during make Error during make on 9.5.5 Jan 30, 2018
@funbringer
Copy link
Collaborator

funbringer commented Jan 30, 2018

Видимо, в одном из минорных релизов 9.5 добавили этот макрос. Попробуйте собрать master, я уже внес изменения.

@thamerlan
Copy link
Author

да, master собрался. Спасибо.
Стоит ли мне обновить pg 9.5 до последней минорной и вернуться на pg_pathman-1.4.9 или же могу смело пользовать master?

@funbringer
Copy link
Collaborator

Я бы советовал обновить pg, потому что master мы обычно меняем без оглядки на совместимость, и только при фиксации нового релиза пишем скрипты для обновлений.

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

No branches or pull requests

2 participants