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

cmake can't find pam_appl.h #581

Open
bassicallychris opened this issue Dec 13, 2024 · 0 comments
Open

cmake can't find pam_appl.h #581

bassicallychris opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bassicallychris
Copy link

bassicallychris commented Dec 13, 2024

Regression?

No

Hyprlock Info and Version

N/A, hyprlock is failing to install from a recent git clone.

Compositor Info and Version

System/Version info
Hyprland 0.45.0 built from branch main at commit aefaeedf5e3f773c923373795267c1633141566c  (data-device: fixup wrong box expansion).
Date: Thu Dec 12 07:16:59 2024
Tag: v0.45.0-102-gaefaeedf, commits: 5535
built against:
 aquamarine 0.5.0
 hyprlang 0.5.3
 hyprutils 0.2.6
 hyprcursor 0.1.10
 hyprgraphics 0.1.1


flags set:
debug


System Information:
System name: Linux
Node name: linux-beast
Release: 6.11.10-amd64
Version: #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1 (2024-11-23)


GPU information: 
0b:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti] [10de:1e04] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  535.216.03  Fri Oct 25 22:43:06 UTC 2024


os-release: PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


plugins:

Description

Before I start, it's worth noting that it's very possible I've missed something as I'm not fluent in C at all and typically do well to simply make and install apps using this method. I'm happy to receive any direction here. I've downloaded the repository from github and pulled on main to make sure I'm up to date.

When running the cmake commands to build hyperlock they fail here is the output of running the commands in the README:

Not searching for unused variables given on the command line.
-- Configuring hyprlock in Release with CMake
-- Checking deps...
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/beast/Development/hyprland_wm/hyprlock/build
[  5%] Building CXX object CMakeFiles/hyprlock.dir/src/core/Fingerprint.cpp.o
[  5%] Building CXX object CMakeFiles/hyprlock.dir/src/core/Auth.cpp.o
[  8%] Building CXX object CMakeFiles/hyprlock.dir/src/core/LockSurface.cpp.o
[ 11%] Building CXX object CMakeFiles/hyprlock.dir/src/core/CursorShape.cpp.o
[ 14%] Building CXX object CMakeFiles/hyprlock.dir/src/main.cpp.o
[ 20%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/AsyncResourceGatherer.cpp.o
[ 20%] Building CXX object CMakeFiles/hyprlock.dir/src/core/hyprlock.cpp.o
[ 23%] Building CXX object CMakeFiles/hyprlock.dir/src/core/Output.cpp.o
[ 26%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/Renderer.cpp.o
[ 29%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/DMAFrame.cpp.o
[ 32%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/Background.cpp.o
[ 35%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/IWidget.cpp.o
[ 38%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/Label.cpp.o
[ 41%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/PasswordInputField.cpp.o
[ 44%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/Image.cpp.o
[ 50%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/Shadowable.cpp.o
[ 50%] Building CXX object CMakeFiles/hyprlock.dir/src/renderer/widgets/Shape.cpp.o
[ 52%] Building C object CMakeFiles/hyprlock.dir/protocols/cursor-shape-v1-protocol.c.o
[ 55%] Building C object CMakeFiles/hyprlock.dir/protocols/tablet-unstable-v2-protocol.c.o
[ 58%] Building C object CMakeFiles/hyprlock.dir/protocols/ext-session-lock-v1-protocol.c.o
[ 61%] Building C object CMakeFiles/hyprlock.dir/protocols/wlr-screencopy-unstable-v1-protocol.c.o
[ 64%] Building C object CMakeFiles/hyprlock.dir/protocols/viewporter-protocol.c.o
[ 67%] Building C object CMakeFiles/hyprlock.dir/protocols/linux-dmabuf-unstable-v1-protocol.c.o
[ 70%] Building C object CMakeFiles/hyprlock.dir/protocols/fractional-scale-v1-protocol.c.o
/home/beast/Development/hyprland_wm/hyprlock/src/core/Auth.cpp:9:10: fatal error: security/pam_appl.h: No such file or directory
    9 | #include <security/pam_appl.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[3]: *** [CMakeFiles/hyprlock.dir/build.make:90: CMakeFiles/hyprlock.dir/src/core/Auth.cpp.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hyprlock.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/hyprlock.dir/rule] Error 2
gmake: *** [Makefile:170: hyprlock] Error 2

How to reproduce

  • clone using git clone https://github.com/hyprwm/hyprlock.git
  • cd hyprlock
  • run cmake commands from README
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
cmake --build ./build --config Release --target hyprlock -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`

Crash reports, logs, images, videos

No response

@bassicallychris bassicallychris added the bug Something isn't working label Dec 13, 2024
@bassicallychris bassicallychris changed the title cmake can find pam_appl.h cmake can't find pam_appl.h Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant