Skip to content

Instantly share code, notes, and snippets.

@nima2007
Created December 31, 2020 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nima2007/1d2f70b52ef4d4f92d9ae89d23d58b0f to your computer and use it in GitHub Desktop.
Save nima2007/1d2f70b52ef4d4f92d9ae89d23d58b0f to your computer and use it in GitHub Desktop.
macos mcrypt before after
Before:
```
oooo@oooos-MacBook-Pro nixpkgs % nix-build default.nix -A mcrypt
these derivations will be built:
/nix/store/pl82nibm4lnm6siwrb4jxm6yf9ky200g-mcrypt-2.6.8.drv
these paths will be fetched (0.63 MiB download, 1.09 MiB unpacked):
/nix/store/5f1hy0sjzx0bkvcwz1igxxcf58w72n3l-mcrypt-2.6.8.tar.gz
/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8
/nix/store/iaigbsms35jicgdxl493d26n4as1gg4b-mhash-0.9.9.9
copying path '/nix/store/5f1hy0sjzx0bkvcwz1igxxcf58w72n3l-mcrypt-2.6.8.tar.gz' from 'https://cache.nixos.org'...
copying path '/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8' from 'https://cache.nixos.org'...
copying path '/nix/store/iaigbsms35jicgdxl493d26n4as1gg4b-mhash-0.9.9.9' from 'https://cache.nixos.org'...
building '/nix/store/pl82nibm4lnm6siwrb4jxm6yf9ky200g-mcrypt-2.6.8.drv'...
unpacking sources
unpacking source archive /nix/store/5f1hy0sjzx0bkvcwz1igxxcf58w72n3l-mcrypt-2.6.8.tar.gz
source root is mcrypt-2.6.8
setting SOURCE_DATE_EPOCH to timestamp 1226866190 of file mcrypt-2.6.8/po/stamp-po
patching sources
applying patch /nix/store/sh9ngrq3p4c54hl3d5igg2da1pyfmqx5-format-string_CVE-2012-4426.patch
patching file src/errors.c
Hunk #1 succeeded at 24 (offset -1 lines).
applying patch /nix/store/19s0ck8i40k181dsnhc4p1kn49f1hxzm-overflow_CVE-2012-4409.patch
patching file src/extra.c
applying patch /nix/store/y32c8ijj412faricq8m7976pfpaja81p-segv.patch
patching file src/rfc2440.c
Hunk #2 succeeded at 810 with fuzz 2.
applying patch /nix/store/1zjvkcfhnqp5i6jckgmh1fpbw79y2r75-sprintf_CVE-2012-4527.patch
patching file src/mcrypt.c
Hunk #1 succeeded at 46 (offset 5 lines).
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8
checking build system type... i386-apple-darwin19.6.0
checking host system type... i386-apple-darwin19.6.0
checking target system type... i386-apple-darwin19.6.0
checking for a BSD-compatible install... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/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... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking dependency style of clang... none
checking for a sed that does not truncate output... /nix/store/ny04sffdhiin03z4s6fd73mqnz1cfgvf-gnused-4.8/bin/sed
checking for grep that handles long lines and -e... /nix/store/6bwpdgnv13h9agfx7zzsnzdh8gigw2vv-gnugrep-3.6/bin/grep
checking for egrep... /nix/store/6bwpdgnv13h9agfx7zzsnzdh8gigw2vv-gnugrep-3.6/bin/grep -E
checking for fgrep... /nix/store/6bwpdgnv13h9agfx7zzsnzdh8gigw2vv-gnugrep-3.6/bin/grep -F
checking for ld used by clang... ld
checking if the linker (ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for 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 nm output from clang object... ok
checking for dsymutil... dsymutil
checking for nmedit... no
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... rm: cannot remove 'conftest.dSYM': Is a directory
rm: cannot remove 'conftest.dSYM': Is a directory
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
rm: cannot remove 'conftest.dSYM': Is a directory
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.6.0 dyld
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... no
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking dependency style of clang... (cached) none
checking for libmcrypt-config... /nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/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... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... yes
checking for CFLocaleCopyCurrent... yes
checking for GNU gettext in libc... no
checking for iconv... no, consider installing GNU libiconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking for compress in -lz... no
configure: WARNING: ***
*** ZLIB was not found. You will not be able to use ZLIB compression
*** in OpenPGP packets.
checking for an ANSI C-conforming const... yes
checking for a BSD-compatible install... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c
checking whether ln -s works... yes
checking for rm... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/rm
checking for gzip... /nix/store/1a9f3v7m0hddn7y0qlqaw2xiq35w4n6x-gzip-1.10/bin/gzip
checking for bzip2... /nix/store/a2www5kgy1lx7308x1y0sam852ir5713-bzip2-1.0.6.0.1-bin/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
rm: cannot remove 'conftest.dSYM': Is a directory
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... no
checking termio.h presence... no
checking for termio.h... no
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... yes
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
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
building
build flags: SHELL=/nix/store/rdbq2q75ysh13gis328k7vwwf4s22hvw-bash-4.4-p23/bin/bash
make all-recursive
make[1]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
Making all in doc
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
Making all in src
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c extra.c
extra.c:78:6: warning: comparison of array 'ztmp' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (ztmp==NULL) return NULL;
^~~~ ~~~~
extra.c:367:6: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
buf = mhash_get_hash_name(hash_algorithm);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extra.c:636:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
if ( !(!x & 0x80) && bare_flag == FALSE) {
^ ~
extra.c:636:9: note: add parentheses after the '!' to evaluate the bitwise operator first
if ( !(!x & 0x80) && bare_flag == FALSE) {
^
( )
extra.c:636:9: note: add parentheses around left hand side expression to silence this warning
if ( !(!x & 0x80) && bare_flag == FALSE) {
^
( )
extra.c:45:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] =
^
4 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c mcrypt.c
mcrypt.c:113:9: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
y = mhash_get_hash_name(i);
^ ~~~~~~~~~~~~~~~~~~~~~~
mcrypt.c:44:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] =
^
2 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c keys.c
keys.c:29:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: keys.c,v 1.2 2007/11/07 17:10:20 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c random.c
random.c:27:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: random.c,v 1.2 2007/11/07 17:10:22 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c rndunix.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c xmalloc.c
xmalloc.c:23:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: xmalloc.c,v 1.2 2007/11/07 17:10:23 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c functions.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c errors.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c bits.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c openpgp.c
openpgp.c:40:49: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pass==NULL) _pass = get_password( ENCRYPT, &len);
^~~~
./extra.h:10:46: note: passing argument to parameter 'len' here
char * get_password( int mode, unsigned int *len);
^
openpgp.c:62:49: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pass==NULL) _pass = get_password( DECRYPT, &len);
^~~~
./extra.h:10:46: note: passing argument to parameter 'len' here
char * get_password( int mode, unsigned int *len);
^
2 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c rndwin32.c
rndwin32.c:18:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: rndwin32.c,v 1.3 2007/11/07 17:14:58 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c environ.c
environ.c:28:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: environ.c,v 1.2 2007/11/07 17:10:19 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c getpass.c
getpass.c:100:6: warning: comparison of array 'input' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (input==NULL) return NULL;
^~~~~ ~~~~
getpass.c:106:5: warning: assigning to 'unsigned char *' from 'char [514]' converts between pointers to integer types with different sign [-Wpointer-sign]
ap = asterix;
^ ~~~~~~~
getpass.c:31:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: getpass.c,v 1.1.1.1 2003/09/08 17:25:49 imipak Exp $";
^
3 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c ufc_crypt.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c popen.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c classic.c
classic.c:940:11: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
command = mhash_get_hash_name(hash_algorithm);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
classic.c:1056:12: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
tmpc = mhash_get_hash_name(tmpi);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/ydw3cjkhn52jzf8yxcwn2pp8r0ypbj60-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c rfc2440.c
rfc2440.c:26:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make[2]: *** [Makefile:319: rfc2440.o] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
make[1]: *** [Makefile:289: all-recursive] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make: *** [Makefile:219: all] Error 2
builder for '/nix/store/pl82nibm4lnm6siwrb4jxm6yf9ky200g-mcrypt-2.6.8.drv' failed with exit code 2
error: build of '/nix/store/pl82nibm4lnm6siwrb4jxm6yf9ky200g-mcrypt-2.6.8.drv' failed
```
After:
```
oooo@oooos-MacBook-Pro nixpkgs % nix-build default.nix -A mcrypt
these derivations will be built:
/nix/store/92r7q2zm74k2zvc1kf82bblxyc241ip8-mcrypt-2.6.8.drv
building '/nix/store/92r7q2zm74k2zvc1kf82bblxyc241ip8-mcrypt-2.6.8.drv'...
unpacking sources
unpacking source archive /nix/store/5f1hy0sjzx0bkvcwz1igxxcf58w72n3l-mcrypt-2.6.8.tar.gz
source root is mcrypt-2.6.8
setting SOURCE_DATE_EPOCH to timestamp 1226866190 of file mcrypt-2.6.8/po/stamp-po
patching sources
applying patch /nix/store/sh9ngrq3p4c54hl3d5igg2da1pyfmqx5-format-string_CVE-2012-4426.patch
patching file src/errors.c
Hunk #1 succeeded at 24 (offset -1 lines).
applying patch /nix/store/19s0ck8i40k181dsnhc4p1kn49f1hxzm-overflow_CVE-2012-4409.patch
patching file src/extra.c
applying patch /nix/store/y32c8ijj412faricq8m7976pfpaja81p-segv.patch
patching file src/rfc2440.c
Hunk #2 succeeded at 810 with fuzz 2.
applying patch /nix/store/1zjvkcfhnqp5i6jckgmh1fpbw79y2r75-sprintf_CVE-2012-4527.patch
patching file src/mcrypt.c
Hunk #1 succeeded at 46 (offset 5 lines).
applying patch /nix/store/q0wlgpmsr5671cppizhiaxvrnj76vw2y-malloc_to_stdlib.patch
patching file src/rfc2440.c
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8
checking build system type... i386-apple-darwin19.6.0
checking host system type... i386-apple-darwin19.6.0
checking target system type... i386-apple-darwin19.6.0
checking for a BSD-compatible install... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/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... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking dependency style of clang... none
checking for a sed that does not truncate output... /nix/store/ny04sffdhiin03z4s6fd73mqnz1cfgvf-gnused-4.8/bin/sed
checking for grep that handles long lines and -e... /nix/store/6bwpdgnv13h9agfx7zzsnzdh8gigw2vv-gnugrep-3.6/bin/grep
checking for egrep... /nix/store/6bwpdgnv13h9agfx7zzsnzdh8gigw2vv-gnugrep-3.6/bin/grep -E
checking for fgrep... /nix/store/6bwpdgnv13h9agfx7zzsnzdh8gigw2vv-gnugrep-3.6/bin/grep -F
checking for ld used by clang... ld
checking if the linker (ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for 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 nm output from clang object... ok
checking for dsymutil... dsymutil
checking for nmedit... no
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... rm: cannot remove 'conftest.dSYM': Is a directory
rm: cannot remove 'conftest.dSYM': Is a directory
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
rm: cannot remove 'conftest.dSYM': Is a directory
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.6.0 dyld
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... no
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking dependency style of clang... (cached) none
checking for libmcrypt-config... /nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/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... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... yes
checking for CFLocaleCopyCurrent... yes
checking for GNU gettext in libc... no
checking for iconv... no, consider installing GNU libiconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking for compress in -lz... no
configure: WARNING: ***
*** ZLIB was not found. You will not be able to use ZLIB compression
*** in OpenPGP packets.
checking for an ANSI C-conforming const... yes
checking for a BSD-compatible install... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c
checking whether ln -s works... yes
checking for rm... /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/rm
checking for gzip... /nix/store/1a9f3v7m0hddn7y0qlqaw2xiq35w4n6x-gzip-1.10/bin/gzip
checking for bzip2... /nix/store/a2www5kgy1lx7308x1y0sam852ir5713-bzip2-1.0.6.0.1-bin/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
rm: cannot remove 'conftest.dSYM': Is a directory
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... no
checking termio.h presence... no
checking for termio.h... no
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... yes
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
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
building
build flags: SHELL=/nix/store/rdbq2q75ysh13gis328k7vwwf4s22hvw-bash-4.4-p23/bin/bash
make all-recursive
make[1]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
Making all in doc
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
Making all in src
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c extra.c
extra.c:78:6: warning: comparison of array 'ztmp' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (ztmp==NULL) return NULL;
^~~~ ~~~~
extra.c:367:6: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
buf = mhash_get_hash_name(hash_algorithm);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
extra.c:636:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
if ( !(!x & 0x80) && bare_flag == FALSE) {
^ ~
extra.c:636:9: note: add parentheses after the '!' to evaluate the bitwise operator first
if ( !(!x & 0x80) && bare_flag == FALSE) {
^
( )
extra.c:636:9: note: add parentheses around left hand side expression to silence this warning
if ( !(!x & 0x80) && bare_flag == FALSE) {
^
( )
extra.c:45:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] =
^
4 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c mcrypt.c
mcrypt.c:113:9: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
y = mhash_get_hash_name(i);
^ ~~~~~~~~~~~~~~~~~~~~~~
mcrypt.c:44:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] =
^
2 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c keys.c
keys.c:29:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: keys.c,v 1.2 2007/11/07 17:10:20 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c random.c
random.c:27:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: random.c,v 1.2 2007/11/07 17:10:22 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c rndunix.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c xmalloc.c
xmalloc.c:23:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: xmalloc.c,v 1.2 2007/11/07 17:10:23 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c functions.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c errors.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c bits.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c openpgp.c
openpgp.c:40:49: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pass==NULL) _pass = get_password( ENCRYPT, &len);
^~~~
./extra.h:10:46: note: passing argument to parameter 'len' here
char * get_password( int mode, unsigned int *len);
^
openpgp.c:62:49: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (pass==NULL) _pass = get_password( DECRYPT, &len);
^~~~
./extra.h:10:46: note: passing argument to parameter 'len' here
char * get_password( int mode, unsigned int *len);
^
2 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c rndwin32.c
rndwin32.c:18:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: rndwin32.c,v 1.3 2007/11/07 17:14:58 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c environ.c
environ.c:28:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: environ.c,v 1.2 2007/11/07 17:10:19 nmav Exp $";
^
1 warning generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c getpass.c
getpass.c:100:6: warning: comparison of array 'input' equal to a null pointer is always false [-Wtautological-pointer-compare]
if (input==NULL) return NULL;
^~~~~ ~~~~
getpass.c:106:5: warning: assigning to 'unsigned char *' from 'char [514]' converts between pointers to integer types with different sign [-Wpointer-sign]
ap = asterix;
^ ~~~~~~~
getpass.c:31:13: warning: unused variable 'rcsid' [-Wunused-variable]
static char rcsid[] = "$Id: getpass.c,v 1.1.1.1 2003/09/08 17:25:49 imipak Exp $";
^
3 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c ufc_crypt.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c popen.c
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c classic.c
classic.c:940:11: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
command = mhash_get_hash_name(hash_algorithm);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
classic.c:1056:12: warning: assigning to 'char *' from 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
tmpc = mhash_get_hash_name(tmpi);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
clang -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -c rfc2440.c
rfc2440.c:566:21: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
DIM (d->key), pass, strlen(pass));
^~~~
/nix/store/iaigbsms35jicgdxl493d26n4as1gg4b-mhash-0.9.9.9/include/mutils/mhash.h:108:24: note: passing argument to parameter 'password' here
mutils_word8 *password, mutils_word32 passwordlen);
^
rfc2440.c:617:21: warning: passing 'char *' to parameter of type 'uint8_t *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
DIM (d->key), pass, strlen(pass));
^~~~
/nix/store/iaigbsms35jicgdxl493d26n4as1gg4b-mhash-0.9.9.9/include/mutils/mhash.h:108:24: note: passing argument to parameter 'password' here
mutils_word8 *password, mutils_word32 passwordlen);
^
rfc2440.c:635:27: warning: passing 'int *' to parameter of type 'uint32 *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
header_decode(dat->d, &tag, &headlen, &offset, NULL);
^~~~
rfc2440.c:426:41: note: passing argument to parameter 'tag' here
header_decode(const uchar *buf, uint32 *tag, uint32 *len,
^
rfc2440.c:635:33: warning: passing 'int *' to parameter of type 'uint32 *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
header_decode(dat->d, &tag, &headlen, &offset, NULL);
^~~~~~~~
rfc2440.c:426:54: note: passing argument to parameter 'len' here
header_decode(const uchar *buf, uint32 *tag, uint32 *len,
^
rfc2440.c:635:43: warning: passing 'int *' to parameter of type 'uint32 *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
header_decode(dat->d, &tag, &headlen, &offset, NULL);
^~~~~~~
rfc2440.c:427:16: note: passing argument to parameter 'headlen' here
uint32 *headlen, PACKET *pkt)
^
rfc2440.c:836:1: warning: unused function 'do_compress' [-Wunused-function]
do_compress(int algo, int flush, uchar *inbuf, size_t insize,
^
rfc2440.c:925:1: warning: unused function 'do_uncompress' [-Wunused-function]
do_uncompress( int algo, uchar *inbuf, size_t insize, USTRING *ret_out )
^
7 warnings generated.
clang -o gaaout.o -c gaaout.c -DLOCALEDIR=\"/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/locale\" -I../intl -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -I. -I..
mcrypt.gaa:109:3: warning: implicit declaration of function 'mcrypt_license' is invalid in C99 [-Wimplicit-function-declaration]
{ mcrypt_license(); exit(0); ;};
^
mcrypt.gaa:108:3: warning: implicit declaration of function 'mcrypt_version' is invalid in C99 [-Wimplicit-function-declaration]
{ mcrypt_version(); exit(0); ;};
^
mcrypt.gaa:107:3: warning: implicit declaration of function 'usage' is invalid in C99 [-Wimplicit-function-declaration]
{ usage(); exit(0); ;};
^
mcrypt.gaa:99:3: warning: implicit declaration of function 'print_hashlist' is invalid in C99 [-Wimplicit-function-declaration]
{ print_hashlist(); exit(0); ;};
^
mcrypt.gaa:98:3: warning: implicit declaration of function 'print_keylist' is invalid in C99 [-Wimplicit-function-declaration]
{ print_keylist(); exit(0); ;};
^
mcrypt.gaa:97:3: warning: implicit declaration of function 'print_list' is invalid in C99 [-Wimplicit-function-declaration]
{ print_list(); exit(0); ;};
^
gaa.skel:510:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("gp");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:510:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:511:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("gz");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:511:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:512:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("bg");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:512:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:513:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("mg");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:513:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:514:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("zp");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:514:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:515:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("Vq");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:515:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:516:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
GAA_INCOMP("kf");
^~~~~~~~~~~~~~~~
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
~~~~^~~
gaa.skel:516:2: note: use array indexing to silence this warning
gaa.skel:291:32: note: expanded from macro 'GAA_INCOMP'
j = gaa_get_option_num(str + i, GAA_LETTER_OPTION); \
^
gaa.skel:325:13: warning: unused function 'gaa_getchar' [-Wunused-function]
static char gaa_getchar(char *arg)
^
gaa.skel:339:14: warning: unused function 'gaa_getfloat' [-Wunused-function]
static float gaa_getfloat(char *arg)
^
15 warnings generated.
/nix/store/rdbq2q75ysh13gis328k7vwwf4s22hvw-bash-4.4-p23/bin/bash ../libtool --tag=CC --mode=link clang -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -o mcrypt extra.o mcrypt.o keys.o random.o rndunix.o xmalloc.o functions.o errors.o bits.o openpgp.o rndwin32.o environ.o getpass.o ufc_crypt.o popen.o classic.o rfc2440.o gaaout.o -lmhash -L/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/lib -lmcrypt
libtool: link: clang -g -O2 -I/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/include -Wall -o mcrypt extra.o mcrypt.o keys.o random.o rndunix.o xmalloc.o functions.o errors.o bits.o openpgp.o rndwin32.o environ.o getpass.o ufc_crypt.o popen.o classic.o rfc2440.o gaaout.o -lmhash -L/nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/lib /nix/store/8pxcnmm35y4nrqlycqbn9vk5gk92ym95-libmcrypt-2.5.8/lib/libmcrypt.dylib
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
Making all in po
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/po'
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make[1]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
installing
install flags: SHELL=/nix/store/rdbq2q75ysh13gis328k7vwwf4s22hvw-bash-4.4-p23/bin/bash install
Making install in doc
make[1]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/man/man1" || /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/mkdir -p "/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/man/man1"
/nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c -m 644 './mcrypt.1' '/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/man/man1/mcrypt.1'
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
make[1]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/doc'
Making install in src
make[1]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
test -z "/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin" || /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/mkdir -p "/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin"
/nix/store/rdbq2q75ysh13gis328k7vwwf4s22hvw-bash-4.4-p23/bin/bash ../libtool --mode=install /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c 'mcrypt' '/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin/mcrypt'
libtool: install: /nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c mcrypt /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin/mcrypt
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
make[1]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/src'
Making install in po
make[1]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/po'
if test "mcrypt" = "gettext-tools"; then \
/nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/mkdir -p /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/install -c -m 644 ./$file \
/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8/po'
make[1]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make[2]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make install-exec-hook
make[3]: Entering directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
/nix/store/rv9ff7sr4r30rin89ki1v5vqr0dndwad-coreutils-8.32/bin/rm -f /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin/mdecrypt
ln -s mcrypt /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin/mdecrypt
make[3]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
make[1]: Leaving directory '/private/tmp/nix-build-mcrypt-2.6.8.drv-0/mcrypt-2.6.8'
post-installation fixup
gzipping man pages under /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/share/man/
strip is /nix/store/jp0bhf9dxx9n324hm24rr3nhcggib1f2-cctools-binutils-darwin-949.0.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin
patching script interpreter paths in /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8
/nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8
```
Binary test:
```
oooo@oooos-MacBook-Pro nixpkgs % /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin/mcrypt --version
Mcrypt v.0.9.9 (i386-apple-darwin19.6.0)
Linked against libmcrypt v.2.5.8
Copyright (C) 1998-2002 Nikos Mavroyanopoulos (nmav@gnutls.org)
oooo@oooos-MacBook-Pro nixpkgs %
oooo@oooos-MacBook-Pro nixpkgs % /nix/store/g78hfs2z8pzdpkx8aa92zmgygk9ky0sj-mcrypt-2.6.8/bin/mdecrypt --version
Mcrypt v.0.9.9 (i386-apple-darwin19.6.0)
Linked against libmcrypt v.2.5.8
Copyright (C) 1998-2002 Nikos Mavroyanopoulos (nmav@gnutls.org)
oooo@oooos-MacBook-Pro nixpkgs %
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment