Re: Windows slrn: undefined reference to `SSL_read'

andrew <[email protected]> Thu, 11 Nov 2010 14:35:44 +1100
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
On Thu, Nov 11, 2010 at 09:21:37AM +1100, andrew wrote:
> On Wed, Nov 10, 2010 at 05:19:33PM +0100, Thomas Wiegner wrote:
> 
> > Looks like the SSL libraries are not correctly added to the linker
> > command.
> 
> Indeed, perhaps I have not yet found the correct library to add. I
> have attempted various -l* additions to MISCLIBS in Makefile.g32 such
> as -lssl and -lcrypto with no success. The compiler seems to have no
> problem finding these libraries or indeed the headers which have been
> placed in C:/MinGW/bin, C:/MinGW/include and C:/MinGW/lib, but the
> errors persist.

I must be getting a little closer, I have added _both_ -lssl and
-lcrypto, which I believe is correct, but with the following error
message:

+-----------
gw32objs/vfile.o gw32objs/xover.o -o slrn.exe -Wl,--subsystem,console -LC:/MinGW/lib -lslang -lwsock32 -lwinspool -liconv -lssl -lcrypto
C:/MinGW/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0xca):undefined reference to `shutdown@8'
C:/MinGW/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x1b1):undefined reference to `shutdown@8'
C:/MinGW/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x287):undefined reference to `WSASetLastError@4'
C:/MinGW/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x30c):undefined reference to `WSASetLastError@4'
C:/MinGW/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x3ae):undefined reference to `WSASetLastError@4'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa0c):undefined reference to `CreateDCA@16'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa19):undefined reference to `CreateCompatibleDC@4'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa2a):undefined reference to `GetDeviceCaps@8'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa3a):undefined reference to `GetDeviceCaps@8'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa50):undefined reference to `CreateCompatibleBitmap@12'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa5e):undefined reference to `SelectObject@8'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa70):undefined reference to `GetObjectA@12'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xae1):undefined reference to `BitBlt@36'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xaeb):undefined reference to `GetBitmapBits@12'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb42):undefined reference to `SelectObject@8'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb49):undefined reference to `DeleteObject@4'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb53):undefined reference to `DeleteDC@4'
C:/MinGW/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb5d):undefined reference to `DeleteDC@4'
collect2: ld returned 1 exit status
mingw32-make: *** [slrn.exe] Error 1
+-----------

Thanks for any advice,

Andrew
-- 
Do you think that's air you're breathing?

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev