[GH-ISSUE #104] build error: output.c:91:40: error: ‘LIBDIR’ undeclared (first use in this function) #61

Closed
opened 2026-05-05 04:55:51 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @blueyed on GitHub (Oct 28, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/104

I've just tried to update/build firejail, but it failed:

cc -ggdb -W -Wall -Werror -O2 -DVERSION='"0.9.29-github"' -DPREFIX='"/usr/local"' -DHAVE_SECCOMP -DHAVE_SECCOMP_H -DHAVE_CHROOT -DHAVE_BIND -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security  -c output.c -o output.o
output.c: In function ‘check_output’:
output.c:91:40: error: ‘LIBDIR’ undeclared (first use in this function)
  sprintf(ptr, "| %s/firejail/ftee %s", LIBDIR, outfile);
                    ^
output.c:91:40: note: each undeclared identifier is reported only once for each function it appears in
Makefile:19: recipe for target 'output.o' failed
make[1]: *** [output.o] Error 1
make[1]: Leaving directory '/home/daniel/Vcs/firejail/src/firejail'
Makefile:22: recipe for target 'src/firejail' failed
make: *** [src/firejail] Error 2
Originally created by @blueyed on GitHub (Oct 28, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/104 I've just tried to update/build firejail, but it failed: ``` cc -ggdb -W -Wall -Werror -O2 -DVERSION='"0.9.29-github"' -DPREFIX='"/usr/local"' -DHAVE_SECCOMP -DHAVE_SECCOMP_H -DHAVE_CHROOT -DHAVE_BIND -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security -c output.c -o output.o output.c: In function ‘check_output’: output.c:91:40: error: ‘LIBDIR’ undeclared (first use in this function) sprintf(ptr, "| %s/firejail/ftee %s", LIBDIR, outfile); ^ output.c:91:40: note: each undeclared identifier is reported only once for each function it appears in Makefile:19: recipe for target 'output.o' failed make[1]: *** [output.o] Error 1 make[1]: Leaving directory '/home/daniel/Vcs/firejail/src/firejail' Makefile:22: recipe for target 'src/firejail' failed make: *** [src/firejail] Error 2 ```
Author
Owner

@blueyed commented on GitHub (Oct 28, 2015):

Sorry for the noise, needed to run ./configure again.

<!-- gh-comment-id:151686491 --> @blueyed commented on GitHub (Oct 28, 2015): Sorry for the noise, needed to run `./configure` again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#61
No description provided.