Link problem with openssl 0.9.8e

Li-Hui Zhou lhzhou at yeah.net
Fri Apr 13 08:54:11 UTC 2007


Hi:

There's link errors when I tried to compile the latest rev.9946 with
MinGW. The error message read:

gcc  -g -O2 -Wall -g -O2   -o tor.exe  buffers.o circuitbuild.o
circuitlist.o circuituse.o command.o config.o connection.o
connection_edge.o connection_or.o control.o cpuworker.o directory.o
dirserv.o dns.o hibernate.o main.o onion.o policies.o relay.o
rendcommon.o rendclient.o rendmid.o rendservice.o rephist.o router.o
routerlist.o routerparse.o eventdns.o tor_main.o ../common/libor.a
../common/libor-crypto.a -levent -lws2_32 -lssl -lcrypto -lgdi32 -lz
c:/Gnu/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../libcrypto.a(bss_sock.o)(.text+0xca):bss_sock.c: undefined reference to `shutdown at 8'
c:/Gnu/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../libcrypto.a(bss_sock.o)(.text+0x1b1):bss_sock.c: undefined reference to `shutdown at 8'
c:/Gnu/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../libcrypto.a(bss_sock.o)(.text+0x287):bss_sock.c: undefined reference to `WSASetLastError at 4'
c:/Gnu/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../libcrypto.a(bss_sock.o)(.text+0x30c):bss_sock.c: undefined reference to `WSASetLastError at 4'
c:/Gnu/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../libcrypto.a(bss_sock.o)(.text+0x3ae):bss_sock.c: undefined reference to `WSASetLastError at 4'
collect2: ld returned 1 exit status


It's wierd that was related to openssl lib. I was using the latest
openssl 0.9.8e


-- 
Li-Hui Zhou <lhzhou at yeah.net>




More information about the tor-talk mailing list