bugTransport Sample Protocol - Bugs: bug #19606, Error compiling TSP using VS6 on XP

 
 

bug #19606: Error compiling TSP using VS6 on XP

Submitted by:  Laroche <laroche>
Submitted on:  Mon 16 Apr 2007 02:10:58 PM UTC  
 
Category: CoreSeverity: 3 - Normal
Status: Wont FixPrivacy: Public
Assigned to: Eric NOULARD <erk>Open/Closed: Closed
Release: 0.8.2Fixed Release: Unknown

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 27 Apr 2007 11:08:06 AM UTC, comment #4:

After working with François and a small offline
discussion with others we decided not to add SUPPORT to
VS6 since Microsoft Itself does not support the product
anymore since 30/09/2005.

See: http://support.microsoft.com/lifecycle/search/.

Nevertheless we manage to install TSP 0.8.2 for Windows
(using the TSP win32 NSIS installer
prepared with Visual Studio 2003 .Net)
and link with the installed dll an executable built
with VS6.

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Wed 18 Apr 2007 08:47:43 AM UTC, comment #3:

Hello,

I have tryed the typedef void* RPC_NS_HANDLE and it fixed the first error.
After fixing also RPC_BINDING_HANDLE and RPC_BINDING_VECTOR, I get error on the RPC_STATUS RPC_ENTRY line :

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(33) : error C2061: syntax error : identifier 'RPC_NS_HANDLE'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(34) : error C2061: syntax error : identifier 'ProposedHandle'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(34) : error C2059: syntax error : ';'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(35) : error C2143: syntax error : missing '{' before '*'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(37) : error C2059: syntax error : '}'
...

Eric will come here this afternoon, and we will try to generate TSP together.

Thanks.

PS : Here is the RPCNSIP.H source code :

/*++

Copyright (c) 1992-1996 Microsoft Corporation

Module Name:

rpcnsip.h

Abstract:

This file contains the types and function definitions to use the
to implement the autohandle features of the runtime.

--*/

#ifndef _RPCNSIP_H_
#define _RPCNSIP_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct
{
RPC_NS_HANDLE LookupContext;
RPC_BINDING_HANDLE ProposedHandle;
RPC_BINDING_VECTOR * Bindings;

} RPC_IMPORT_CONTEXT_P, * PRPC_IMPORT_CONTEXT_P;

/* Stub Auto Binding routines. */

RPC_STATUS RPC_ENTRY
I_RpcNsGetBuffer(
IN PRPC_MESSAGE Message
);

RPC_STATUS RPC_ENTRY
I_RpcNsSendReceive(
IN PRPC_MESSAGE Message,
OUT RPC_BINDING_HANDLE __RPC_FAR * Handle
);

void RPC_ENTRY
I_RpcNsRaiseException(
IN PRPC_MESSAGE Message,
IN RPC_STATUS Status
);

RPC_STATUS RPC_ENTRY
I_RpcReBindBuffer(
IN PRPC_MESSAGE Message
);

RPC_STATUS RPC_ENTRY
I_NsServerBindSearch(
);

RPC_STATUS RPC_ENTRY
I_NsClientBindSearch(
);

void RPC_ENTRY
I_NsClientBindDone(
);

#ifdef __cplusplus
}
#endif

#endif /* _RPCNSIP_H_ */

Laroche <laroche>
Mon 16 Apr 2007 03:36:13 PM UTC, comment #2:

Hi,
I'll do, but I won't be able to do it before tuesday or wenesday.
I doubt it would solve this particular problem however.

- Could you provide us the 30 first lines of
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h ?
- Could you also test if "typedef void* RPC_NS_HANDLE;" right before the use of RPC_NS_HANDLE fixes the error?

Regards,
Frederik

Frederik Deweerdt <deweerdt>
Project Administrator
Mon 16 Apr 2007 02:26:32 PM UTC, comment #1:

Ok noted.
We will work on it together.

Fred (Deweerdt),
Would you be kind enough to either:

1) attach to the tracker the modifications
you did for the forthcoming TSP 0.8.3 on Windows?

2) or commit the change to CVS.

I did suggest to use 0.8.2 because it has compiled
nicely on win32 but if we face some compilation issues.

I'd rather start from your pre-0.8.3 modified version
rather than working on 0.8.2 and then backporting
the change to 0.8.3.

The only difference I see is that we used Visual Studio 2003
(aka VS7) and not the Visual Studio 6.

Eric NOULARD <erk>
Project AdministratorIn charge of this item.
Mon 16 Apr 2007 02:10:58 PM UTC, original submission:

Hello,

I need to integrate a basic TSP provider on an "old" Labview 5.1 application (using calls to a DLL or the Laview CIN).

First I have installed TSP 0.8.2 windows binaries and tested that stub provider and stdout client are working.

Then I have downloaded TSP 0.8.2 sources and tried to compile those on a Windows XP system using Visual Studio 6.

I get this kind of error :

--------------------Configuration: tsp_port_api - Win32 Debug--------------------
Building Custom Rule C:/TSP/tsp-0.8.2-Source/tests/tsp_port/src/CMakeLists.txt
-- TSP CMake Tools loaded.
-- Configuring tsp version 0.8.2
-- Looking for PthreadWin32...
-- Looking for PthreadWin32... - found PthreadWin32 lib is C:/TSP/tsp-0.8.2-Source/external/PthreadWin32/lib/pthreadVC.lib and include is C:/TSP/tsp-0.8.2-Source/external/pthreadwin32/include/pthread.h
-- Looking for ACPLT_ONCRPC...
-- Looking for rpcgen...
-- Looking for rpcgen... - found rpcgen is C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/bin/rpcgen.exe
-- Looking for ACPLT_ONCRPC... - found ACPLT_ONCRPC lib : C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/lib/oncrpc.lib, include is C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/include/rpc/rpc.h
-- Looking for OpenGL
-- Looking for OpenGL - found : opengl32
-- Looking for GLU
-- Looking for GLU - found : glu32
-- Looking for GLUT
-- Looking for GLUT - not found
-- Looking for lex...
-- Looking for lex... - NOT found
-- Looking for yacc...
-- Looking for yacc... - NOT found
-- Looking for gtk-config...
-- Looking for gtk-config - NOT found
-- Looking for xml2-config...
-- Looking for xml2-config - NOT found
-- FUSE not available on non-Linux platform
-- FUSE consumer disabled
-- rpcgen : - found rpcgen is C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/bin/rpcgen.exe
-- Configuring tsp version 0.8.2...Done.
-- *** TSP for WIN32 has been successfully configured ********
-- Configuring done
-- Generating done
-- Build files have been written to: C:/TSP/tsp-0.8.2-Binaries
Compiling...
test_api.c
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(25) : error C2061: syntax error : identifier 'RPC_NS_HANDLE'

and one hundred more

When I try to compile only the "stub" provider example, I get this :

--------------------Configuration: tsp_stub_server - Win32 Debug--------------------
Building Custom Rule C:/TSP/tsp-0.8.2-Source/src/providers/stub/CMakeLists.txt
-- TSP CMake Tools loaded.
-- Configuring tsp version 0.8.2
-- Looking for PthreadWin32...
-- Looking for PthreadWin32... - found PthreadWin32 lib is C:/TSP/tsp-0.8.2-Source/external/PthreadWin32/lib/pthreadVC.lib and include is C:/TSP/tsp-0.8.2-Source/external/pthreadwin32/include/pthread.h
-- Looking for ACPLT_ONCRPC...
-- Looking for rpcgen...
-- Looking for rpcgen... - found rpcgen is C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/bin/rpcgen.exe
-- Looking for ACPLT_ONCRPC... - found ACPLT_ONCRPC lib : C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/lib/oncrpc.lib, include is C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/include/rpc/rpc.h
-- Looking for OpenGL
-- Looking for OpenGL - found : opengl32
-- Looking for GLU
-- Looking for GLU - found : glu32
-- Looking for GLUT
-- Looking for GLUT - not found
-- Looking for lex...
-- Looking for lex... - NOT found
-- Looking for yacc...
-- Looking for yacc... - NOT found
-- Looking for gtk-config...
-- Looking for gtk-config - NOT found
-- Looking for xml2-config...
-- Looking for xml2-config - NOT found
-- FUSE not available on non-Linux platform
-- FUSE consumer disabled
-- rpcgen : - found rpcgen is C:/TSP/tsp-0.8.2-Source/external/ACPLT-ONCRPC/bin/rpcgen.exe
-- Configuring tsp version 0.8.2...Done.
-- *** TSP for WIN32 has been successfully configured ********
-- Configuring done
-- Generating done
-- Build files have been written to: C:/TSP/tsp-0.8.2-Binaries
Compiling...
glue_stub.c
C:\TSP\tsp-0.8.2-Source\src\core\include\tsp_abs_types.h(145) : error C2632: 'long' followed by 'long' is illegal
C:\TSP\tsp-0.8.2-Source\src\core\include\tsp_abs_types.h(149) : error C2632: 'long' followed by 'long' is illegal
C:\TSP\tsp-0.8.2-Source\src\core\include\tsp_abs_types.h(149) : error C2371: 'int64_t' : redefinition; different basic types
C:\TSP\tsp-0.8.2-Source\src\core\include\tsp_abs_types.h(140) : see declaration of 'int64_t'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\rpcnsip.h(25) : error C2061: syntax error : identifier 'RPC_NS_HANDLE'

and two hundred of errors

Any idea ?

Thanks in advance

Laroche <laroche>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by deweerdt (Posted a comment)
  • -unavailable- added by erk (Posted a comment)
  • -unavailable- added by laroche (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 27 Apr 2007 11:08:06 AM UTCerkStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 16 Apr 2007 02:26:32 PM UTCerkAssigned toNone=>erk

    Back to the top


    Powered by Savane 3.1-cleanup1