Hi

        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. (please see the attachment)

        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:


/*------------------- the making processes and the 
erros-----------------------------*/
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                                                     
                                               
/*------------------------------ the making processes 
end---------------------------------*/


Has Anyone  faced these problems with MinGW/MSYS in windows platform, or If 
anyone has the lzo lib that can make successfully in windows platform, please 
send it to me(dehua...@sjtu.edu.cn), thanks a lot!
        
                           deward


Reply via email to