[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

failed on zlib when build svn on Windows

From: Justin Peng <justin.peng.sw_at_gmail.com>
Date: Sat, 26 Mar 2011 17:53:43 +0800

Hi, everyone.

Now I have been in trouble with building SVN on windows. After hours
work, I'v found there are some out-of-date part in the current install
and it's not easy a new comer to build it on Windows. Now I'm
perplexed by "msdev subversion_msvc.dsw /USEENV /MAKE "__ALL_TESTS__ -
Win32 Release"".

With the zlib-1.2.3, I got:
"

D:\SVN\src-trunk>msdev subversion_msvc.dsw /USEENV /MAKE "__ALL_TESTS__ - Win32
Release"
--------------------Configuration: zlib - Win32 Release--------------------
nmake /f win32\Makefile.msc STATICLIB=zlibstat.lib zlibstat.lib
 cl -c -nologo -MD -O2 adler32.c
adler32.c
zconf.h(289) : fatal error C1083: Cannot open include file: 'unistd.h': No such
file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
--------------------Configuration: libsvn_subr_dll - Win32 Release--------------
------
Build : warning : failed to (or don't know how to) build 'D:\SVN\zlib\zlibstat.l
ib'

Linking...
LINK : fatal error LNK1181: cannot open input file "zlibstat.lib"
Error executing link.exe.

__ALL_TESTS__ - 3 error(s), 1 warning(s)"

It seems zlibstat.lib hasn't built successfully when zlib-1.2.3 is
used. When use zlib-1.2.5 instead, I got errors below:
"D:\SVN\src-trunk>msdev subversion_msvc.dsw /USEENV /MAKE "__ALL_TESTS__ - Win32
Release"
--------------------Configuration: zlib - Win32 Release--------------------
nmake /f win32\Makefile.msc STATICLIB=zlibstat.lib zlibstat.lib
'zlibstat.lib' is up-to-date
--------------------Configuration: libsvn_subr_dll - Win32 Release--------------
------
Linking...
.\libsvn_subr.def : warning LNK4087: CONSTANT keyword is obsolete; use DATA
   Creating library ..\..\..\Release\subversion\libsvn_subr/libsvn_subr-1.lib an
d object ..\..\..\Release\subversion\libsvn_subr/libsvn_subr-1.exp
zlibstat.lib(inflate.obj) : error LNK2001: unresolved external symbol _inflate_f
ast
..\..\..\Release\subversion\libsvn_subr\libsvn_subr-1.dll : fatal error LNK1120:
 1 unresolved externals
Error executing link.exe.

__ALL_TESTS__ - 2 error(s), 1 warning(s)

D:\SVN\src-trunk>"

Link erorrs occur on zlib-1.2.5.

I have spent 3 hours on it, but can not make progress. Could anyone
give me some help, please? Thanks very much!

Regards

-- 
Justin Peng
Received on 2011-03-26 10:54:18 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.