CAPEv2 icon indicating copy to clipboard operation
CAPEv2 copied to clipboard

ERROR: No subproject or keycodemapdb

Open zer0daysec opened this issue 7 months ago • 3 comments

I get error When I execute kvm-qemu.sh script

sudo ./kvm-qemu.sh all | tee kvm-qemu.log

.....
Program vgscan found: YES (/sbin/vgscan)
Program pvs found: YES (/sbin/pvs)
Program vgs found: YES (/sbin/vgs)
Program lvs found: YES (/sbin/lvs)
Program dtrace found: YES (/usr/bin/dtrace)
Program systemctl found: YES (/usr/bin/systemctl)
Check usable header "nss.h" : YES 
Checking for type "struct gaih_addrtuple" : YES 
Checking for type "ns_mtab" : NO 
Program numad found: YES (/usr/bin/numad)
ERROR: Subproject keycodemapdb is buildable: NO

meson.build:2139:15: ERROR: Neither a subproject directory nor a keycodemapdb.wrap file was found.

A full log can be found at /tmp/libvirt-11.1.0/build/meson-logs/meson-log.txt
ninja: Entering directory `build'
ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory `build'
ninja: error: loading 'build.ninja': No such file or directory
\033[0;31mFailed. Read the instalation log for details\033[0m

https://github.com/libvirt/libvirt/blob/master/subprojects/keycodemapdb not found

log cat /tmp/libvirt-11.1.0/build/meson-logs/meson-log.txt

......
Working directory:  /tmp/libvirt-11.1.0/build/meson-private/tmpppuwlk9o
Code:
#include <nsswitch.h>
        void bar(void) {
            (void) sizeof(ns_mtab);
        }
-----------
Command line: `cc /tmp/libvirt-11.1.0/build/meson-private/tmpppuwlk9o/testfile.c -o /tmp/libvirt-11.1.0/build/meson-private/tmpppuwlk9o/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -std=gnu99` -> 1
stderr:
/tmp/libvirt-11.1.0/build/meson-private/tmpppuwlk9o/testfile.c:1:10: fatal error: nsswitch.h: No such file or directory
    1 | #include <nsswitch.h>
      |          ^~~~~~~~~~~~
compilation terminated.
-----------
Checking for type "ns_mtab" : NO 
Program numad found: YES (/usr/bin/numad)
ERROR: Subproject keycodemapdb is buildable: NO

meson.build:2139:15: ERROR: Neither a subproject directory nor a keycodemapdb.wrap file was found.

I don't know how to solve this problem.

zer0daysec avatar May 07 '25 09:05 zer0daysec

os: ubuntu 24.04

zer0daysec avatar May 07 '25 09:05 zer0daysec

Hi, i cant reproduce that. Just tested the installer on fresh ubuntu 24.04 desktop machine.

  1. wget https://raw.githubusercontent.com/kevoreilly/CAPEv2/refs/heads/master/installer/kvm-qemu.sh
  2. chmod +x kvm-qemu.sh
  3. Replace <WOOT> in kvm-qemu.sh
  4. as cape-user: sudo ./kvm-qemu.sh all | tee kvm-qemu.log

kvm-qemu.sh log:

...
Program vgscan found: YES (/sbin/vgscan)
Program pvs found: YES (/sbin/pvs)
Program vgs found: YES (/sbin/vgs)
Program lvs found: YES (/sbin/lvs)
Program dtrace found: YES (/usr/bin/dtrace)
Program systemctl found: YES (/usr/bin/systemctl)
Check usable header "nss.h" : YES 
Checking for type "struct gaih_addrtuple" : YES 
Checking for type "ns_mtab" : NO 
Program numad found: YES (/usr/bin/numad)

Executing subproject keycodemapdb 

keycodemapdb| Project name: keycodemapdb
keycodemapdb| Project version: undefined
keycodemapdb| Program tools/keymap-gen found: YES (/tmp/libvirt-11.1.0/subprojects/keycodemapdb/tools/keymap-gen)
keycodemapdb| Build targets in project: 0
keycodemapdb| Subproject keycodemapdb finished.

Program apibuild.py found: YES (/tmp/libvirt-11.1.0/scripts/apibuild.py)
...

meson-log.txt:

...
Checking for type "ns_mtab" : NO 
Program numad found: YES (/usr/bin/numad)

Executing subproject keycodemapdb 

Project name: keycodemapdb
Project version: undefined
Program tools/keymap-gen found: YES (/tmp/libvirt-11.1.0/subprojects/keycodemapdb/tools/keymap-gen)
Build targets in project: 0
Subproject keycodemapdb finished.

Program apibuild.py found: YES (/tmp/libvirt-11.1.0/scripts/apibuild.py)
...

Maybe u can check if /tmp/libvirt-11.1.0/subprojects/keycodemapdb/tools/keymap-gen is missing somhow

ClaudioWayne avatar May 07 '25 14:05 ClaudioWayne

i neither can reproduce it

doomedraven avatar May 25 '25 02:05 doomedraven