You are not logged in.

#1 2023-01-31 15:54:15

wiggige489
Member
Registered: 2023-01-12
Posts: 5

[Newbie] Mcrypt installation Error

Hello Archers.

I'm fairly new to Arch, installed it couple of weeks ago (after passing my LPI).
I'm trying to install mcrypt and getting the following error messages:


$ make install
Making install in doc
make[1]: Entering directory '/home/USER/mcrypt-2.6.8/doc'
make[2]: Entering directory '/home/USER/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 './mcrypt.1' '/usr/local/share/man/man1/mcrypt.1'
/usr/bin/install: cannot remove '/usr/local/share/man/man1/mcrypt.1': Permission denied
make[2]: *** [Makefile:234: install-man1] Error 1
make[2]: Leaving directory '/home/USER/mcrypt-2.6.8/doc'
make[1]: *** [Makefile:322: install-am] Error 2
make[1]: Leaving directory '/home/USER/mcrypt-2.6.8/doc'
make: *** [Makefile:289: install-recursive] Error 1

I've installed the libmcrypt, mhash and zlib dependencies and I'm trying to understand what I'm missing here.
Thanks for any help.

Offline

#2 2023-01-31 16:02:37

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Newbie] Mcrypt installation Error

Welcome to the forums smile

When using Arch you shouldn't install packages manually.

Use either the package in the official repos or if it doesn't exist (as in this case) then install the AUR package instead...

https://wiki.archlinux.org/title/Arch_User_Repository
https://aur.archlinux.org/packages/mcrypt

Why do you think you need the mcrypt package in the first place?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2023-01-31 16:13:51

wiggige489
Member
Registered: 2023-01-12
Posts: 5

Re: [Newbie] Mcrypt installation Error

Slithery wrote:

Welcome to the forums smile

When using Arch you shouldn't install packages manually.

Use either the package in the official repos or if it doesn't exist (as in this case) then install the AUR package instead...


I did try to install the AUR package (from the GUI) and still encountered the same errors

Slithery wrote:

Why do you think you need the mcrypt package in the first place?

We were taught the basic usage of this specific program when studying for LPI so I tried installing that program as I'm familiar with it's usage.

Offline

#4 2023-01-31 16:16:24

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Newbie] Mcrypt installation Error

wiggige489 wrote:

I did try to install the AUR package (from the GUI) and still encountered the same errors

What does that mean? Arch doesn't have a GUI for installing AUR packages.

Is this actually Arch or is it one of the derivative distros?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2023-01-31 16:24:11

wiggige489
Member
Registered: 2023-01-12
Posts: 5

Re: [Newbie] Mcrypt installation Error

Slithery wrote:

What does that mean? Arch doesn't have a GUI for installing AUR packages.

I used Pamac GUI, I was introduced to it as well when studying for LPI by our instructor.

Slithery wrote:

Is this actually Arch or is it one of the derivative distros?

Yes, It's Arch, Installed with the archistall script, other programs that I used on xubuntu I did manage to install with pacman and pamac, this is the only one that I have problems with.

Offline

#6 2023-01-31 16:27:35

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Newbie] Mcrypt installation Error

Don't use pamac for troubleshooting. Follow the instructions in the AUR wiki page I linked earlier for the only supported method for installing AUR packages and post the full output in [⁣code] [⁣/code] tags.
https://bbs.archlinux.org/help.php#bbcode


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2023-01-31 16:29:09

wiggige489
Member
Registered: 2023-01-12
Posts: 5

Re: [Newbie] Mcrypt installation Error

Slithery wrote:

Don't use pamac for troubleshooting. Follow the instructions in the AUR wiki page I linked earlier for the only supported method for installing AUR packages and post the full output in [⁣code] [⁣/code] tags.
https://bbs.archlinux.org/help.php#bbcode

Ok, will give it a try, Thanks for helping, really appreciatted!

Offline

#8 2023-01-31 16:31:46

loqs
Member
Registered: 2014-03-06
Posts: 18,963

Re: [Newbie] Mcrypt installation Error

mcrypt-2.6.8-1-x86_64-build.log

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for libmcrypt-config... /usr/bin/libmcrypt-config
checking for libmcrypt - version >= 2.5.0... yes
checking for mhash_keygen in -lmhash... yes
checking whether mhash >= 0.8.15... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for compress in -lz... yes
checking for an ANSI C-conforming const... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for rm... /usr/bin/rm
checking for gzip... /usr/bin/gzip
checking for bzip2... /usr/bin/bzip2
checking whether use of /dev/random is requested... yes
checking whether static link is requested... no
checking whether in maintanance mode... no
checking whether included getpass is requested... yes
checking for random device... yes
checking whether byte ordering is bigendian... no
checking return type of signal handlers... void
checking for unsigned long int... yes
checking size of unsigned long int... 8
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned short int... yes
checking size of unsigned short int... 2
checking for unsigned char... yes
checking size of unsigned char... 1
checking for off_t... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for strings.h... (cached) yes
checking mcrypt.h usability... yes
checking mcrypt.h presence... yes
checking for mcrypt.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking for bzero... yes
checking for signal... yes
checking for sigaction... yes
checking for memset... yes
checking for fsync... yes
checking for siglongjmp... yes
checking for strlcpy... no
checking for umask... yes
checking for utime... yes
checking for memmove... yes
checking for bcopy... yes
checking for getpwuid... yes
checking for waitpid... yes
checking for kill... yes
checking for ftime... yes
checking for lstat... yes
checking for stat... yes
checking for fseeko... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/usr/bin/rm: cannot remove 'libtoolT': No such file or directory
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing default commands
make  all-recursive
make[1]: Entering directory '/build/mcrypt/src/mcrypt-2.6.8'
Making all in doc
make[2]: Entering directory '/build/mcrypt/src/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/build/mcrypt/src/mcrypt-2.6.8/doc'
Making all in src
make[2]: Entering directory '/build/mcrypt/src/mcrypt-2.6.8/src'
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT extra.o -MD -MP -MF .deps/extra.Tpo -c -o extra.o extra.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT mcrypt.o -MD -MP -MF .deps/mcrypt.Tpo -c -o mcrypt.o mcrypt.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT keys.o -MD -MP -MF .deps/keys.Tpo -c -o keys.o keys.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT random.o -MD -MP -MF .deps/random.Tpo -c -o random.o random.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT rndunix.o -MD -MP -MF .deps/rndunix.Tpo -c -o rndunix.o rndunix.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT xmalloc.o -MD -MP -MF .deps/xmalloc.Tpo -c -o xmalloc.o xmalloc.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT functions.o -MD -MP -MF .deps/functions.Tpo -c -o functions.o functions.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT errors.o -MD -MP -MF .deps/errors.Tpo -c -o errors.o errors.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT bits.o -MD -MP -MF .deps/bits.Tpo -c -o bits.o bits.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT openpgp.o -MD -MP -MF .deps/openpgp.Tpo -c -o openpgp.o openpgp.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT rndwin32.o -MD -MP -MF .deps/rndwin32.Tpo -c -o rndwin32.o rndwin32.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT environ.o -MD -MP -MF .deps/environ.Tpo -c -o environ.o environ.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT getpass.o -MD -MP -MF .deps/getpass.Tpo -c -o getpass.o getpass.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT ufc_crypt.o -MD -MP -MF .deps/ufc_crypt.Tpo -c -o ufc_crypt.o ufc_crypt.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT popen.o -MD -MP -MF .deps/popen.Tpo -c -o popen.o popen.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT classic.o -MD -MP -MF .deps/classic.Tpo -c -o classic.o classic.c
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I../intl    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall -MT rfc2440.o -MD -MP -MF .deps/rfc2440.Tpo -c -o rfc2440.o rfc2440.c
gcc -o gaaout.o -c gaaout.c -DLOCALEDIR=\"/usr/share/locale\" -I../intl -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/mcrypt/src=/usr/src/debug/mcrypt -flto=auto -I/usr/include -Wall  -I. -I..
rndwin32.c:18:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   18 | static char rcsid[] = "$Id: rndwin32.c,v 1.3 2007/11/07 17:14:58 nmav Exp $";
      |             ^~~~~
mv -f .deps/rndwin32.Tpo .deps/rndwin32.Po
errors.c: In function ‘err_quit’:
errors.c:27:9: error: format not a string literal and no format arguments [-Werror=format-security]
   27 |         fprintf(stderr, errmsg);
      |         ^~~~~~~
errors.c: In function ‘err_warn’:
errors.c:34:17: error: format not a string literal and no format arguments [-Werror=format-security]
   34 |                 fprintf(stderr, errmsg);
      |                 ^~~~~~~
errors.c: In function ‘err_info’:
errors.c:40:17: error: format not a string literal and no format arguments [-Werror=format-security]
   40 |                 fprintf(stderr, errmsg);
      |                 ^~~~~~~
errors.c: In function ‘err_crit’:
errors.c:46:17: error: format not a string literal and no format arguments [-Werror=format-security]
   46 |                 fprintf(stderr, errmsg);
      |                 ^~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:315: errors.o] Error 1
make[2]: *** Waiting for unfinished jobs....
openpgp.c: In function ‘pgp_encrypt_wrap’:
openpgp.c:40:56: warning: pointer targets in passing argument 2 of ‘get_password’ differ in signedness [-Wpointer-sign]
   40 |         if (pass==NULL) _pass = get_password( ENCRYPT, &len);
      |                                                        ^~~~
      |                                                        |
      |                                                        int *
In file included from openpgp.c:24:
./extra.h:10:46: note: expected ‘unsigned int *’ but argument is of type ‘int *’
   10 | char * get_password( int mode, unsigned int *len);
      |                                ~~~~~~~~~~~~~~^~~
openpgp.c: In function ‘pgp_decrypt_wrap’:
openpgp.c:62:56: warning: pointer targets in passing argument 2 of ‘get_password’ differ in signedness [-Wpointer-sign]
   62 |         if (pass==NULL) _pass = get_password( DECRYPT, &len);
      |                                                        ^~~~
      |                                                        |
      |                                                        int *
./extra.h:10:46: note: expected ‘unsigned int *’ but argument is of type ‘int *’
   10 | char * get_password( int mode, unsigned int *len);
      |                                ~~~~~~~~~~~~~~^~~
environ.c:28:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   28 | static char rcsid[] = "$Id: environ.c,v 1.2 2007/11/07 17:10:19 nmav Exp $";
      |             ^~~~~
random.c:27:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   27 | static char rcsid[] = "$Id: random.c,v 1.2 2007/11/07 17:10:22 nmav Exp $";
      |             ^~~~~
xmalloc.c:23:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   23 | static char rcsid[] = "$Id: xmalloc.c,v 1.2 2007/11/07 17:10:23 nmav Exp $";
      |             ^~~~~
keys.c:29:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   29 | static char rcsid[] = "$Id: keys.c,v 1.2 2007/11/07 17:10:20 nmav Exp $";
      |             ^~~~~
mv -f .deps/rndunix.Tpo .deps/rndunix.Po
classic.c: In function ‘decrypt_general’:
classic.c:940:18: warning: pointer targets in assignment from ‘uint8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
  940 |          command = mhash_get_hash_name(hash_algorithm);
      |                  ^
mv -f .deps/bits.Tpo .deps/bits.Po
classic.c: In function ‘print_hashlist’:
classic.c:1056:12: warning: pointer targets in assignment from ‘uint8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
 1056 |       tmpc = mhash_get_hash_name(tmpi);
      |            ^
mcrypt.gaa: In function ‘gaa_try’:
mcrypt.gaa:109:3: warning: implicit declaration of function ‘mcrypt_license’; did you mean ‘mcrypt_free’? [-Wimplicit-function-declaration]
  109 | option (L, license) { mcrypt_license(); exit(0); } "Displays license information."
      |   ^~~~~~~~~~~~~~
      |   mcrypt_free
mv -f .deps/functions.Tpo .deps/functions.Po
mv -f .deps/openpgp.Tpo .deps/openpgp.Po
mcrypt.gaa:108:3: warning: implicit declaration of function ‘mcrypt_version’; did you mean ‘mcrypt_perror’? [-Wimplicit-function-declaration]
  108 | option (v, version) { mcrypt_version(); exit(0); } "Prints the version number"
      |   ^~~~~~~~~~~~~~
      |   mcrypt_perror
rfc2440.c: In function ‘dek_load’:
rfc2440.c:566:42: warning: pointer targets in passing argument 5 of ‘mhash_keygen_ext’ differ in signedness [-Wpointer-sign]
  566 |                            DIM (d->key), pass, strlen(pass));
      |                                          ^~~~
      |                                          |
      |                                          char *
In file included from /usr/include/mhash.h:10,
                 from ./defines.h:8,
                 from rfc2440.c:18:
/usr/include/mutils/mhash.h:108:45: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
  108 |                               mutils_word8 *password, mutils_word32 passwordlen);
      |                                             ^
