Re: [tkined] tnmRpc.c error

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 23 Dec 1997 10:15:56 +0100

phil <phil@Belgium.EU.net> said:

phil> While trying to compile scotty i ran into the next error

phil> ...
phil> cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include
phil> ./../tnm/generic/tnmRpc.c
phil> ./../tnm/generic/tnmRpc.c:62: field `__errno_location' declared as a
phil> function
phil> make: *** [tnmRpc.o] Error 1

You can solve this problem by removing the definition of errno (which
is not used anyway) in tnm/generic/tnmRpc.c. Below is a patch for this
problem.
Juergen

*** tnm/generic/tnmRpc.c.orig Tue Sep 24 08:03:18 1996
--- tnm/generic/tnmRpc.c Tue Dec 23 09:49:11 1997
***************
*** 49,54 ****
--- 49,55 ----
* Definitions for the simple RPC protocol.
*/

+ #if 0
#define TNM_RPC_CALL 1
#define TNM_RPC_SEND 2
#define TNM_RPC_RESULT 3
***************
*** 68,73 ****
--- 69,75 ----
int len; /* The length of the argument. */
char *arg; /* The bytes containing the argument. */
} Tnm_RpcArg;
+ #endif

/*
* Forward declarations for procedures defined later in this file:

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.