Re: des/md5 problems?

From: Todd V. Clark (tvclark@denalitek.com)
Date: Tue Jan 18 2000 - 11:20:37 EST


Looks like you an I are in the same place (I'm getting the same error).

If you look at the SOLARIS patch posted yesterday by Yul Shelton, it appears
that the DES.c file should be quite large. Looking at mine, it's small and
contains XS definitions rather than the valid functions des_expand_key and
des_crypt. I'd bet that's why your getting the link errors (unresolved
externals).

I wonder if there's some parameter to be used with "Perl makefile.pl" or
"NMake" that would allow the DES.c to be "built" properly from the DES.xs
file?

Todd Clark
Denalitek Inc.

>Hey guys,
>
> Sorry about the other email. I moved the perlCRT.lib into the same
>directory in where I'm compiling the program. here is my new error message.
>I would appreciate it if anyone who has had the same problem or knows what
>to
>do could help me.
>
>------snip----------
>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
>Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
>DES.c
>"Running Mkbootstrap for Crypt::DES ()"
>
>
>
>
    C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command -e
>chmod 644 DES.bs
> C:\Perl\bin\perl.exe "-IC:\Perl\lib"
>"-IC:\Perl\lib" -MExtUtils::Mksymli
>sts -e "Mksymlists('NAME' => 'Crypt::DES', 'DLBASE' => 'DES', 'DL_FUNCS'
=>
>{
>}, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
>
>
>
>
>
   link -out:blib\arch\auto\Crypt\DES\DES.dll -dll -nologo -nodefaultlib -r
>elease -machine:x86 DES.obj des.obj C:\Perl\lib\CORE\perlcore.lib
>oldnames.lib
> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
>shell
>32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib
>winmm.l
>ib version.lib odbc32.lib odbccp32.lib PerlCRT.lib -def:DES.def
>des.obj : warning LNK4042: object specified more than once; extras ignored
>des.obj : warning LNK4042: object specified more than once; extras ignored
> Creating library blib\arch\auto\Crypt\DES\DES.lib and object
>blib\arch\auto\C
>rypt\DES\DES.exp
>DES.obj : error LNK2001: unresolved external symbol "void __cdecl
>des_expand_key
>(unsigned char * const,unsigned long * const)"
>(?des_expand_key@@YAXQAEQAK@Z)
>DES.obj : error LNK2001: unresolved external symbol "void __cdecl
>des_crypt(unsi
>gned long * const,unsigned long * const,unsigned long * const,int)"
>(?des_crypt@
>@YAXQAK00H@Z)
>blib\arch\auto\Crypt\DES\DES.dll : fatal error LNK1120: 2 unresolved
>externals
>NMAKE : fatal error U1077: 'link' : return code '0x460'
>Stop.
>
>Thanks,
>Nitin Agarwal
>



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:35:14 EDT