You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below are the commands
sudo yum install gcc postgresql-devel openssl-devel postgresql-static.x86_64 readline-devel lz4-devel -y
sudo wget https://api.pgxn.org/dist/pg_repack/1.4.7/pg_repack-1.4.7.zip
sudo unzip pg_repack-1.4.7.zip
cd pg_repack-1.4.7
sudo make install
cd bin
./pg_repack —version
which pg_repack
Error
pgut/pgut-fe.c: In function ‘get_username’:
pgut/pgut-fe.c:652:14: warning: implicit declaration of function ‘getpwuid’; did you mean ‘geteuid’? [-Wimplicit-function-declaration]
652 | pw = getpwuid(geteuid());
| ^~~~~~~~
| geteuid
pgut/pgut-fe.c:652:12: warning: assignment to ‘struct passwd *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
652 | pw = getpwuid(geteuid());
| ^
pgut/pgut-fe.c:653:23: error: invalid use of undefined type ‘struct passwd’
653 | ret = (pw ? pw->pw_name : NULL);
| ^~
The text was updated successfully, but these errors were encountered:
Below are the commands
sudo yum install gcc postgresql-devel openssl-devel postgresql-static.x86_64 readline-devel lz4-devel -y
sudo wget https://api.pgxn.org/dist/pg_repack/1.4.7/pg_repack-1.4.7.zip
sudo unzip pg_repack-1.4.7.zip
cd pg_repack-1.4.7
sudo make install
cd bin
./pg_repack —version
which pg_repack
Error
pgut/pgut-fe.c: In function ‘get_username’:
pgut/pgut-fe.c:652:14: warning: implicit declaration of function ‘getpwuid’; did you mean ‘geteuid’? [-Wimplicit-function-declaration]
652 | pw = getpwuid(geteuid());
| ^~~~~~~~
| geteuid
pgut/pgut-fe.c:652:12: warning: assignment to ‘struct passwd *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
652 | pw = getpwuid(geteuid());
| ^
pgut/pgut-fe.c:653:23: error: invalid use of undefined type ‘struct passwd’
653 | ret = (pw ? pw->pw_name : NULL);
| ^~
The text was updated successfully, but these errors were encountered: