++ Compilling SVN on WIndows ++

63 views
Skip to first unread message

Victor Medina

unread,
Sep 30, 2011, 4:23:30 PM9/30/11
to us...@subversion.apache.org
Hi guys!
 
Any one can help me? Be trying to compile latest Subversion on Windows, VS8 + SP1, 32bits. It's seems that cannot link against zlib, but zlib is just ok it seams.
 
Here is the output:
 

------ Build started: Project: zlib, Configuration: Release Win32 ------

Performing Makefile project actions

nmake /f win32\Makefile.msc CFLAGS="/nologo /W3 /FD /GX /DWIN32 /D_WINDOWS /MD /O2 /Zi $(LOC)" STATICLIB=zlibstat.lib zlibstat.lib

'zlibstat.lib' is up-to-date

Build log was saved at "file://c:\source\httpd\srclib\zlib\Release\BuildLog.htm"

zlib - 0 error(s), 0 warning(s)

------ Build started: Project: libsvn_subr_dll, Configuration: Release Win32 ------

Linking...

.\libsvn_subr.def(96) : warning LNK4087: CONSTANT keyword is obsolete; use DATA

Creating library .\..\..\..\Release\subversion\libsvn_subr/libsvn_subr-1.lib and object .\..\..\..\Release\subversion\libsvn_subr/libsvn_subr-1.exp

zlibstat.lib(inflate.obj) : error LNK2019: unresolved external symbol _inflate_fast referenced in function _inflate

..\..\..\Release\subversion\libsvn_subr\libsvn_subr-1.dll : fatal error LNK1120: 1 unresolved externals

Build log was saved at "file://C:\source\httpd\srclib\subversion\Release\subversion\libsvn_subr\BuildLog.htm"

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

------ Build started: Project: libsvn_delta_dll, Configuration: Release Win32 ------

Linking...

Creating library .\..\..\..\Release\subversion\libsvn_delta/libsvn_delta-1.lib and object .\..\..\..\Release\subversion\libsvn_delta/libsvn_delta-1.exp

zlibstat.lib(inflate.obj) : error LNK2019: unresolved external symbol _inflate_fast referenced in function _inflate

..\..\..\Release\subversion\libsvn_delta\libsvn_delta-1.dll : fatal error LNK1120: 1 unresolved externals

Build log was saved at "file://c:\source\httpd\srclib\subversion\Release\subversion\libsvn_delta\BuildLog.htm"

libsvn_delta_dll - 2 error(s), 0 warning(s)

========== Build: 1 succeeded, 2 failed, 3 up-to-date, 0 skipped ==========

 

 

 

Sin mas a que hacer referencia,


___________________________________

Víctor Medina

Centro Médico Guerra Méndez - Jefe de Soporte y Tecnologías

Departamento de Sistemas

Telf: +58241 856 1223 Ext. 1223

Cell: +58424 422 8988

BB Pin: 22A7C718

correo-e: jefede...@cmgm.com.ve



