develooper Front page | perl.perl5.porters | Postings from May 2006

Re: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m)MSWin32 Win2000 SP4 (x86/1 cpu))

Thread Previous
From:
H.Merijn Brand
Date:
May 1, 2006 05:57
Subject:
Re: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m)MSWin32 Win2000 SP4 (x86/1 cpu))
Message ID:
20060501145830.79cf4230@pc09
On Mon, 01 May 2006 21:34:33 +0900, SADAHIRO Tomoyuki <bqw10602@nifty.com>
wrote:

> 
> > > > 'vsnprintf' undefined; assuming extern returning int universal.obj : error
> > > > LNK2001: unresolved external symbol _snprintf util.obj : error LNK2001:
> > > > unresolved external symbol _snprintf
> > > > pp_ctl.obj : error LNK2001: unresolved external symbol _snprintf
> > > > regcomp.obj : error LNK2001: unresolved external symbol _snprintf
> > > > sv.obj : error LNK2001: unresolved external symbol _snprintf
> > > > toke.obj : error LNK2001: unresolved external symbol _snprintf
> > > > perlio.obj : error LNK2001: unresolved external symbol _vsnprintf
> > > > ..\miniperl.exe : fatal error LNK1120: 2 unresolved externals
> > > 
> > > It looks like MSVC doesn't provide these, so here's a fix for #27987
> > 
> > Thanks, part 1 applied as change #28026
> > Part two was already in fix #28024
> 
> Now HAS_SNPRINTF and HAS_VSNPRINTF are commented out in config.vc64
> but d_snprintf and d_vsnprintf are still defined in config_H.vc64.
> Thus the configure for win32/vc64 is confused.

Unconfused in #28036. Thanks

> diff -ur perl~/win32/config.vc64 perl/win32/config.vc64
> --- perl~/win32/config.vc64	Thu Mar 30 21:34:05 2006
> +++ perl/win32/config.vc64	Mon May 01 21:24:38 2006
> @@ -409,7 +409,7 @@
>  d_sigprocmask='undef'
>  d_sigsetjmp='undef'
>  d_sitearch='define'
> -d_snprintf='define'
> +d_snprintf='undef'
>  d_sockatmark='undef'
>  d_sockatmarkproto='undef'
>  d_socket='define'
> @@ -491,7 +491,7 @@
>  d_voidtty=''
>  d_volatile='define'
>  d_vprintf='define'
> -d_vsnprintf='define'
> +d_vsnprintf='undef'
>  d_wait4='undef'
>  d_waitpid='define'
>  d_wcstombs='define'
> 
> 
> [related changes]
> Change 28024: win32/config_H.bc, gc, vc, and vc64.
>    HAS_SNPRINTF and HAS_VSNPRINTF are commented out.
> 
> Change 28025: win32/config_H.bc and gc
>    HAS_SNPRINTF and HAS_VSNPRINTF come back.
> 
> Change 28026: win32/config.vc
>    d_snprintf and d_vsnprintf are undefined.
> 
> Regards,
> SADAHIRO Tomoyuki
> 
> 
> 


-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using & porting perl 5.6.2, 5.8.x, 5.9.x  on HP-UX 10.20, 11.00, 11.11,
& 11.23, SuSE 10.0, AIX 4.3 & 5.2, and Cygwin.       http://qa.perl.org
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org
                       http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About