I attempted to build Tor 0.3.2.2-alpha with mingw32, but it's giving me the following message:
configure: Now, we'll look for OpenSSL >= 1.0.1checking for openssl directory... configure: WARNING: Could not find a linkable openssl. If you have it installed somewhere unusual, you can specify an explicit path using --with-openssl-dirconfigure: error: Missing libraries; unable to proceed.
The previous versions of Tor didn't have this error. The last version I successfully built was 0.3.1.5-alpha. I'm guessing that it has something to do with TLSv1_1_method() because it's detecting the 1.0.0 version of openssl that is built in with mingw32 and not the 1.0.2l version I installed. The previous versions always detected the new version of openssl I installed so I'm not sure why it can't detect it now. I even tried reinstalling openssl, but I'm still receiving the same message above. Please help. Thanks.
Trac: Username: Bizarre™
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
What paths are these OpenSSL libraries installed in?
configure:9264: gcc -o conftest.exe -g -O2 -I/usr/local/ssl/include -I${top_srcdir}/src/common -L/usr/local/ssl/lib conftest.c -lpthread -lssl -lcrypto -lgdi32 >&5C:/MinGW/msys/1.0/local/ssl/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x12f): undefined reference to `shutdown@8'C:/MinGW/msys/1.0/local/ssl/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x13d): undefined reference to `closesocket@4'C:/MinGW/msys/1.0/local/ssl/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x16d): undefined reference to `WSASetLastError@4'C:/MinGW/msys/1.0/local/ssl/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x18d): undefined reference to `recv@16'C:/MinGW/msys/1.0/local/ssl/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x1c9): undefined reference to `WSAGetLastError@0'...collect2.exe: error: ld returned 1 exit status
Either we used to do a check for the OpenSSL binary path, and we're skipping it, or we used to pass the right libraries on mingw32, and we don't any more.
@arma: Yes, that's it. In the previous versions, I didn't see the function referring to TLSv1_1_method(), so I was able to build Tor successfully.
@teor: The path you quoted is the 1.0.2l version. However, there's also a built in version of 1.0.0 (C:\MinGW\msys\1.0\bin\openssl.exe). This is most likely the file that Tor detects.
I already tried uninstalling the built in version, but the issue persists.
The configure test has found the correct OpenSSL, but the linker command line appears to missing the winsock library "Ws2_32", which is a dependency of libcrypto.
Hi, teor. Thanks for the update. I'll try building Tor again (as I can see a new version in the distro) and post the result here once I'm finished.
Update:
Oops, it looks like I jumped the gun because I'm still getting the same error. I thought the patch was already implemented in Tor 0.3.2.4-alpha. LOL. Anyway, I'll wait for the next version.
Sorry about that, adding the dependency was just my suggestion.
I'm not familiar enough with Windows and our configure script to be sure it will fix this, but we should give it a shot.
If someone puts a patch in a git branch, can you test if it compiles and runs?
It would help us to know whether the patch is enough.
Trac: Points: N/Ato 0.5 Keywords: N/Adeleted, mingw, windows added
You don't have to say if you are but if you are we would like to let you know that
there is a problem with the relay at that IP, because it re-keys frequently and is is not very useful to tor clients.
I'm trying to reach the operator via this ticket here because the relay in question has no contact info set.
Sorry for using this ticket if it is unrelated to you.