Recent

Author Topic: SOLVED: OpenSSL  (Read 19447 times)

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: OpenSSL
« Reply #15 on: January 02, 2015, 05:26:29 pm »
Thanks!

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: OpenSSL
« Reply #16 on: January 02, 2015, 05:28:44 pm »
did it help?

... and libmsvcrt.a
... and probably one of libmsvcrtXXX.a (where XXX is msvc run-time  edition)
« Last Edit: January 02, 2015, 05:32:49 pm by skalogryz »

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: OpenSSL
« Reply #17 on: January 02, 2015, 07:23:12 pm »
I got rid of most of the functions only these are left  ::)

Code: [Select]
{$linklib libcrypto.a}
{$linklib libssl.a}
{$linklib C:\MinGW\lib\libmsvcrt.a}     

Quote
Compile Project, Target: project1.exe: Exit code 1, Errors: 20
project1.lpr(16,1) Error: Undefined symbol: ___chkstk_ms
project1.lpr(16,1) Error: Undefined symbol: _GetDesktopWindow@0
project1.lpr(16,1) Error: Undefined symbol: _GetProcessWindowStation@0
project1.lpr(16,1) Error: Undefined symbol: _GetUserObjectInformationW@20
project1.lpr(16,1) Error: Undefined symbol: _RegisterEventSourceA@8
project1.lpr(16,1) Error: Undefined symbol: _ReportEventA@36
project1.lpr(16,1) Error: Undefined symbol: _DeregisterEventSource@4
project1.lpr(16,1) Error: Undefined symbol: _MessageBoxA@16
project1.lpr(16,1) Error: Undefined symbol: ___umoddi3
project1.lpr(16,1) Error: Undefined symbol: ___udivdi3
project1.lpr(16,1) Error: Undefined symbol: _CreateDCA@16
project1.lpr(16,1) Error: Undefined symbol: _CreateCompatibleDC@4
project1.lpr(16,1) Error: Undefined symbol: _GetDeviceCaps@8
project1.lpr(16,1) Error: Undefined symbol: _CreateCompatibleBitmap@12
project1.lpr(16,1) Error: Undefined symbol: _SelectObject@8
project1.lpr(16,1) Error: Undefined symbol: _GetObjectA@12
project1.lpr(16,1) Error: Undefined symbol: _BitBlt@36
project1.lpr(16,1) Error: Undefined symbol: _GetBitmapBits@12
project1.lpr(16,1) Error: Undefined symbol: _DeleteObject@4
project1.lpr(16,1) Error: Undefined symbol: _DeleteDC@4

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: OpenSSL
« Reply #18 on: January 02, 2015, 07:26:25 pm »
...add libgdi32.a
...add libuser32.a
...add libadvapi32.a
...add lib\gcc\mingw32\x.y.z\libgcc.a
« Last Edit: January 02, 2015, 07:28:27 pm by skalogryz »

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: OpenSSL
« Reply #19 on: January 02, 2015, 07:31:28 pm »
Quote
{$mode delphi}
{$linklib libcrypto.a}
{$linklib libssl.a}
{$linklib C:\MinGW\lib\libmsvcrt.a}
{$linklib C:\MinGW\lib\libgdi32.a}
{$linklib C:\MinGW\lib\libuser32.a}
{$linklib C:\MinGW\lib\libadvapi32.a}
{$linklib C:\MinGW\mingw32\lib\gcc\mingw32\4.8.1\libgcc.a}   

Quote
Compile Project, Target: project1.exe: Exit code 1, Errors: 17
project1.lpr(19,1) Error: Undefined symbol: _GetCurrentThreadId@0
project1.lpr(19,1) Error: Undefined symbol: _GetModuleHandleA@4
project1.lpr(19,1) Error: Undefined symbol: _GetProcAddress@8
project1.lpr(19,1) Error: Undefined symbol: _GetLastError@0
project1.lpr(19,1) Error: Undefined symbol: _GetStdHandle@4
project1.lpr(19,1) Error: Undefined symbol: _GetFileType@4
project1.lpr(19,1) Error: Undefined symbol: _GetVersion@0
project1.lpr(19,1) Error: Undefined symbol: _MultiByteToWideChar@24
project1.lpr(19,1) Error: Undefined symbol: _GetVersionExA@4
project1.lpr(19,1) Error: Undefined symbol: _LoadLibraryA@4
project1.lpr(19,1) Error: Undefined symbol: _FreeLibrary@4
project1.lpr(19,1) Error: Undefined symbol: _GetTickCount@0
project1.lpr(19,1) Error: Undefined symbol: _GlobalMemoryStatus@4
project1.lpr(19,1) Error: Undefined symbol: _GetCurrentProcessId@0
project1.lpr(19,1) Error: Undefined symbol: _QueryPerformanceCounter@4
project1.lpr(19,1) Error: Undefined symbol: _CloseHandle@4
project1.lpr(19,1) Error: Undefined symbol: _ExitProcess@4

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: OpenSSL
« Reply #20 on: January 02, 2015, 07:35:06 pm »
you really missed by post on the previous page:

...add libkernel32.a

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: OpenSSL
« Reply #21 on: January 02, 2015, 07:37:01 pm »
Compiles!  8-)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: OpenSSL
« Reply #22 on: January 02, 2015, 07:44:04 pm »
Compiles!  8-)
That's minor. Does it work?

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: SOLVED: OpenSSL
« Reply #23 on: January 02, 2015, 07:44:50 pm »
Yes it does! :)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: SOLVED: OpenSSL
« Reply #24 on: January 02, 2015, 07:46:58 pm »
Yes it does! :)
Happy New Year!!!

Suggestion: create an article on a blog or better in the wiki how to statically link OpenSSL with FPC.
« Last Edit: January 02, 2015, 07:50:13 pm by skalogryz »

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: SOLVED: OpenSSL
« Reply #25 on: January 02, 2015, 07:55:31 pm »
Will do!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8797
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: OpenSSL
« Reply #26 on: January 03, 2015, 06:18:57 am »
Delphi has System.Win.Crtl which has most of these missing functions? So whats your point.
Not related. My point is what you finally did: link with other .a (that becomes the main .a's dependencies) as well
« Last Edit: January 03, 2015, 04:18:06 pm by Leledumbo »

rtusrghsdfhsfdhsdfhsfdhs

  • Full Member
  • ***
  • Posts: 162
Re: SOLVED: OpenSSL
« Reply #27 on: January 03, 2015, 04:13:34 pm »
cURL also statically links well with FPC. ::)

 

TinyPortal © 2005-2018