Error compilling
$ /bin/sh ../libtool --tag=CC --mode=link i686-pc-cygwin-gcc -shared -lmcrypt -o mcrypt.exe 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 -lssp -lmcrypt -lz -lmhash -L/usr/local/lib -lmcrypt -D_FORTIFY_SOURCE=0
libtool: link: i686-pc-cygwin-gcc -o .libs/mcrypt.exe 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 -D_FORTIFY_SOURCE=0 -lssp -lz /usr/local/lib/libmhash-2.dll -L/usr/local/lib /usr/local/lib/libmcrypt.so -L/usr/local/lib
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: mcrypt.o:mcrypt.c:(.text+0x10d0): undefined reference to copyDate'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: mcrypt.o:mcrypt.c:(.text+0x1298): undefined reference to
copyDate'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: getpass.o:getpass.c:(.text+0xd): undefined reference to _imp___cputs'
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: getpass.o:getpass.c:(.text+0x1b): undefined reference to
_imp___cgets'
collect2: error: ld returned 1 exit status
What I'm doing wrong?