curl-users
[ curl-Bugs-578648 ] W98SE VC6 curl 7.9.8 - no timeGetTime
Date: Mon, 08 Jul 2002 05:28:38 -0700
Bugs item #578648, was opened at 2002-07-08 05:28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=578648&group_id=976
Category: compile or build problem
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: W98SE VC6 curl 7.9.8 - no timeGetTime
Initial Comment:
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src> curl -V
curl 7.9.8 (win32) libcurl 7.9.8
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src>
I am Walter Briscoe mailto:w.briscoe_at_ponl.com.
I downloaded the tarball; skimmed README and
doc/INSTALL and looked at MAKEFILE.
I built the library and ran the following command:
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src>
nmake -f Makefile.vc6 debug
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src> nmake -f
Makefile.vc6 debug
Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights
reserved.
cl.exe /MDd /Gm /ZI /Od /D "_DEBUG" /GZ /I "../include" /
nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS"
/YX /FD /c /Zm200 hugehelp.c
[snip]
cl.exe /MDd /Gm /ZI /Od /D "_DEBUG" /GZ /I "../include" /
nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS"
/YX /FD /c main.c
main.c
c:\wfb\url\http\curl.haxx.se\curl-7.9.8\src\main.c
(1890) : warning C4244: 'initializing' : conversion
from 'double ' to 'unsigned int ', possible loss of data
c:\wfb\url\http\curl.haxx.se\curl-7.9.8\src\main.c
(1897) : warning C4244: 'initializing' : conversion
from 'double ' to 'int ', possible loss of data
c:\wfb\url\http\curl.haxx.se\curl-7.9.8\src\main.c
(1898) : warning C4244: 'initializing' : conversion
from 'double ' to 'int ', possible loss of data
link.exe /incremental:yes /debug /libpath:"../lib" /nologo
/out:curl.exe /subsystem:console /machine:I386
ws2_32.lib libcurld.lib hugehelp.obj writeout.obj
urlglob.obj main.obj
libcurld.lib(timeval.obj) : error LNK2001: unresolved
external symbol __imp__timeGetTime_at_0
curl.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'D:\PF\MVS\VC98
\BIN\link.exe' : return code '0x460' Stop.
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src>
The following silences cl.exe:
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src> diff -c
0main.c main.c
*** 0main.c Tue Jun 11 16:10:40 2002
--- main.c Mon Jul 8 12:22:50 2002
***************
*** 1887,1901 ****
int i;
struct ProgressData *bar = (struct ProgressData *)
clientp;
! size_t total = dltotal + ultotal;
bar->point = dlnow + ulnow; /* we've come this far
*/
bar->calls++; /* simply count invokes */
if(0 == total) {
! int prevblock = bar->prev / 1024;
! int thisblock = bar->point / 1024;
while ( thisblock > prevblock ) {
fprintf( bar->out, "#" );
prevblock++;
--- 1887,1901 ----
int i;
struct ProgressData *bar = (struct ProgressData *)
clientp;
! size_t total = (size_t)(dltotal + ultotal);
bar->point = dlnow + ulnow; /* we've come this far
*/
bar->calls++; /* simply count invokes */
if(0 == total) {
! int prevblock = (int)(bar->prev / 1024);
! int thisblock = (int)(bar->point / 1024);
while ( thisblock > prevblock ) {
fprintf( bar->out, "#" );
prevblock++;
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\src>
The bad news is that I do not know how to control the
generation of the diagnostic in the following:
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\lib> nmake -f
makefile.vc6 cfg=debug
Microsoft (R) Program Maintenance Utility Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights
reserved.
link.exe -lib /out:libcurld.lib /nologo ws2_32.lib
winmm.lib .\debug\base64.obj .\debug\cookie.obj .\deb
ug\transfer.obj .\debug\escape.obj .\debug\formdata.o
bj .\debug\ftp.obj .\debug\http.obj .\debug\http_chunk
s.obj .\debug\ldap.obj .\debug\dict.obj .\debug\telnet.o
bj .\debug\getdate.obj .\debug\getenv.obj .\debug\get
pass.obj .\debug\hostip.obj .\debug\if2ip.obj .\debug\
mprintf.obj .\debug\netrc.obj .\debug\progress.obj .\d
ebug\sendf.obj .\debug\speedcheck.obj .\debug\ssluse.
obj .\debug\timeval.obj .\debug\url.obj .\debug\file.obj
.\debug\getinfo.obj .\debug\version.obj .\debug\easy.
obj .\debug\strequal.obj .\debug\strtok.obj .\debug\co
nnect.obj .\debug\hash.obj .\debug\llist.obj .\debug\m
ulti.obj
winmm.lib(WINMM.dll) : warning LNK4006:
__NULL_IMPORT_DESCRIPTOR already defined
in ws2_32.lib(WS2_32.dll); second definition ignored
C:\wfb\url\http\curl.haxx.se\curl-7.9.8\lib>
timeGetTime is something I will use in my own code
where I currently use GetLocalTime.
Thanks to those responsible for curl.
Walter
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=578648&group_id=976
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
Received on 2002-07-08