Linker errors on windows - Openssl

This is a discussion on Linker errors on windows - Openssl ; Hello I tried to deactivate patented algorithms that are mentioned in README, but I get unresolved externals linker errors. I'm building this way: set OPTS=no-asm perl Configure disable-idea disable-rc4 disable-rc5 disable-ntt disable-mdc2 VC-WIN32 perl util\mkfiles.pl >MINFO perl util\mk1mf.pl %OPTS% dll ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Linker errors on windows

  1. Linker errors on windows

    Hello

    I tried to deactivate patented algorithms that are mentioned in README,
    but I get unresolved externals linker errors.

    I'm building this way:
    set OPTS=no-asm
    perl Configure disable-idea disable-rc4 disable-rc5 disable-ntt
    disable-mdc2 VC-WIN32
    perl util\mkfiles.pl >MINFO
    perl util\mk1mf.pl %OPTS% dll VC-WIN32 >32dll.mak
    perl util\mkdef.pl 32 libeay > ms\libeay32.def
    perl util\mkdef.pl 32 ssleay > ms\ssleay32.def

    @if errorlevel 1 goto end
    nmake -f 32dll.mak

    :end


    Output:
    link /nologo /subsystem:console /opt:ref /dll
    /outut32dll\libeay32.dll /def:ms/LIBEAY32.def
    @C:\DOKUME~1\gergap\LOKALE~1\Temp\nm37D.tmp
    ms/LIBEAY32.def(7) : warning LNK4017: DESCRIPTION statement not
    supported for the target platform; ignored
    LIBEAY32.def : error LNK2001: unresolved external symbol d2i_Netscape_RSA
    LIBEAY32.def : error LNK2001: unresolved external symbol d2i_RSA_NET
    LIBEAY32.def : error LNK2001: unresolved external symbol i2d_Netscape_RSA
    LIBEAY32.def : error LNK2001: unresolved external symbol i2d_RSA_NET
    out32dll\libeay32.lib : fatal error LNK1120: 4 unresolved externals
    NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio
    8\VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    Building OpenSSL failed.
    Build failed

    Has somebody a tip how to solve this?

    regards,
    Gerhard.

    __________________________________________________ ____________________
    OpenSSL Project http://www.openssl.org
    User Support Mailing List openssl-users@openssl.org
    Automated List Manager majordomo@openssl.org


  2. Re: Linker errors on windows

    I think we are sailing in the same boat. I hit into exactly the same
    problem.if you try compiling without disabling rc4. You will not get
    those linking errors. But if we want to exclude all patented
    algorithms, then we need to look for specific build releases without
    these algorithms.

    On 6/16/08, Gerhard Gappmeier wrote:
    > Hello
    >
    > I tried to deactivate patented algorithms that are mentioned in README,
    > but I get unresolved externals linker errors.
    >
    > I'm building this way:
    > set OPTS=no-asm
    > perl Configure disable-idea disable-rc4 disable-rc5 disable-ntt
    > disable-mdc2 VC-WIN32
    > perl util\mkfiles.pl >MINFO
    > perl util\mk1mf.pl %OPTS% dll VC-WIN32 >32dll.mak
    > perl util\mkdef.pl 32 libeay > ms\libeay32.def
    > perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
    >
    > @if errorlevel 1 goto end
    > nmake -f 32dll.mak
    >
    > :end
    >
    >
    > Output:
    > link /nologo /subsystem:console /opt:ref /dll
    > /outut32dll\libeay32.dll /def:ms/LIBEAY32.def
    > @C:\DOKUME~1\gergap\LOKALE~1\Temp\nm37D.tmp
    > ms/LIBEAY32.def(7) : warning LNK4017: DESCRIPTION statement not
    > supported for the target platform; ignored
    > LIBEAY32.def : error LNK2001: unresolved external symbol d2i_Netscape_RSA
    > LIBEAY32.def : error LNK2001: unresolved external symbol d2i_RSA_NET
    > LIBEAY32.def : error LNK2001: unresolved external symbol i2d_Netscape_RSA
    > LIBEAY32.def : error LNK2001: unresolved external symbol i2d_RSA_NET
    > out32dll\libeay32.lib : fatal error LNK1120: 4 unresolved externals
    > NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio
    > 8\VC\BIN\link.EXE"' : return code '0x460'
    > Stop.
    > Building OpenSSL failed.
    > Build failed
    >
    > Has somebody a tip how to solve this?
    >
    > regards,
    > Gerhard.
    >
    > __________________________________________________ ____________________
    > OpenSSL Project http://www.openssl.org
    > User Support Mailing List openssl-users@openssl.org
    > Automated List Manager majordomo@openssl.org
    >

    __________________________________________________ ____________________
    OpenSSL Project http://www.openssl.org
    User Support Mailing List openssl-users@openssl.org
    Automated List Manager majordomo@openssl.org


  3. Re: Linker errors on windows

    I don't trust binary releases from third partys.
    You never know if there is a backdoor in it.
    Beside this I want to be able to update my dlls whenever there is a
    bugfix of OpenSSL.

    What we need is to fix that issues.

    Is it possible to deactivate the code parts that are referencing RC4?
    If not we have to create our own patch to remove that.

    bagavathy raj schrieb:
    > I think we are sailing in the same boat. I hit into exactly the same
    > problem.if you try compiling without disabling rc4. You will not get
    > those linking errors. But if we want to exclude all patented
    > algorithms, then we need to look for specific build releases without
    > these algorithms.
    >
    > On 6/16/08, Gerhard Gappmeier wrote:
    >
    >> Hello
    >>
    >> I tried to deactivate patented algorithms that are mentioned in README,
    >> but I get unresolved externals linker errors.
    >>
    >> I'm building this way:
    >> set OPTS=no-asm
    >> perl Configure disable-idea disable-rc4 disable-rc5 disable-ntt
    >> disable-mdc2 VC-WIN32
    >> perl util\mkfiles.pl >MINFO
    >> perl util\mk1mf.pl %OPTS% dll VC-WIN32 >32dll.mak
    >> perl util\mkdef.pl 32 libeay > ms\libeay32.def
    >> perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
    >>
    >> @if errorlevel 1 goto end
    >> nmake -f 32dll.mak
    >>
    >> :end
    >>
    >>
    >> Output:
    >> link /nologo /subsystem:console /opt:ref /dll
    >> /outut32dll\libeay32.dll /def:ms/LIBEAY32.def
    >> @C:\DOKUME~1\gergap\LOKALE~1\Temp\nm37D.tmp
    >> ms/LIBEAY32.def(7) : warning LNK4017: DESCRIPTION statement not
    >> supported for the target platform; ignored
    >> LIBEAY32.def : error LNK2001: unresolved external symbol d2i_Netscape_RSA
    >> LIBEAY32.def : error LNK2001: unresolved external symbol d2i_RSA_NET
    >> LIBEAY32.def : error LNK2001: unresolved external symbol i2d_Netscape_RSA
    >> LIBEAY32.def : error LNK2001: unresolved external symbol i2d_RSA_NET
    >> out32dll\libeay32.lib : fatal error LNK1120: 4 unresolved externals
    >> NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio
    >> 8\VC\BIN\link.EXE"' : return code '0x460'
    >> Stop.
    >> Building OpenSSL failed.
    >> Build failed
    >>
    >> Has somebody a tip how to solve this?
    >>
    >> regards,
    >> Gerhard.
    >>
    >> __________________________________________________ ____________________
    >> OpenSSL Project http://www.openssl.org
    >> User Support Mailing List openssl-users@openssl.org
    >> Automated List Manager majordomo@openssl.org
    >>
    >>

    > __________________________________________________ ____________________
    > OpenSSL Project http://www.openssl.org
    > User Support Mailing List openssl-users@openssl.org
    > Automated List Manager majordomo@openssl.org
    >
    >



    --
    mit freundlichen Grüßen / best regards

    *Gerhard Gappmeier*
    ascolab GmbH - automation systems communication laboratory
    Tel.: +49 9131 691 123
    Fax: +49 9131 691 128
    Web: http://www.ascolab.com
    GPG-Key: http://www.ascolab.com/gpg/gg.asc

    --
    *ascolab GmbH*
    Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe Steinkrauß
    Sitz der Gesellschaft: Am Weichselgarten 7 . 91058 Erlangen . Germany
    Registernummer: HRB 9360
    Registergericht: Amtsgericht Fürth



+ Reply to Thread