[Bug 1955804] Re: make and make test fail

Dorian Rosse 1955804 at bugs.launchpad.net
Tue Oct 4 11:39:51 UTC 2022


Hello,


You have the truth this is typed in the shell what it is needed to do unfornately i am on a new install of the setup where i gotten some news errors,

i keep up this page web :

https://www.linuxfromscratch.org/blfs/view/7.5/postlfs/libcap.html
libcap-2.24 - Linux From Scratch<https://www.linuxfromscratch.org/blfs/view/7.5/postlfs/libcap.html>
Introduction to libcap The libcap package implements the user-space interfaces to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities are a partitioning of the all powerful root privilege into a set of distinct privileges.
www.linuxfromscratch.org
the erros i gotten :

''':~/programs/libcap-2.24$ sudo sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile && sudo make -j 4
make -C libcap all
make[1] : on entre dans le répertoire « /home/dorianrosse/programs/libcap-2.24/libcap »
gcc -Wl,-x -shared -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -L/home/dorianrosse/programs/libcap-2.24/libcap/../libcap -lattr -Wl,-soname,libcap.so.2 -o libcap.so.2.24 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
ar rcs libcap.a cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
/usr/bin/ld : ne peut pas trouver -lattr : Aucun fichier ou dossier de ce type
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:63 : libcap.so.2.24] Erreur 1
make[1]: *** Attente des tâches non terminées....
ranlib libcap.a
make[1] : on quitte le répertoire « /home/dorianrosse/programs/libcap-2.24/libcap »
make: *** [Makefile:12 : all] Erreur 2
:~/programs/libcap-2.24$ sudo -i
:~# cd /home/dorianrosse/programs/libcap-2.24/
:/home/dorianrosse/programs/libcap-2.24# make prefix=/usr \
     SBINDIR=/sbin \
     PAM_LIBDIR=/lib \
     RAISE_SETFCAP=no install

make -C libcap install
make[1] : on entre dans le répertoire « /home/dorianrosse/programs/libcap-2.24/libcap »
gcc -Wl,-x -shared -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g  -L/home/dorianrosse/programs/libcap-2.24/libcap/../libcap -lattr -Wl,-soname,libcap.so.2 -o libcap.so.2.24 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_file.o
/usr/bin/ld : ne peut pas trouver -lattr : Aucun fichier ou dossier de ce type
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:63 : libcap.so.2.24] Erreur 1
make[1] : on quitte le répertoire « /home/dorianrosse/programs/libcap-2.24/libcap »
make: *** [Makefile:12 : install] Erreur 2
'''

thanks you in advance to help myself repair libcap,

regards.


Dorian ROSSE.


Dorian Rosse.
________________________________
From: noreply at launchpad.net <noreply at launchpad.net> on behalf of Andrew G. Morgan <1955804 at bugs.launchpad.net>
Sent: Monday, October 3, 2022 9:23:30 PM
To: dorianbrice at hotmail.fr <dorianbrice at hotmail.fr>
Subject: [Bug 1955804] Re: make and make test fail

Is this still a problem with libcap-2.66 ?

https://git.kernel.org/pub/scm/libs/libcap/libcap.git/

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1955804

Title:
  make and make test fail

Status in libcap2 package in Ubuntu:
  New

Bug description:
  Hello,


  make and make test fail like the printscreen following :

  CGO_LDFLAGS_ALLOW="-Wl,-wrap,.+" CGO_CFLAGS="-I/home/ubuntu/programs/libcap-2.32/libcap/include" CGO_LDFLAGS="-L/home/ubuntu/programs/libcap-2.32/libcap" GOPATH="/home/ubuntu/programs/libcap-2.32/go" go install libcap/psx
  go install: version is required when current directory is not in a module
         Try 'go install libcap/psx at latest' to install the latest version
  make[1]: *** [Makefile:37 : pkg/linux_amd64/libcap/psx.a] Erreur 1
  make[1] : on quitte le répertoire « /home/ubuntu/programs/libcap-2.32/go »
  make: *** [Makefile:13 : all] Erreur 2
  root at ubuntu-ThinkPad-X250:/home/ubuntu/programs/libcap-2.32# go install libcap/psx at latest
  go install: libcap/psx at latest: malformed module path "libcap/psx": missing dot in first path element
  root at ubuntu-ThinkPad-X250:/home/ubuntu/programs/libcap-2.32#

  thank you in advance to help myself fully install your program,

  Regards.


  Dorian ROSSE.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/1955804/+subscriptions

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libcap2 in Ubuntu.
https://bugs.launchpad.net/bugs/1955804

Title:
  make and make test fail

Status in libcap2 package in Ubuntu:
  New

Bug description:
  Hello,

  
  make and make test fail like the printscreen following : 

  CGO_LDFLAGS_ALLOW="-Wl,-wrap,.+" CGO_CFLAGS="-I/home/ubuntu/programs/libcap-2.32/libcap/include" CGO_LDFLAGS="-L/home/ubuntu/programs/libcap-2.32/libcap" GOPATH="/home/ubuntu/programs/libcap-2.32/go" go install libcap/psx
  go install: version is required when current directory is not in a module
  	Try 'go install libcap/psx at latest' to install the latest version
  make[1]: *** [Makefile:37 : pkg/linux_amd64/libcap/psx.a] Erreur 1
  make[1] : on quitte le répertoire « /home/ubuntu/programs/libcap-2.32/go »
  make: *** [Makefile:13 : all] Erreur 2
  root at ubuntu-ThinkPad-X250:/home/ubuntu/programs/libcap-2.32# go install libcap/psx at latest
  go install: libcap/psx at latest: malformed module path "libcap/psx": missing dot in first path element
  root at ubuntu-ThinkPad-X250:/home/ubuntu/programs/libcap-2.32# 

  thank you in advance to help myself fully install your program,

  Regards.

  
  Dorian ROSSE.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/1955804/+subscriptions




More information about the foundations-bugs mailing list