dbTalk Databases Forums  

dostats_ng for Windows

comp.databases.informix comp.databases.informix


Discuss dostats_ng for Windows in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dirk Niemeier
 
Posts: n/a

Default dostats_ng for Windows - 07-23-2010 , 04:28 AM






Hi,
I try to compile the Art S. Kagel programm dostats_ng for Windows
without success.
The Makefile sadly isn't compartible with MVC and the CSDK isn't
compatible with cygwin / gcc under Windows.
Does anyone has an suggestion for an solution?

D:\Software.tmp\Informix\utils_ak\Install_utils2_a k>esql dostats_ng.ec
-Di386 -DNOTIMINGS -D_WINDOWS_
IBM Informix CSDK Version 3.50, IBM Informix-ESQL Version 3.50.TC6
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 16.00.30319.01
für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

dostats_ng.c
dostats_ng.ec(164) : warning C4273: 'exit': Inkonsistente DLL-Bindung.
C:\Programme\Microsoft Visual Studio
10.0\VC\INCLUDE\stdlib.h(353): Siehe vorherige Definition von 'exit'
dostats_ng.ec(3800) : warning C4047: '=': Anzahl der Dereferenzierungen
bei 'FILE *' und 'int' unterschiedlich
dostats_ng.ec(4323) : error C2079: 'timep' verwendet undefiniertes
struct 'tm'
esql: error -55904: Error in spawned program.

Where is the "tm" struct defined?

TIA
Dirk





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxJYM8ACgkQmy0BUrETEsU+yACgxfVuQbmIYo hbzI4N82ONk0mA
HvsAn0BQTXrYdfd7JmtOcS0zSV/Vhd2g
=QhwM
-----END PGP SIGNATURE-----

Reply With Quote
  #2  
Old   
Art Kagel
 
Posts: n/a

Default Re: dostats_ng for Windows - 07-23-2010 , 06:34 AM






struct tm is a UNIX time structure it is defined in sys/time.h on most UNIX
systems or in a sub-include that's pulled in by that file. I have never
tried to compile dostats_ng.ec on Windows, so I can't help much. Sorry
Dirk.

Just an idea, compile and run dostats in a Linux VM on the box or run it
remotely from a Linux box or VM.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.



On Fri, Jul 23, 2010 at 5:28 AM, Dirk Niemeier <dirk.niemeier (AT) stueken (DOT) de>wrote:

Quote:
Hi,
I try to compile the Art S. Kagel programm dostats_ng for Windows
without success.
The Makefile sadly isn't compartible with MVC and the CSDK isn't
compatible with cygwin / gcc under Windows.
Does anyone has an suggestion for an solution?

D:\Software.tmp\Informix\utils_ak\Install_utils2_a k>esql dostats_ng.ec
-Di386 -DNOTIMINGS -D_WINDOWS_
IBM Informix CSDK Version 3.50, IBM Informix-ESQL Version 3.50.TC6
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 16.00.30319.01
für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

dostats_ng.c
dostats_ng.ec(164) : warning C4273: 'exit': Inkonsistente DLL-Bindung.
C:\Programme\Microsoft Visual Studio
10.0\VC\INCLUDE\stdlib.h(353): Siehe vorherige Definition von 'exit'
dostats_ng.ec(3800) : warning C4047: '=': Anzahl der Dereferenzierungen
bei 'FILE *' und 'int' unterschiedlich
dostats_ng.ec(4323) : error C2079: 'timep' verwendet undefiniertes
struct 'tm'
esql: error -55904: Error in spawned program.

Where is the "tm" struct defined?

TIA
Dirk





_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #3  
Old   
Jonathan Leffler
 
Posts: n/a

Default Re: dostats_ng for Windows - 07-24-2010 , 10:20 PM



On 7/23/10 4:34 AM, Art Kagel wrote:
Quote:
struct tm is a UNIX time structure it is defined in sys/time.h on most
UNIX systems or in a sub-include that's pulled in by that file. I have
never tried to compile dostats_ng.ec <http://dostats_ng.ec> on Windows,
so I can't help much. Sorry Dirk.

Just an idea, compile and run dostats in a Linux VM on the box or run it
remotely from a Linux box or VM.

Actually, struct tm is defined by '#include <time.h>' according to the C
standard (both C89 and C99).

I'm not even sure what's in <sys/time.h> that isn't available via
<time.h> - I know that the Autoconf system makes a big song and dance
about whether you can use both headers safely, but I've never needed
<sys/time.h>.

The exit() function is declared in <stdlib.h> (which needs to be
included where exit() is used).


Quote:
On Fri, Jul 23, 2010 at 5:28 AM, Dirk Niemeier <dirk.niemeier (AT) stueken (DOT) de
mailto:dirk.niemeier (AT) stueken (DOT) de>> wrote:

Hi,
I try to compile the Art S. Kagel programm dostats_ng for Windows
without success.
The Makefile sadly isn't compartible with MVC and the CSDK isn't
compatible with cygwin / gcc under Windows.
Does anyone has an suggestion for an solution?

D:\Software.tmp\Informix\utils_ak\Install_utils2_a k>esql
dostats_ng.ec <http://dostats_ng.ec
-Di386 -DNOTIMINGS -D_WINDOWS_
IBM Informix CSDK Version 3.50, IBM Informix-ESQL Version 3.50.TC6
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 16.00.30319.01
für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

dostats_ng.c
dostats_ng.ec <http://dostats_ng.ec>(164) : warning C4273: 'exit':
Inkonsistente DLL-Bindung.
C:\Programme\Microsoft Visual Studio
10.0\VC\INCLUDE\stdlib.h(353): Siehe vorherige Definition von 'exit'
dostats_ng.ec <http://dostats_ng.ec>(3800) : warning C4047: '=':
Anzahl der Dereferenzierungen
bei 'FILE *' und 'int' unterschiedlich
dostats_ng.ec <http://dostats_ng.ec>(4323) : error C2079: 'timep'
verwendet undefiniertes
struct 'tm'
esql: error -55904: Error in spawned program.

Where is the "tm" struct defined?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.