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

Re: Compiling with VC2012

From: Mario Brandt <jblond_at_gmail.com>
Date: Tue, 13 Aug 2013 22:47:50 +0200

How it worked:

open zlib\win32\Makefile.msc replace line 31 with
ASFLAGS = -coff -Zi -safeseh $(LOC)

Thanks for the tip!

Mario

On 13 August 2013 17:18, Mario Brandt <jblond_at_gmail.com> wrote:

> Hi Bert,
>
> how can I enable that in zlib?
>
>
> Cheers
> Mario
>
> On 13 August 2013 13:57, Bert Huijben <bert_at_qqmail.nl> wrote:
> > VS2012 tries to enable table based exception handling, but your zlib
> > was compiled without the flags to enable that. You can also disable
> > this mode in the linker/compiler at a very small performance and
> > security cost.
> >
> > Vs2008 didn't warn for this as it was very common to fail this test at
> > the time it was released.
> >
> > Bert
> > (mobile phone) From: Mario Brandt
> > Sent: 13/08/2013 12:50
> > To: Subversion Development
> > Subject: Compiling with VC2012
> > Hi,
> >
> > I try to compile svn against Apache 2.4.6. That worked with VC2008,
> > but with VC2012 I get a lot of "zlibstat.lib(inffas32.obj) : error
> > LNK2026: module unsafe for SAFESEH image" errors.
> > What is the correct way to get it compiling?
> >
> > What I did
> >
> > C:\python27\python gen-make.py --release -t vcproj
> > --with-apr=C:\build\httpd-2.4.6\srclib\apr
> > --with-apr-util=C:\build\httpd-2.4.6\srclib\apr-util
> > --with-apr-iconv=C:\build\httpd-2.4.6\srclib\apr-iconv
> > --with-serf=C:\build\subversion-1.8.1-ap24-x86\serf
> > --with-httpd=C:\build\httpd-2.4.6
> > --with-openssl=C:\build\httpd-2.4.6\srclib\openssl
> > --with-zlib=C:\build\subversion-1.8.1-ap24-x86\zlib
> > --vsnet-version=2012
> >
> > 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"
> >
> >
> > Open sln with GUI.
> >
> > Cheers
> > Mario
>
Received on 2013-08-13 22:48:23 CEST

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.