{Castellano/Spanish} Aviso de exención de responsabilidad:
Toda la información y los adjuntos en este mensaje es confidencial y privilegiada. Solamente los destinatarios están autorizados para usar esta información. Las transmisiones de correos electrónicos no están garantizadas y no son seguras o libres de errores y la empresa no acepta responsabilidad por error u omisiones. La empresa no acepta ninguna responsabilidad con respecto a cualquier comunicación que haya sido emitida incumpliendo nuestra política de e-mail.
Reportar cualquier uso indebido de correo a: ab...@cmgm.com.ve
Cumplimos con el RFC 2142 (http://www.rfc-editor.org/rfc/rfc2142.txt)

{English/Inglés} E-mail disclaimer:
All information in this message and attachments is confidential and may be legally privileged. Only intended recipients are authorized to use it. E-mail transmissions are not guaranteed to be secure or error free and sender does not accept liability for such errors or omissions. The company will not accept any liability in respect of such communication that violates our e-Mail Policy.
Report any abuse to: ab...@cmgm.com.ve
We are RFC 2142 compliant (http://www.rfc-editor.org/rfc/rfc2142.txt)

Mark Phippard

unread,
Sep 30, 2011, 4:27:38 PM9/30/11
to Victor Medina, us...@subversion.apache.org
On Fri, Sep 30, 2011 at 4:23 PM, Victor Medina
<jefede...@cmgm.com.ve> wrote:
> Hi guys!
>
> Any one can help me? Be trying to compile latest Subversion on Windows, VS8
> + SP1, 32bits. It's seems that cannot link against zlib, but zlib is just
> ok it seams.

I have the same problem when using zlib 1.2.5. I believe there is an
answer, I just do not know what it is so I use zlib 1.2.4 and it seems
to work.


--
Thanks

Mark Phippard
http://markphip.blogspot.com/

Victor Medina

unread,
Sep 30, 2011, 4:35:34 PM9/30/11
to Mark Phippard, us...@subversion.apache.org
wow! thanks for such a fast answer! I'll take a look later on, again thanks for such a fast answer.

Sin mas a que hacer referencia,

___________________________________
Víctor Medina
Centro Médico Guerra Méndez - Jefe de Soporte y Tecnologías
Departamento de Sistemas
Telf: +58241 856 1223 Ext. 1223
Cell: +58424 422 8988
BB Pin: 22A7C718
correo-e: jefede...@cmgm.com.ve

________________________________________
De: Mark Phippard [mark...@gmail.com]
Enviado el: viernes, 30 de septiembre de 2011 3:57 p.m.
Para: Victor Medina
CC: us...@subversion.apache.org
Asunto: Re: ++ Compilling SVN on WIndows ++


--
Thanks

Mark Phippard
http://markphip.blogspot.com/

{Castellano/Spanish} Aviso de exención de responsabilidad:

Joel Low

unread,
Sep 30, 2011, 7:15:52 PM9/30/11
to Victor Medina, Mark Phippard, us...@subversion.apache.org
Please see the short patch appended at the end of my message, it seems that the MSVC makefiles were not updated. This has not been verified against the zlib devs though (but the binaries work.)

Regards,
Joel

Index: Makefile.msc
===================================================================
--- Makefile.msc (revision 1150)
+++ Makefile.msc (revision 1151)
@@ -31,7 +31,7 @@

OBJS = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj \
gzwrite.obj infback.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
-OBJA =
+OBJA = inffast.obj


# targets
@@ -73,9 +73,9 @@
$(CC) -c $(WFLAGS) $(CFLAGS) $<

{contrib/masmx64}.c.obj:
- $(CC) -c $(WFLAGS) $(CFLAGS) $<
+ $(CC) -c -I. $(WFLAGS) $(CFLAGS) $<

-{contrib/masmx64}.asm.obj:
+{contrib/masmx64}.asm64.obj:
$(AS) -c $(ASFLAGS) $<

{contrib/masmx86}.asm.obj:
@@ -114,9 +114,9 @@

zutil.obj: zutil.c zutil.h zlib.h zconf.h

-gvmat64.obj: contrib\masmx64\gvmat64.asm
+gvmat64.obj: contrib\masmx64\gvmat64.asm64

-inffasx64.obj: contrib\masmx64\inffasx64.asm
+inffasx64.obj: contrib\masmx64\inffasx64.asm64

inffas8664.obj: contrib\masmx64\inffas8664.c zutil.h zlib.h zconf.h \
inftrees.h inflate.h inffast.h

Mario Brandt

unread,
Oct 1, 2011, 6:35:49 PM10/1/11
to Joel Low, Victor Medina, Mark Phippard, us...@subversion.apache.org
Hi,
there is a bit more than just inffast.obj

Without the patch I build it this way (x86):
--- snip ---
C:\python27\python gen-make.py -t vcproj --vsnet-version=2008
--with-httpd=C:\build\httpd-2.2.19-sni6-x86
--with-openssl=C:\build\httpd-2.2.19-sni6-x86\srclib\openssl
--with-zlib=C:\build\subversion-1.7.0-rc3-x86\zlib
--with-apr=C:\build\httpd-2.2.19-sni6-x86\apr

Open generated build\win32\vcnet-vcproj\build_zlib.bat and insert at
line 67 (before "set BUILD_OPTS=..." line):
set ASM_OPTS=LOC="-DASMV -DASMINF -I." OBJA="inffas32.obj match686.obj"

jump right to the end, the magic solution is to add "/D XML_STATIC" to
EXPAT_FLAGS in neon\neon.mak, line 57

OPEN IDE
--- /snip ---

For a x64 build
--- snip ---
C:\python27\python gen-make.py -t vcproj --vsnet-version=2008
--with-httpd=C:\build\httpd-2.2.19-sni6-x64
--with-openssl=C:\build\httpd-2.2.19-sni6-x64\srclib\openssl
--with-zlib=C:\build\subversion-1.7.0-rc3-x64\zlib
--with-apr=C:\build\subversion-1.6.17-x64\apr

Open generated build\win32\vcnet-vcproj\build_zlib.bat and insert at
line 67 (before "set BUILD_OPTS=..." line):
set ASM_OPTS=AS=ml64 LOC="-DASMV -DASMINF -I." OBJA="inffasx64.obj
gvmat64.obj inffas8664.obj"

jump right to the end, the magic solution is to add "/D XML_STATIC" to
EXPAT_FLAGS in neon\neon.mak, line 57

OPEN IDE
--- /snip ---


Cheers
Mario

Reply all
Reply to author
Forward
0 new messages