mcrypt.gaa:107:3: warning: implicit declaration of function ‘usage’ [-Wimplicit-function-declaration]
  107 | option (help) { usage(); exit(0); } "Prints this help"
      |   ^~~~~
rfc2440.c: In function ‘dek_create’:
rfc2440.c:617:42: warning: pointer targets in passing argument 5 of ‘mhash_keygen_ext’ differ in signedness [-Wpointer-sign]
  617 |                            DIM (d->key), pass, strlen(pass));
      |                                          ^~~~
      |                                          |
      |                                          char *
/usr/include/mutils/mhash.h:108:45: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘char *’
  108 |                               mutils_word8 *password, mutils_word32 passwordlen);
      |                                             ^
mv -f .deps/environ.Tpo .deps/environ.Po
rfc2440.c: In function ‘symkey_enc_decode’:
rfc2440.c:635:27: warning: pointer targets in passing argument 2 of ‘header_decode’ differ in signedness [-Wpointer-sign]
  635 |     header_decode(dat->d, &tag, &headlen, &offset, NULL);
      |                           ^~~~
      |                           |
      |                           int *
rfc2440.c:426:41: note: expected ‘uint32 *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
  426 | header_decode(const uchar *buf, uint32 *tag, uint32 *len,
      |                                 ~~~~~~~~^~~
rfc2440.c:635:33: warning: pointer targets in passing argument 3 of ‘header_decode’ differ in signedness [-Wpointer-sign]
  635 |     header_decode(dat->d, &tag, &headlen, &offset, NULL);
      |                                 ^~~~~~~~
      |                                 |
      |                                 int *
rfc2440.c:426:54: note: expected ‘uint32 *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
  426 | header_decode(const uchar *buf, uint32 *tag, uint32 *len,
      |                                              ~~~~~~~~^~~
rfc2440.c:635:43: warning: pointer targets in passing argument 4 of ‘header_decode’ differ in signedness [-Wpointer-sign]
  635 |     header_decode(dat->d, &tag, &headlen, &offset, NULL);
      |                                           ^~~~~~~
      |                                           |
      |                                           int *
rfc2440.c:427:23: note: expected ‘uint32 *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
  427 |               uint32 *headlen, PACKET *pkt)
      |               ~~~~~~~~^~~~~~~
mcrypt.gaa:99:3: warning: implicit declaration of function ‘print_hashlist’ [-Wimplicit-function-declaration]
   99 | option (list-hash) { print_hashlist(); exit(0); } "Prints a list of the supported hash algorithms."
      |   ^~~~~~~~~~~~~~
mcrypt.gaa:98:3: warning: implicit declaration of function ‘print_keylist’ [-Wimplicit-function-declaration]
   98 | option (list-keymodes) { print_keylist(); exit(0); } "Prints a list of the supported key modes."
      |   ^~~~~~~~~~~~~
mcrypt.gaa:97:3: warning: implicit declaration of function ‘print_list’ [-Wimplicit-function-declaration]
   97 | option (list) { print_list(); exit(0); } "Prints a list of the supported algorithms and modes."
      |   ^~~~~~~~~~
mv -f .deps/random.Tpo .deps/random.Po
mv -f .deps/xmalloc.Tpo .deps/xmalloc.Po
mv -f .deps/keys.Tpo .deps/keys.Po
mv -f .deps/popen.Tpo .deps/popen.Po
rfc2440.c: In function ‘file_to_buf’:
rfc2440.c:123:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  123 |     fread(buf, 1, len, fp);
      |     ^~~~~~~~~~~~~~~~~~~~~~
extra.c: In function ‘my_getpass’:
extra.c:78:17: warning: the comparison will always evaluate as ‘false’ for the address of ‘ztmp’ will never be NULL [-Waddress]
   78 |         if (ztmp==NULL) return NULL;
      |                 ^~
extra.c:74:21: note: ‘ztmp’ declared here
   74 |         static char ztmp[MAX_KEY_LEN];
      |                     ^~~~
gaa.skel: At top level:
gaa.skel:339:14: warning: ‘gaa_getfloat’ defined but not used [-Wunused-function]
gaa.skel:325:13: warning: ‘gaa_getchar’ defined but not used [-Wunused-function]
mcrypt.c: In function ‘check_hash_algo’:
mcrypt.c:111:9: warning: pointer targets in assignment from ‘uint8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
  111 |       y = mhash_get_hash_name(i);
      |         ^
extra.c: In function ‘write_file_head’:
extra.c:365:13: warning: pointer targets in assignment from ‘uint8_t *’ {aka ‘unsigned char *’} to ‘char *’ differ in signedness [-Wpointer-sign]
  365 |         buf = mhash_get_hash_name(hash_algorithm);
      |             ^
getpass.c: In function ‘readpass’:
getpass.c:100:18: warning: the comparison will always evaluate as ‘false’ for the address of ‘input’ will never be NULL [-Waddress]
  100 |         if (input==NULL) return NULL;
      |                  ^~
getpass.c:95:21: note: ‘input’ declared here
   95 |         static char input[MAXLEN + 1];
      |                     ^~~~~
getpass.c:106:12: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign]
  106 |         ap = asterix;
      |            ^
