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

Compilation problems on ubuntu 20.04 #139

Open
Agvantibo opened this issue Dec 31, 2020 · 2 comments
Open

Compilation problems on ubuntu 20.04 #139

Agvantibo opened this issue Dec 31, 2020 · 2 comments

Comments

@Agvantibo
Copy link

Make outputs following:

agvantibo@ThinkPad-X230 ~/C/kmscon (master)> make -j4
make --no-print-directory all-recursive
Making all in .
CC src/libshl_la-shl_githead.lo
CC external/libshl_la-htable.lo
CC src/libshl_la-shl_gl_shader.lo
CC src/libshl_la-shl_log.lo
CC src/libshl_la-shl_gl_math.lo
CC src/genunifont.o
CC src/font_unifont.lo
CC src/kmscon_mod_unifont.lo
CCLD genunifont
CC src/mod_bbulk_la-text_bbulk.lo
CC src/mod_bbulk_la-kmscon_mod_bbulk.lo
CC src/mod_gltex_la-text_gltex.lo
CC src/mod_gltex_la-kmscon_mod_gltex.lo
CC src/libeloop_la-eloop.lo
CC src/libuterm_la-uterm_video.lo
CC src/libuterm_la-uterm_monitor.lo
CC src/libuterm_la-uterm_vt.lo
CC src/libuterm_la-uterm_input.lo
CC src/libuterm_la-uterm_input_uxkb.lo
src/uterm_vt.c: In function ‘open_tty’:
src/uterm_vt.c:298:7: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration]
298 | id = minor(st.st_rdev);
| ^~~~~
src/uterm_vt.c: In function ‘seat_find_vt’:
src/uterm_vt.c:768:15: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration]
768 | if (!ret && major(st.st_rdev) == TTY_MAJOR &&
| ^~~~~
CC src/libuterm_la-uterm_fbdev_video.lo
CC src/libuterm_la-uterm_fbdev_render.lo
CC src/libuterm_la-uterm_drm2d_video.lo
CC src/libuterm_la-uterm_drm2d_render.lo
CC src/libuterm_la-uterm_drm3d_video.lo
CC src/libuterm_la-uterm_drm3d_render.lo
CC src/libuterm_la-uterm_drm_shared.lo
CCLD libshl.la
GEN src/uterm_input_fallback.xkb.bin.lo
GEN src/uterm_drm3d_blend.vert.bin.lo
GEN src/uterm_drm3d_blend.frag.bin.lo
GEN src/uterm_drm3d_blit.vert.bin.lo
GEN src/uterm_drm3d_blit.frag.bin.lo
GEN src/uterm_drm3d_fill.vert.bin.lo
GEN src/uterm_drm3d_fill.frag.bin.lo
CC src/kmscon-conf.o
CC src/kmscon-pty.o
src/pty.c: In function ‘setup_child’:
src/pty.c:302:18: error: ‘SIGUNUSED’ undeclared (first use in this function)
302 | for (i = 1; i < SIGUNUSED; ++i)
| ^~~~~~~~~
src/pty.c:302:18: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Makefile:1794: src/kmscon-pty.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2162: all-recursive] Error 1
make: *** [Makefile:1132: all] Error 2

That's a compilation error? please fix

@dcdyouget
Copy link

same question , anyone help?

@dcdyouget
Copy link

dcdyouget commented Jan 26, 2024

解决了,修改 src 目录下 pty.c 文件,302 行处 将 SIGUNUSED 替换为 SIGSYS
SIGUNUSED已经被删除,可以查看 #141

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