Zach Dennis
2005-May-01 15:28 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
I get the following error when trying to compile: win32-changejournal-0.2.0-1 on: Windows 2000, Service Pack 4 Microsoft Visual Studio 6 Any ideas? Thanks, Zach ----- ERROR BELOW----- C:\unzipped\win32-changejournal-0.2.0-1\win32-changejournal-0.2.0>nmake Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl -nologo -MD -Zi -O2b2xg- -G6 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -I. -I./.. -I./../missing -D_WIN32_WINN T=0x0500 -c -Tcchangejournal.c changejournal.c changejournal.h(49) : error C2039: ''FileNameOffset'' : is not a member of ''USN_RE CORD'' C:\Program Files\Microsoft Visual Studio\VC98\include\winioctl.h(1895) : see declaration of ''USN_RECORD'' changejournal.c(60) : error C2065: ''DELETE_USN_JOURNAL_DATA'' : undeclared identi fier changejournal.c(60) : error C2146: syntax error : missing '';'' before identifier ''dujd'' changejournal.c(60) : error C2065: ''dujd'' : undeclared identifier changejournal.c(61) : error C2275: ''BOOL'' : illegal use of this type as an expre ssion C:\Program Files\Microsoft Visual Studio\VC98\include\windef.h(142) : se e declaration of ''BOOL'' changejournal.c(61) : error C2146: syntax error : missing '';'' before identifier ''fOk'' changejournal.c(61) : error C2065: ''fOk'' : undeclared identifier changejournal.c(63) : error C2224: left of ''.UsnJournalID'' must have struct/unio n type changejournal.c(64) : error C2224: left of ''.DeleteFlags'' must have struct/union type changejournal.c(65) : error C2065: ''FSCTL_DELETE_USN_JOURNAL'' : undeclared ident ifier changejournal.c(74) : error C2146: syntax error : missing '')'' before identifier ''pUsnJournalData'' changejournal.c(74) : error C2081: ''PUSN_JOURNAL_DATA'' : name in formal paramete r list illegal changejournal.c(74) : error C2061: syntax error : identifier ''pUsnJournalData'' changejournal.c(74) : error C2059: syntax error : '';'' changejournal.c(74) : error C2059: syntax error : '')'' changejournal.c(74) : error C2449: found ''{'' at file scope (missing function hea der?) changejournal.c(83) : error C2059: syntax error : ''}'' changejournal.c(191) : error C2065: ''USN_JOURNAL_DATA'' : undeclared identifier changejournal.c(191) : error C2146: syntax error : missing '';'' before identifier ''ujd'' changejournal.c(191) : error C2065: ''ujd'' : undeclared identifier changejournal.c(194) : error C2224: left of ''.UsnJournalID'' must have struct/uni on type changejournal.c(194) : error C2065: ''USN_DELETE_FLAG_DELETE'' : undeclared identi fier changejournal.c(194) : error C2198: ''Delete'' : too few actual parameters changejournal.c(280) : error C2146: syntax error : missing '';'' before identifier ''ujd'' changejournal.c(285) : error C2065: ''ERROR_JOURNAL_DELETE_IN_PROGRESS'' : undecla red identifier changejournal.c(285) : error C2051: case expression not constant changejournal.c(289) : error C2065: ''USN_DELETE_FLAG_NOTIFY'' : undeclared identi fier changejournal.c(293) : error C2065: ''ERROR_JOURNAL_NOT_ACTIVE'' : undeclared iden tifier changejournal.c(293) : error C2051: case expression not constant changejournal.c(316) : error C2224: left of ''.FirstUsn'' must have struct/union t ype changejournal.c(316) : error C2224: left of ''.UsnJournalID'' must have struct/uni on type changejournal.c(385) : error C2146: syntax error : missing '';'' before identifier ''ujd'' changejournal.c(386) : error C2275: ''DWORD'' : illegal use of this type as an exp ression C:\Program Files\Microsoft Visual Studio\VC98\include\windef.h(141) : se e declaration of ''DWORD'' changejournal.c(386) : error C2146: syntax error : missing '';'' before identifier ''dwTimeout'' changejournal.c(386) : error C2065: ''dwTimeout'' : undeclared identifier changejournal.c(386) : error C2065: ''dwWait'' : undeclared identifier changejournal.c(387) : error C2275: ''READ_USN_JOURNAL_DATA'' : illegal use of thi s type as an expression C:\Program Files\Microsoft Visual Studio\VC98\include\winioctl.h(1881) : see declaration of ''READ_USN_JOURNAL_DATA'' changejournal.c(387) : error C2146: syntax error : missing '';'' before identifier ''rujd'' changejournal.c(387) : error C2065: ''rujd'' : undeclared identifier changejournal.c(388) : error C2275: ''BOOL'' : illegal use of this type as an expr ession C:\Program Files\Microsoft Visual Studio\VC98\include\windef.h(142) : se e declaration of ''BOOL'' changejournal.c(388) : error C2146: syntax error : missing '';'' before identifier ''fOk'' changejournal.c(402) : error C2115: ''='' : incompatible types changejournal.c(403) : error C2224: left of ''.BytesToWaitFor'' must have struct/u nion type changejournal.c(445) : error C2146: syntax error : missing '';'' before identifier ''ujd'' changejournal.c(451) : error C2224: left of ''.UsnJournalID'' must have struct/uni on type changejournal.c(451) : error C2198: ''Delete'' : too few actual parameters NMAKE : fatal error U1077: ''cl'' : return code ''0x2'' Stop.
Berger, Daniel
2005-May-02 10:31 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Zach Dennis > Sent: Sunday, May 01, 2005 1:32 PM > To: Development and ideas for win32utils projects > Subject: [Win32utils-devel] win32-changejournal 0.2.0-1 compile error > > > I get the following error when trying to compile: > win32-changejournal-0.2.0-1 > on: > Windows 2000, Service Pack 4 > Microsoft Visual Studio 6 > > Any ideas? Thanks, > > ZachAgain, it appears that several constants are simply not defined in the VC++ 6.0 header files. Unfortunately, it also appears that certain data structures, such as DELETE_USN_JOURNAL_DATA, are also not defined. That means that, unless someone has a better idea, there''s nothing I can do about it except make a note in the README file. Regards, Dan
Zach Dennis
2005-May-03 19:47 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
Berger, Daniel wrote:> > Again, it appears that several constants are simply not defined in the > VC++ 6.0 header files. Unfortunately, it also appears that certain data > structures, such as DELETE_USN_JOURNAL_DATA, are also not defined. > > That means that, unless someone has a better idea, there''s nothing I can > do about it except make a note in the README file. >If you compile the shared library on your box and email it to me, won''t it most likely be able to run fine on my box? Is there a violation with distributing binaries instead of making users compile their own shared libraries? Zach
Berger, Daniel
2005-May-04 10:26 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Zach Dennis > Sent: Tuesday, May 03, 2005 5:51 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] win32-changejournal 0.2.0-1 > compile error > > > Berger, Daniel wrote: > > > > Again, it appears that several constants are simply not > defined in the > > VC++ 6.0 header files. Unfortunately, it also appears that certain > > VC++ data > > structures, such as DELETE_USN_JOURNAL_DATA, are also not defined. > > > > That means that, unless someone has a better idea, there''s > nothing I > > can do about it except make a note in the README file. > > > > If you compile the shared library on your box and email it to > me, won''t > it most likely be able to run fine on my box? Is there a > violation with > distributing binaries instead of making users compile their > own shared > libraries? > > ZachNo, that''s perfectly fine. I''ll email you the attached code tonight off list. Dan
Zach Dennis
2005-May-04 10:31 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
Berger, Daniel wrote:>>-----Original Message----- >>From: win32utils-devel-bounces@rubyforge.org >>[mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of >>Zach Dennis>>If you compile the shared library on your box and email it to >>me, won''t >>it most likely be able to run fine on my box? Is there a >>violation with >>distributing binaries instead of making users compile their >>own shared >>libraries? > > > No, that''s perfectly fine. I''ll email you the attached code tonight off > list.I think this would be worthwhile to have binaries released also, or even just a win32 installer which would install all of the binaries, so you dont have to commit each binary individually? Thanks Daniel, Zach
Berger, Daniel
2005-May-04 10:38 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
> -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Zach Dennis > Sent: Wednesday, May 04, 2005 8:38 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] win32-changejournal 0.2.0-1 > compile error > > > Berger, Daniel wrote: > >>-----Original Message----- > >>From: win32utils-devel-bounces@rubyforge.org > >>[mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > >>Zach Dennis > > >>If you compile the shared library on your box and email it to > >>me, won''t > >>it most likely be able to run fine on my box? Is there a > >>violation with > >>distributing binaries instead of making users compile their > >>own shared > >>libraries? > > > > > > No, that''s perfectly fine. I''ll email you the attached > code tonight > > off list. > > I think this would be worthwhile to have binaries released > also, or even > just a win32 installer which would install all of the > binaries, so you > dont have to commit each binary individually? > > Thanks Daniel, > > ZachIdeally we would have some sort of "installer builder" that we could run with the flick of a switch every time we put out a new release of a package. Shanko? What say you? Can this be automated? Dan
Shashank Date
2005-May-04 21:39 UTC
[Win32utils-devel] win32-changejournal 0.2.0-1 compile error
Berger, Daniel wrote:>>-----Original Message----- >>From: win32utils-devel-bounces@rubyforge.org >>[mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of >>Zach Dennis >>Sent: Wednesday, May 04, 2005 8:38 AM >>To: Development and ideas for win32utils projects >>Subject: Re: [Win32utils-devel] win32-changejournal 0.2.0-1 >>compile error >> >> >>Berger, Daniel wrote: >> >> >>>>-----Original Message----- >>>>From: win32utils-devel-bounces@rubyforge.org >>>>[mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of >>>>Zach Dennis >>>> >>>> >>>>If you compile the shared library on your box and email it to >>>>me, won''t >>>>it most likely be able to run fine on my box? Is there a >>>>violation with >>>>distributing binaries instead of making users compile their >>>>own shared >>>>libraries? >>>> >>>> >>>No, that''s perfectly fine. I''ll email you the attached >>> >>> >>code tonight >> >> >>>off list. >>> >>> >>I think this would be worthwhile to have binaries released >>also, or even >>just a win32 installer which would install all of the >>binaries, so you >>dont have to commit each binary individually? >> >>Thanks Daniel, >> >>Zach >> >> > >Ideally we would have some sort of "installer builder" that we could run >with the flick of a switch every time we put out a new release of a >package. > >Shanko? What say you? Can this be automated? > >Yes ! We will have to follow certain conventions (naming, version info, unit-test behaviours etc) which we are mostly doing anyway. In fact, I have got it to a point where all I do is 1. run the following script to nmake all modules and create the installer 2. run the script below that to test all the modules All we have to do is add error handling and email notification and we are ready to rock''n roll :-) #------------------------ # makeall.rb #------------------------ Dir[''win32-*''].each{|dir| Dir.chdir(dir){ puts puts dir+":\n"+"-"*25 puts `nmake /NOLOGO clean` puts `ruby extconf.rb` puts `nmake /NOLOGO` # puts `nmake /NOLOGO site-install` } } Dir.chdir("installer") { puts `c:\\nsis\\makensis /V3 win32utils.nsi` } #------------------------ # ----------------------- # testall.rb # ----------------------- Dir[''win32-*''].each{|dir| Dir.chdir(dir){ Dir.chdir("test") { puts puts dir+":\n"+"-"*25 Dir["tc_*.rb"].each{|tst| puts tst puts `ruby #{tst}` } } } } Let me know what you all think. -- shanko