Skip to content
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

fatal error: sys/sdt.h: No such file or directory #27

Closed
gzliudan opened this issue Oct 15, 2017 · 2 comments
Closed

fatal error: sys/sdt.h: No such file or directory #27

gzliudan opened this issue Oct 15, 2017 · 2 comments
Labels
bug

Comments

@gzliudan
Copy link

@gzliudan gzliudan commented Oct 15, 2017

Enviroment: CentOS 7.4, Postgres 10.0

export PATH=/usr/pgsql-10/bin:$PATH
git clone https://github.com/postgrespro/rum
cd rum
make USE_PGXS=1

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX_OOM_SCORE_ADJ=0 -fPIC -I. -I./ -I/usr/pgsql-10/include/server -I/usr/pgsql-10/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o src/rumsort.o src/rumsort.c
In file included from src/rumsort.c:138:0:
/usr/pgsql-10/include/server/utils/probes.h:10:21: fatal error: sys/sdt.h: No such file or directory
#include <sys/sdt.h>
^
compilation terminated.

@za-arthur za-arthur added the bug label Oct 15, 2017
@za-arthur
Copy link
Contributor

@za-arthur za-arthur commented Oct 15, 2017

Hello,
Thank you for the issue!

I can't reproduce it on same CentOS 7.4 and PostgreSQL 10.0. It seems you need the systemtap-sdt-devel package to install. Try to install it.

@gzliudan
Copy link
Author

@gzliudan gzliudan commented Oct 15, 2017

After install systemtap-sdt-devel, the problem is gone! Thank you very much.

@gzliudan gzliudan closed this Oct 15, 2017
@za-arthur za-arthur mentioned this issue Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants