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 | Thread Next
From:
SADAHIRO Tomoyuki
Date:
May 1, 2006 05:30
Subject:
Re: [PATCH] fix 27987 for MSVC (was Re: Smoke [5.9.4] 28020 FAIL(m) MSWin32 Win2000 SP4 (x86/1 cpu))
Message ID:
20060501213249.814E.BQW10602@nifty.com

> > > '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.


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



Thread Previous | Thread Next


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