Skip to content

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

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
gzliudan opened this issue Oct 15, 2017 · 3 comments
Closed

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

gzliudan opened this issue Oct 15, 2017 · 3 comments
Labels

Comments

@gzliudan
Copy link

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 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

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

@lain0
Copy link

lain0 commented Jul 7, 2022

For ubuntu this missing packet is systemtap-sdt-dev

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

No branches or pull requests

3 participants