List Info

Thread: Is P4Ruby not compatible with the latest P4APIs?




Is P4Ruby not compatible with the latest P4APIs?
country flaguser name
United States
2007-08-23 15:02:20
I tried with 2007.2 and then 2006.2 versions of P4API, and
get the same
error when compiling with VC7.1:

I first got the following errors:
clientuserruby.cpp
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
) : warning C4005: 'HAVE_FSYNC' : macro redefinition
 
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
.h(62) : see previous definition of 'HAVE_FSYNC'
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
(50) : error C2061: syntax error : identifier 'const_char'
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
(51) : error C2061: syntax error : identifier 'const_char'
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
(53) : error C2061: syntax error : identifier 'const_char'
clientuserruby.cpp(99) : error C2065: 'const_char' :
undeclared
identifier
clientuserruby.cpp(99) : error C2065: 'data' : undeclared
identifier
clientuserruby.cpp(99) : error C2062: type 'int' unexpected
clientuserruby.cpp(100) : error C2143: syntax error :
missing ';' before
'{'
clientuserruby.cpp(100) : error C2447: '{' : missing
function header
(old-style formal list?)
clientuserruby.cpp(110) : error C2061: syntax error :
identifier
'const_char'
clientuserruby.cpp(115) : error C3861: 'data': identifier
not found,
even with argument-dependent lookup
clientuserruby.cpp(117) : error C3861: 'data': identifier
not found,
even with argument-dependent lookup
clientuserruby.cpp(121) : error C3861: 'const_char':
identifier not
found, even with argument-dependent lookup
clientuserruby.cpp(121) : error C3861: 'data': identifier
not found,
even with argument-dependent lookup
clientuserruby.cpp(121) : error C2062: type 'int'
unexpected
clientuserruby.cpp(122) : error C2143: syntax error :
missing ';' before
'{'
clientuserruby.cpp(122) : error C2447: '{' : missing
function header
(old-style formal list?)
clientuserruby.cpp(189) : error C2661: 'Spec::Spec' : no
overloaded
function takes 2 arguments
clientuserruby.cpp(213) : fatal error C1903: unable to
recover from
previous error(s); stopping compilation
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

So, I add -Dconst_char="const char" (the
instructions are definitely
wrong with VC 7.1, or VC8) and now I get:
clientuserruby.cpp
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
) : warning C4005: 'HAVE_FSYNC' : macro redefinition
 
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
.h(62) : see previous definition of 'HAVE_FSYNC'
clientuserruby.cpp(189) : error C2661: 'Spec::Spec' : no
overloaded
function takes 2 arguments
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.



_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby

Re: Is P4Ruby not compatible with the latest P4APIs?
country flaguser name
United Kingdom
2007-08-24 03:12:00
Patrick,

Which version of P4Ruby are you using: if you're using an
old version of 
P4Ruby, it's not surprising that it doesn't build with newer
APIs. 

