[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: err
From: |
Marius Schamschula |
Subject: |
[Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types |
Date: |
Mon, 20 Jan 2025 13:26:31 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?66687>
Summary: Build failure: vxi11_clnt.c:71:36: error:
incompatible function pointer types
Group: GNU Octave
Submitter: mschamschula
Submitted: Mon 20 Jan 2025 06:26:27 PM UTC
Category: Octave Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 9.3.0
Operating System: Mac OS
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 20 Jan 2025 06:26:27 PM UTC By: Marius Schamschula <mschamschula>
While updating the MacPorts port for instrument-control to version 0.9.4, I
get the following failure
/usr/bin/clang -c -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC
-I/opt/local/include/octave-9.3.0/octave/..
-I/opt/local/include/octave-9.3.0/octave -I/opt/local/include -pthread
-fexceptions -pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DHAVE_CONFIG_H
-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-I/opt/local/include -DHAVE_CONFIG_H vxi11_clnt.c -o vxi11_clnt.o
vxi11_clnt.c:64:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
64 | device_abort_1(argp, clnt)
| ^
vxi11_clnt.c:71:36: error: incompatible function pointer types passing 'int
(XDR *, Device_Link *)' (aka 'int (struct __rpc_xdr *, long *)') to parameter
of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void *, unsigned int)')
[-Wincompatible-function-pointer-types]
71 | if (clnt_call(clnt, device_abort, xdr_Device_Link, argp,
xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:71:59: error: incompatible function pointer types passing 'int
(XDR *, Device_Error *)' (aka 'int (struct __rpc_xdr *, struct Device_Error
*)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void
*, unsigned int)') [-Wincompatible-function-pointer-types]
71 | if (clnt_call(clnt, device_abort, xdr_Device_Link, argp,
xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:77:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
77 | create_link_1(argp, clnt)
| ^
vxi11_clnt.c:84:35: error: incompatible function pointer types passing 'int
(XDR *, Create_LinkParms *)' (aka 'int (struct __rpc_xdr *, struct
Create_LinkParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
84 | if (clnt_call(clnt, create_link, xdr_Create_LinkParms, argp,
xdr_Create_LinkResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:84:63: error: incompatible function pointer types passing 'int
(XDR *, Create_LinkResp *)' (aka 'int (struct __rpc_xdr *, struct
Create_LinkResp *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
84 | if (clnt_call(clnt, create_link, xdr_Create_LinkParms, argp,
xdr_Create_LinkResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:90:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
90 | device_write_1(argp, clnt)
| ^
vxi11_clnt.c:97:36: error: incompatible function pointer types passing 'int
(XDR *, Device_WriteParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_WriteParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
97 | if (clnt_call(clnt, device_write, xdr_Device_WriteParms, argp,
xdr_Device_WriteResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:97:65: error: incompatible function pointer types passing 'int
(XDR *, Device_WriteResp *)' (aka 'int (struct __rpc_xdr *, struct
Device_WriteResp *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
97 | if (clnt_call(clnt, device_write, xdr_Device_WriteParms, argp,
xdr_Device_WriteResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:103:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
103 | device_read_1(argp, clnt)
| ^
vxi11_clnt.c:110:35: error: incompatible function pointer types passing 'int
(XDR *, Device_ReadParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_ReadParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
110 | if (clnt_call(clnt, device_read, xdr_Device_ReadParms, argp,
xdr_Device_ReadResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:110:63: error: incompatible function pointer types passing 'int
(XDR *, Device_ReadResp *)' (aka 'int (struct __rpc_xdr *, struct
Device_ReadResp *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
110 | if (clnt_call(clnt, device_read, xdr_Device_ReadParms, argp,
xdr_Device_ReadResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:116:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
116 | device_readstb_1(argp, clnt)
| ^
vxi11_clnt.c:123:38: error: incompatible function pointer types passing 'int
(XDR *, Device_GenericParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_GenericParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
123 | if (clnt_call(clnt, device_readstb, xdr_Device_GenericParms,
argp, xdr_Device_ReadStbResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:123:69: error: incompatible function pointer types passing 'int
(XDR *, Device_ReadStbResp *)' (aka 'int (struct __rpc_xdr *, struct
Device_ReadStbResp *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
123 | if (clnt_call(clnt, device_readstb, xdr_Device_GenericParms,
argp, xdr_Device_ReadStbResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:129:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
129 | device_trigger_1(argp, clnt)
| ^
vxi11_clnt.c:136:38: error: incompatible function pointer types passing 'int
(XDR *, Device_GenericParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_GenericParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
136 | if (clnt_call(clnt, device_trigger, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:136:69: error: incompatible function pointer types passing 'int
(XDR *, Device_Error *)' (aka 'int (struct __rpc_xdr *, struct Device_Error
*)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void
*, unsigned int)') [-Wincompatible-function-pointer-types]
136 | if (clnt_call(clnt, device_trigger, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:142:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
142 | device_clear_1(argp, clnt)
| ^
vxi11_clnt.c:149:36: error: incompatible function pointer types passing 'int
(XDR *, Device_GenericParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_GenericParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
149 | if (clnt_call(clnt, device_clear, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:149:67: error: incompatible function pointer types passing 'int
(XDR *, Device_Error *)' (aka 'int (struct __rpc_xdr *, struct Device_Error
*)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void
*, unsigned int)') [-Wincompatible-function-pointer-types]
149 | if (clnt_call(clnt, device_clear, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:155:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
155 | device_remote_1(argp, clnt)
| ^
vxi11_clnt.c:162:37: error: incompatible function pointer types passing 'int
(XDR *, Device_GenericParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_GenericParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
162 | if (clnt_call(clnt, device_remote, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:162:68: error: incompatible function pointer types passing 'int
(XDR *, Device_Error *)' (aka 'int (struct __rpc_xdr *, struct Device_Error
*)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void
*, unsigned int)') [-Wincompatible-function-pointer-types]
162 | if (clnt_call(clnt, device_remote, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:168:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
168 | device_local_1(argp, clnt)
| ^
vxi11_clnt.c:175:36: error: incompatible function pointer types passing 'int
(XDR *, Device_GenericParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_GenericParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
175 | if (clnt_call(clnt, device_local, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
vxi11_clnt.c:175:67: error: incompatible function pointer types passing 'int
(XDR *, Device_Error *)' (aka 'int (struct __rpc_xdr *, struct Device_Error
*)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, void
*, unsigned int)') [-Wincompatible-function-pointer-types]
175 | if (clnt_call(clnt, device_local, xdr_Device_GenericParms,
argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:52:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~
vxi11_clnt.c:181:1: warning: a function definition without a prototype is
deprecated in all versions of C and is not supported in C2x
[-Wdeprecated-non-prototype]
181 | device_lock_1(argp, clnt)
| ^
vxi11_clnt.c:188:35: error: incompatible function pointer types passing 'int
(XDR *, Device_LockParms *)' (aka 'int (struct __rpc_xdr *, struct
Device_LockParms *)') to parameter of type 'xdrproc_t' (aka 'int (*)(struct
__rpc_xdr *, void *, unsigned int)') [-Wincompatible-function-pointer-types]
188 | if (clnt_call(clnt, device_lock, xdr_Device_LockParms, argp,
xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
| ^~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/rpc/clnt.h:197:38:
note: expanded from macro 'clnt_call'
197 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, argsp, xres, resp,
secs))
| ^~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
10 warnings and 20 errors generated.
make[1]: *** [vxi11_clnt.o] Error 1
rm vxi11_close.o __vxi11_pkg_lock__.o vxi11_write.o vxi11_read.o vxi11.o
make: *** [vxi11] Error 2
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66687>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types,
Marius Schamschula <=
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, Dmitri A. Sergatskov, 2025/01/20
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, Dmitri A. Sergatskov, 2025/01/20
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, Marius Schamschula, 2025/01/20
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, Dmitri A. Sergatskov, 2025/01/20
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, pingplug, 2025/01/20
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, Dmitri A. Sergatskov, 2025/01/20
- [Octave-bug-tracker] [bug #66687] Build failure: vxi11_clnt.c:71:36: error: incompatible function pointer types, Marius Schamschula, 2025/01/21