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

make error #15

Open
manjaroblack opened this issue Jun 23, 2019 · 3 comments
Open

make error #15

manjaroblack opened this issue Jun 23, 2019 · 3 comments

Comments

@manjaroblack
Copy link

gllock build options:
CFLAGS   = -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="0.1-alpha" -DHAVE_SHADOW_H -DSHADER_LOCATION="/root/.gllock" -DFRGMNT_SHADER="circle.fragment.glsl"
LDFLAGS  = -s -L/usr/lib -lc -lcrypt -L/usr/X11R6/lib -lX11 -lGL -lGLEW -lpthread
CC       = cc
CC gllock.c
gllock.c: In function ‘readpw’:
gllock.c:172:26: warning: implicit declaration of function ‘crypt’ [-Wimplicit-function-declaration]
  172 |         running = strcmp(crypt(passwd, pws), pws);
      |                          ^~~~~
gllock.c:172:26: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
  172 |         running = strcmp(crypt(passwd, pws), pws);
      |                          ^~~~~~~~~~~~~~~~~~
      |                          |
      |                          int
In file included from gllock.c:15:
/usr/include/string.h:136:32: note: expected ‘const char *’ but argument is of type ‘int’
  136 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
CC common.c
CC -o gllock
installing executable file to /usr/local/bin
ln: failed to create symbolic link '/root/.gllock': File exists
make: *** [Makefile:45: install] Error 1

@mytalala
Copy link

symlink already exist
ln: failed to create symbolic link '/root/.gllock': File exists
run
sudo rm /root/.gllock

@manjaroblack
Copy link
Author

After removing the file:

╰─>$ sudo make clean install
cleaning
gllock build options:
CFLAGS   = -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="0.1-alpha" -DHAVE_SHADOW_H -DSHADER_LOCATION="/root/.gllock" -DFRGMNT_SHADER="circle.fragment.glsl"
LDFLAGS  = -s -L/usr/lib -lc -lcrypt -L/usr/X11R6/lib -lX11 -lGL -lGLEW -lpthread
CC       = cc
CC gllock.c
gllock.c: In function ‘readpw’:
gllock.c:172:26: warning: implicit declaration of function ‘crypt’ [-Wimplicit-function-declaration]
  172 |         running = strcmp(crypt(passwd, pws), pws);
      |                          ^~~~~
gllock.c:172:26: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
  172 |         running = strcmp(crypt(passwd, pws), pws);
      |                          ^~~~~~~~~~~~~~~~~~
      |                          |
      |                          int
In file included from gllock.c:15:
/usr/include/string.h:136:32: note: expected ‘const char *’ but argument is of type ‘int’
  136 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
CC common.c
CC -o gllock
installing executable file to /usr/local/bin

@manjaroblack
Copy link
Author

It was working without issue before I updated my libraries and systemd and some other things. After that, it didn't work at all. I am not sure exactly what broke gllock. I rebuilt gllock and it works again minus the crypt function. Pressing enter unlocks my computer with or without any additional characters.

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

No branches or pull requests

2 participants