The latest stable P4Ruby builds with the 2007.2 and earlier
APIs and warns you 
if you try to build with a later API (but of course there
aren't any yet).

Can you try that and let me know?

Thanks,

Tony

On Thursday 23 August 2007 21:02, Bennett, Patrick wrote:
> I tried with 2007.2 and then 2006.2 versions of P4API,
and get the same
> error when compiling with VC7.1:
>
> I first got the following errors:
> clientuserruby.cpp
>
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
> ) : warning C4005: 'HAVE_FSYNC' : macro redefinition
>
>
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
> .h(62) : see previous definition of 'HAVE_FSYNC'
>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
> (50) : error C2061: syntax error : identifier
'const_char'
>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
> (51) : error C2061: syntax error : identifier
'const_char'
>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
> (53) : error C2061: syntax error : identifier
'const_char'
> clientuserruby.cpp(99) : error C2065: 'const_char' :
undeclared
> identifier
> clientuserruby.cpp(99) : error C2065: 'data' :
undeclared identifier
> clientuserruby.cpp(99) : error C2062: type 'int'
unexpected
> clientuserruby.cpp(100) : error C2143: syntax error :
missing ';' before
> '{'
> clientuserruby.cpp(100) : error C2447: '{' : missing
function header
> (old-style formal list?)
> clientuserruby.cpp(110) : error C2061: syntax error :
identifier
> 'const_char'
> clientuserruby.cpp(115) : error C3861: 'data':
identifier not found,
> even with argument-dependent lookup
> clientuserruby.cpp(117) : error C3861: 'data':
identifier not found,
> even with argument-dependent lookup
> clientuserruby.cpp(121) : error C3861: 'const_char':
identifier not
> found, even with argument-dependent lookup
> clientuserruby.cpp(121) : error C3861: 'data':
identifier not found,
> even with argument-dependent lookup
> clientuserruby.cpp(121) : error C2062: type 'int'
unexpected
> clientuserruby.cpp(122) : error C2143: syntax error :
missing ';' before
> '{'
> clientuserruby.cpp(122) : error C2447: '{' : missing
function header
> (old-style formal list?)
> clientuserruby.cpp(189) : error C2661: 'Spec::Spec' :
no overloaded
> function takes 2 arguments
> clientuserruby.cpp(213) : fatal error C1903: unable to
recover from
> previous error(s); stopping compilation
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> So, I add -Dconst_char="const char" (the
instructions are definitely
> wrong with VC 7.1, or VC8) and now I get:
> clientuserruby.cpp
>
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
> ) : warning C4005: 'HAVE_FSYNC' : macro redefinition
>
>
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
> .h(62) : see previous definition of 'HAVE_FSYNC'
> clientuserruby.cpp(189) : error C2661: 'Spec::Spec' :
no overloaded
> function takes 2 arguments
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
>
>
> _______________________________________________
> p4ruby mailing list
> p4rubyperforce.com
> 
http://maillist.perforce.com/mailman/listinfo/p4ruby
>
> !DSPAM:46cdfa70181002477112106!
_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby

Re: Is P4Ruby not compatible with the latest P4APIs?
country flaguser name
United States
2007-08-24 07:05:27
*rofl* I just realized I never updated the P4Ruby version!  
I updated 
everything else, but completely forgot to update P4Ruby
itself!
D'oh!  *smack*
Sorry to waste your time.  :(

Tony Smith wrote:
> Patrick,
>
> Which version of P4Ruby are you using: if you're using
an old version of 
> P4Ruby, it's not surprising that it doesn't build with
newer APIs. 
>
> The latest stable P4Ruby builds with the 2007.2 and
earlier APIs and warns you 
> if you try to build with a later API (but of course
there aren't any yet).
>
> Can you try that and let me know?
>
> Thanks,
>
> Tony
>
> On Thursday 23 August 2007 21:02, Bennett, Patrick
wrote:
>   
>> I tried with 2007.2 and then 2006.2 versions of
P4API, and get the same
>> error when compiling with VC7.1:
>>
>> I first got the following errors:
>> clientuserruby.cpp
>>
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
>> ) : warning C4005: 'HAVE_FSYNC' : macro
redefinition
>>
>>
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
>> .h(62) : see previous definition of 'HAVE_FSYNC'
>>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
>> (50) : error C2061: syntax error : identifier
'const_char'
>>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
>> (51) : error C2061: syntax error : identifier
'const_char'
>>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
>> (53) : error C2061: syntax error : identifier
'const_char'
>> clientuserruby.cpp(99) : error C2065: 'const_char'
: undeclared
>> identifier
>> clientuserruby.cpp(99) : error C2065: 'data' :
undeclared identifier
>> clientuserruby.cpp(99) : error C2062: type 'int'
unexpected
>> clientuserruby.cpp(100) : error C2143: syntax error
: missing ';' before
>> '{'
>> clientuserruby.cpp(100) : error C2447: '{' :
missing function header
>> (old-style formal list?)
>> clientuserruby.cpp(110) : error C2061: syntax error
: identifier
>> 'const_char'
>> clientuserruby.cpp(115) : error C3861: 'data':
identifier not found,
>> even with argument-dependent lookup
>> clientuserruby.cpp(117) : error C3861: 'data':
identifier not found,
>> even with argument-dependent lookup
>> clientuserruby.cpp(121) : error C3861:
'const_char': identifier not
>> found, even with argument-dependent lookup
>> clientuserruby.cpp(121) : error C3861: 'data':
identifier not found,
>> even with argument-dependent lookup
>> clientuserruby.cpp(121) : error C2062: type 'int'
unexpected
>> clientuserruby.cpp(122) : error C2143: syntax error
: missing ';' before
>> '{'
>> clientuserruby.cpp(122) : error C2447: '{' :
missing function header
>> (old-style formal list?)
>> clientuserruby.cpp(189) : error C2661: 'Spec::Spec'
: no overloaded
>> function takes 2 arguments
>> clientuserruby.cpp(213) : fatal error C1903: unable
to recover from
>> previous error(s); stopping compilation
>> NMAKE : fatal error U1077: 'cl' : return code
'0x2'
>> Stop.
>>
>> So, I add -Dconst_char="const char" (the
instructions are definitely
>> wrong with VC 7.1, or VC8) and now I get:
>> clientuserruby.cpp
>>
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
>> ) : warning C4005: 'HAVE_FSYNC' : macro
redefinition
>>
>>
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
>> .h(62) : see previous definition of 'HAVE_FSYNC'
>> clientuserruby.cpp(189) : error C2661: 'Spec::Spec'
: no overloaded
>> function takes 2 arguments
>> NMAKE : fatal error U1077: 'cl' : return code
'0x2'
>> Stop.
>>
>>
>>
>> _______________________________________________
>> p4ruby mailing list
>> p4rubyperforce.com
>> 
http://maillist.perforce.com/mailman/listinfo/p4ruby
>>
>> !DSPAM:46cdfa70181002477112106!
>>     
>
>
>
------------------------------------------------------------
--------------------
> This email and any files transmitted with it are
confidential and intended 
> solely for the use of the individual or entity to whom
they are addressed. If 
> you have received this email in error please notify the
system manager. Please 
> note that any views or opinions presented in this email
are solely those of the 
> author and do not necessarily represent those of
Perforce Software. Finally, 
> the recipient should check this email and any
attachments for the presence of 
> viruses. Perforce Software accepts no liability for any
damage caused by any 
> virus transmitted by this email.
>
> Perforce Software UK Ltd is registered in England and
Wales as company no. 
> 3816019 at the following address: West Forest Gate,
Wellington Road, Wokingham,
> RG40 2AQ, UK
>
------------------------------------------------------------
--------------------
>
>   


-- 

*Patrick Bennett* | Software Engineer
phone & fax +1.317.715.8302 | patrick.bennettinin.com
 
*Interactive Intelligence Inc.*
Deliberately Innovative
www.inin.com <http://www.inin.com/>


_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby

Re: Is P4Ruby not compatible with the latest P4APIs?
country flaguser name
United Kingdom
2007-08-24 11:31:45
No problem 

Have a great weekend.

Tony

On Friday 24 August 2007 13:05, Patrick Bennett wrote:
> *rofl* I just realized I never updated the P4Ruby
version!   I updated
> everything else, but completely forgot to update P4Ruby
itself!
> D'oh!  *smack*
> Sorry to waste your time.  :(
>
> Tony Smith wrote:
> > Patrick,
> >
> > Which version of P4Ruby are you using: if you're
using an old version of
> > P4Ruby, it's not surprising that it doesn't build
with newer APIs.
> >
> > The latest stable P4Ruby builds with the 2007.2
and earlier APIs and
> > warns you if you try to build with a later API
(but of course there
> > aren't any yet).
> >
> > Can you try that and let me know?
> >
> > Thanks,
> >
> > Tony
> >
> > On Thursday 23 August 2007 21:02, Bennett, Patrick
wrote:
> >> I tried with 2007.2 and then 2006.2 versions
of P4API, and get the same
> >> error when compiling with VC7.1:
> >>
> >> I first got the following errors:
> >> clientuserruby.cpp
> >>
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
> >> ) : warning C4005: 'HAVE_FSYNC' : macro
redefinition
> >>
> >>
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
> >> .h(62) : see previous definition of
'HAVE_FSYNC'
> >>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
> >> (50) : error C2061: syntax error : identifier
'const_char'
> >>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
> >> (51) : error C2061: syntax error : identifier
'const_char'
> >>
m:ionbuildssystesttoolsmainintsrcperforcep4rubyclie
ntuserruby.h
> >> (53) : error C2061: syntax error : identifier
'const_char'
> >> clientuserruby.cpp(99) : error C2065:
'const_char' : undeclared
> >> identifier
> >> clientuserruby.cpp(99) : error C2065: 'data' :
undeclared identifier
> >> clientuserruby.cpp(99) : error C2062: type
'int' unexpected
> >> clientuserruby.cpp(100) : error C2143: syntax
error : missing ';' before
> >> '{'
> >> clientuserruby.cpp(100) : error C2447: '{' :
missing function header
> >> (old-style formal list?)
> >> clientuserruby.cpp(110) : error C2061: syntax
error : identifier
> >> 'const_char'
> >> clientuserruby.cpp(115) : error C3861: 'data':
identifier not found,
> >> even with argument-dependent lookup
> >> clientuserruby.cpp(117) : error C3861: 'data':
identifier not found,
> >> even with argument-dependent lookup
> >> clientuserruby.cpp(121) : error C3861:
'const_char': identifier not
> >> found, even with argument-dependent lookup
> >> clientuserruby.cpp(121) : error C3861: 'data':
identifier not found,
> >> even with argument-dependent lookup
> >> clientuserruby.cpp(121) : error C2062: type
'int' unexpected
> >> clientuserruby.cpp(122) : error C2143: syntax
error : missing ';' before
> >> '{'
> >> clientuserruby.cpp(122) : error C2447: '{' :
missing function header
> >> (old-style formal list?)
> >> clientuserruby.cpp(189) : error C2661:
'Spec::Spec' : no overloaded
> >> function takes 2 arguments
> >> clientuserruby.cpp(213) : fatal error C1903:
unable to recover from
> >> previous error(s); stopping compilation
> >> NMAKE : fatal error U1077: 'cl' : return code
'0x2'
> >> Stop.
> >>
> >> So, I add -Dconst_char="const char"
(the instructions are definitely
> >> wrong with VC 7.1, or VC8) and now I get:
> >> clientuserruby.cpp
> >>
m:ionbuildssystesttoolsmainintsrcperforcep4apiwins
tdhdrs.h(161
> >> ) : warning C4005: 'HAVE_FSYNC' : macro
redefinition
> >>
> >>
m:ionbuildssystesttoolsmainrubylibruby1.8i386-mswin
32_71config
> >> .h(62) : see previous definition of
'HAVE_FSYNC'
> >> clientuserruby.cpp(189) : error C2661:
'Spec::Spec' : no overloaded
> >> function takes 2 arguments
> >> NMAKE : fatal error U1077: 'cl' : return code
'0x2'
> >> Stop.
> >>
> >>
> >>
> >>
_______________________________________________
> >> p4ruby mailing list
> >> p4rubyperforce.com
> >> 
http://maillist.perforce.com/mailman/listinfo/p4ruby
> >
> >
------------------------------------------------------------
-------------
> >------- This email and any files transmitted with
it are confidential and
> > intended solely for the use of the individual or
entity to whom they are
> > addressed. If you have received this email in
error please notify the
> > system manager. Please note that any views or
opinions presented in this
> > email are solely those of the author and do not
necessarily represent
> > those of Perforce Software. Finally, the recipient
should check this
> > email and any attachments for the presence of
viruses. Perforce Software
> > accepts no liability for any damage caused by any
virus transmitted by
> > this email.
> >
> > Perforce Software UK Ltd is registered in England
and Wales as company
> > no. 3816019 at the following address: West Forest
Gate, Wellington Road,
> > Wokingham, RG40 2AQ, UK
> >
------------------------------------------------------------
-------------
> >-------
_______________________________________________
p4ruby mailing list
p4rubyperforce.com

http://maillist.perforce.com/mailman/listinfo/p4ruby

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )