A follow-up: We have succeeded in getting a mostly-working build of tcnative-1.dll using the /MT compile option on APR and tcnative, and linking to openssl built from scratch (also with /MT), all using VS2010. Oddly, this build crashes if SSLCACertificatePath is defined in server.xml but SSLCACertificateFile is not. Our build is different from the build distributed by apache in that either both or neither of these parameters must be set. Otherwise, it seems to work.
-John -----Original Message----- From: John Wilkinson Sent: November-16-11 4:02 PM To: 'users@tomcat.apache.org' Subject: How do I build tomcat native for windows x64? Hello, I would like to build tcnative-1.dll or libtcnative-1.dll for 64-bit windows from source (my goal is twofold: to try a newer APR version, and to debug a crash we are seeing in the native connector with ssl). Either dll will do. I am currently using Visual Studio 2010 on Windows 7 64-bit, Tomcat 6.0.33, Java 6. The builds succeed, but the resulting dll fails in one of two ways when tomcat starts: - the static (tcnative) version crashes during startup on an error on a call to open a file; some debugging shows that the filename starts as "" but ends up as a null pointer, apparently as it is passed from SSL_add_file_cert_subjects_to_stack() to BIO_ctrl(), which are both in openssl - the dynamic (libtcnative) version (along with libapr-1.dll, libeay32.dll, and ssleay32.dll all in <tomcat>\bin) shuts down immediately after startup with the error "no OPENSSL_Applink"; I have tried adding <openssl>\include\openssl\applink.c to the libtcnative project, to the libapr project, and even adding it as an include in a libtcnative source file, all to no effect At this point, I'm baffled. I have tried to match build types (e.g. /MD with libeay32MD.lib) based on the openssl faq (http://www.openssl.org/support/faq.html [prog]1), and tried various combinations of libraries. How does the tomcat project do this for tcnative releases? Thanks, John --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org