Skip to content

depends loss for PKGBUILD ,ncrack can't build in x86_64

Description:

There is a problem with the test code of the ncrack-0.7-3 package. The package build failed under x86-64 architectures. the main reason is the ./configure script failed to generate all Makefiles correctly

checking for seccomp architecture... "AUDIT_ARCH_X86_64"
checking compiler and flags for sanity... no
configure: error: *** compiler cannot create working executables, check config.log ***
configure: error: ./configure failed for opensshlib
make: *** No rule to make target 'opensshlib/Makefile', needed by 'opensshlib_build'.  Stop.
  • package version(s):ncrack-0.7-3
  • config and/or log files:

ncrack-0.7-3-x86_64-build.log config.log opensshlib/config.log My operating environment is an x86-64 environment virtual machine of the arch architecture of Windows WSL. Linux 5.15.167.4-microsoft-standard-WSL2

The process is as follows:

  1. I cloned your project
  2. run extra-x86_64-build

patch

1.I went into the chroot container to check if it was the compiler that was not configured correctly or was missing a required tool. Try compiling a simple C program to check that the compiler is working.

[root@archriscv ~]# gcc 1.c -o 1
[root@archriscv ~]# ./1
Hello, World!

This means there is no problem with the compiler

2.I think it's package loss.Then I tried to find errors in config.log and opensshlib/config.log I find many depends loss ,that some of them may affect the subsequent compilation and configuration process. as well as some code error in main like

conftest.c: In function 'main':
conftest.c:26:18: error: unknown type name 'not'; did you mean 'ino_t'?
   26 |                  not big endian
      |                  ^~~
      |                  ino_t
conftest.c:26:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'endian'
   26 |                  not big endian
      |                          ^~~~~~

I have tried to add some package but turned out to be useless.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information