extra.c: In function ‘test_file_headers’:
extra.c:634:16: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Wparentheses]
  634 |         if ( !(!x & 0x80) && bare_flag == FALSE) {
      |                ^~
mcrypt.c: In function ‘main’:
mcrypt.c:189:43: warning: variable ‘used_algo’ set but not used [-Wunused-but-set-variable]
  189 |    int x, y, i, file_count = 0, keys = 0, used_algo = FALSE;
      |                                           ^~~~~~~~~
extra.c: In function ‘_mcrypt_start_timer’:
extra.c:688:2: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
  688 |  ftime(&start_time);
      |  ^~~~~
In file included from extra.c:40:
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
extra.c: In function ‘_mcrypt_end_timer’:
extra.c:696:2: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
  696 |  ftime(&end_time);
      |  ^~~~~
/usr/include/sys/timeb.h:29:12: note: declared here
   29 | extern int ftime (struct timeb *__timebuf)
      |            ^~~~~
getpass.c: At top level:
getpass.c:31:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   31 | static char rcsid[] = "$Id: getpass.c,v 1.1.1.1 2003/09/08 17:25:49 imipak Exp $";
      |             ^~~~~
extra.c: In function ‘read_until_null’:
extra.c:161:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  161 |                 fread(&pointer[i], 1, 1, fstream);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extra.c: In function ‘check_file_head’:
extra.c:182:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  182 |         fread(buf, 1, 3, fstream);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
extra.c:183:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  183 |         fread(&flags, 1, 1, fstream);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
extra.c:228:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  228 |                 fread(&keylen, sizeof(short int), 1, fstream);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extra.c:240:17: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  240 |                 fread(&sflag, 1, 1, fstream);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
extra.c:245:41: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  245 |                                         fread(tmp_buf, 1, *salt_size,
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  246 |                                               fstream);
      |                                               ~~~~~~~~
extra.c: In function ‘read_iv’:
extra.c:287:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  287 |         fread(IV, 1, ivsize, fstream);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mcrypt.c: At top level:
mcrypt.c:44:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   44 | static char rcsid[] =
      |             ^~~~~
extra.c: At top level:
extra.c:45:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   45 | static char rcsid[] =
      |             ^~~~~
mv -f .deps/getpass.Tpo .deps/getpass.Po
mv -f .deps/classic.Tpo .deps/classic.Po
mv -f .deps/mcrypt.Tpo .deps/mcrypt.Po
mv -f .deps/ufc_crypt.Tpo .deps/ufc_crypt.Po
mv -f .deps/rfc2440.Tpo .deps/rfc2440.Po
mv -f .deps/extra.Tpo .deps/extra.Po
make[2]: Leaving directory '/build/mcrypt/src/mcrypt-2.6.8/src'
make[1]: *** [Makefile:289: all-recursive] Error 1
make[1]: Leaving directory '/build/mcrypt/src/mcrypt-2.6.8'
make: *** [Makefile:219: all] Error 2
[1m[31m==> ERROR:(B[m[1m A failure occurred in build().(B[m
[1m    Aborting...(B[m

https://sources.debian.org/patches/mcrypt/2.6.8-6/ allows the build to get further but it still fails.

I would suggest looking for an alternative to mcrypt that has been updated in the last 15 years.
Edit:
Job ordering is broken needs `make -j1` then build completes.

Last edited by loqs (2023-01-31 16:36:07)

Offline

#9 2023-01-31 16:43:27

wiggige489
Member
Registered: 2023-01-12
Posts: 5

Re: [Newbie] Mcrypt installation Error

loqs wrote:

Job ordering is broken needs `make -j1` then build completes.

Thank you, after running it the installation succeded. Really appreciating the help!

Offline

Board footer

Powered by FluxBB