Windows slrn: undefined reference to `SSL_read'

andrew <[email protected]> Wed, 10 Nov 2010 17:22:45 +1100
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hi,

I am attempting to compile the subversion slrn against openssl under
the 32bit Windows 7 and MinGW32. At the moment I am using the openssl
libraries available from:

http://gnuwin32.sourceforge.net/packages/openssl.htm

After altering slrnconf.h as follows:

#define SLRN_HAS_SSL_SUPPORT    1

I consistently get the following error when I run the command:

mingw32-make -f makefile.g32

+---------------
gw32objs/server.o:server.c:(.text+0x2e2c): undefined reference to `SSL_read'
gw32objs/server.o:server.c:(.text+0x2e3c): undefined reference to `SSL_get_error'
gw32objs/server.o:server.c:(.text+0x2f41): undefined reference to `SSL_write'
gw32objs/server.o:server.c:(.text+0x2f54): undefined reference to `SSL_get_error'
gw32objs/server.o:server.c:(.text+0x2ffa): undefined reference to `SSL_free'
gw32objs/server.o:server.c:(.text+0x3013): undefined reference to `SSL_CTX_free'
gw32objs/server.o:server.c:(.text+0x3098): undefined reference to `ERR_error_string'
gw32objs/server.o:server.c:(.text+0x30ad): undefined reference to `ERR_get_error'
gw32objs/server.o:server.c:(.text+0x36b9): undefined reference to `SSL_new'
gw32objs/server.o:server.c:(.text+0x370f): undefined reference to `SSL_set_fd'
gw32objs/server.o:server.c:(.text+0x371d): undefined reference to `SSL_connect'
gw32objs/server.o:server.c:(.text+0x3735): undefined reference to `SSL_get_error'
gw32objs/server.o:server.c:(.text+0x37ee): undefined reference to `SSL_library_init'
gw32objs/server.o:server.c:(.text+0x37f3): undefined reference to `SSLv23_client method'
gw32objs/server.o:server.c:(.text+0x37fb): undefined reference to `SSL_CTX_new'
gw32objs/server.o:server.c:(.text+0x3802): undefined reference to `SSL_load_error_strings'
gw32objs/server.o:server.c:(.text+0x3821): undefined reference to `RAND_status'
gw32objs/server.o:server.c:(.text+0x3855): undefined reference to `RAND_seed'
gw32objs/server.o:server.c:(.text+0x3865): undefined reference to `RAND_seed'
gw32objs/server.o:server.c:(.text+0x3879): undefined reference to `RAND_bytes'
gw32objs/server.o:server.c:(.text+0x38be): undefined reference to `RAND_seed'
gw32objs/server.o:server.c:(.text+0x38c3): undefined reference to `RAND_status'
gw32objs/server.o:server.c:(.text+0x38cc): undefined reference to `RAND_status'
collect2: ld returned 1 exit status
mingw32-make: *** [slrn.exe] Error 1
+----------------

The rest of my Windows setup is documented here:

http://andrews-corner.org/slrn-windows.html

I have a deep suspicion that I am missing some basic part of the
openssl/slrn setup and I would be grateful for any direction.

Thanks,

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

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev