|
|
Hi
I don't konw the e-mail of mailiing lists, so I send the following to you. If it is not right place, please tell me or send the following to the right place. Thanks a lot!
I build the source codes of OpenVPN on Window XP, the lzo is in H:\vpn-build\lzo-1.08. The include directory under lzo-1.08 contains lzo.h,lzoconf.h,lzoutil.h lzo1.h, ... The lib directory under lzo-1.08 contains liblzo.a and libliz.la.
So I set "LZO = /h/vpn-build/lzo-1.08","LIB_DIRS = -L${OPENSSL}/lib/MinGW -L${LZO}/lib","INCLUDE_DIRS = -I${OPENSSL}/include -I${LZO}/include" in the makefile.w32. Note the openssl is ok when building.
when I build the codes with 'make -f makefile.w32', I face the following errors:
H:\vpn\sourcecode\windows\openvpn-2.0>make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -o openvpn.exe base64.o buffer.o crypto.o cryptoapi.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o openvpn.o options.o otime.o packet_id.o perf.o ping.o plugin.o pool.o proto.o proxy.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o win32.o -L/h/vpn-build/OpenSSL/lib/MinGW -L/h/vpn-build/lzo-1.08/lib -lssl32 -leay32 -llzo -lcrypt32 -lws2_32 -lgdi32 -liphlpapi -lwinmm
lzo.o(.text+0xbd): In function `lzo_compress_init': H:/vpn/sourcecode/windows/openvpn-2.0/lzo.c:112: undefined reference to `__lzo_init2' lzo.o(.text+0xcc):H:/vpn/sourcecode/windows/openvpn-2.0/lzo.c:114: undefined reference to `lzo_malloc'
lzo.o(.text+0x164): In function `lzo_compress_uninit': H:/vpn/sourcecode/windows/openvpn-2.0/lzo.c:124: undefined reference to `lzo_free' lzo.o(.text+0x2bc): In function `lzo_compress': H:/vpn/sourcecode/windows/openvpn-2.0/lzo.c:155: undefined reference to `lzo1x_1_15_compress' lzo.o(.text+0x69a): In function `lzo_decompress': H:/vpn/sourcecode/windows/openvpn-2.0/lzo.c:209: undefined reference to `lzo1x_decompress_safe'
collect2: ld returned 1 exit status
make: *** [dynamic] Error 1
these functions of lzo_init.h,lzo_malloc.h and so on are included, but why do these errors occur? I am looking foward to your answer!
dehua zang
dehua999@xxxxxxxxxxx
2005-05-31
???????????????????????甸?X?????j(?懋?r)??t??
朕?^???????.???t?? ?)茛??ü僻n瑗u???????㈥杪p)??亘??拳?i??鳐??&、?z?~}???,?贳m4??????????????????:???朕??)?+-:???朕?b槽??q玷???囤l????.?????X?襄?b???Ь?u朕
|