Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build for 32 bits arches #504

Open
marillat opened this issue Dec 13, 2024 · 1 comment
Open

Fail to build for 32 bits arches #504

marillat opened this issue Dec 13, 2024 · 1 comment

Comments

@marillat
Copy link

Debian unstable
gcc 14.2.0
Arches i386, armel and armhf

In file included from pdu.c:63:
pdu.c: In function 'rpc_queue_pdu':
/build/libnfs-dmo-6.0.1/include/libnfs-private.h:633:49: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
  633 |                         snprintf(xxlogbuf, 255, "libnfs:%d rpc %p " format, level, rpc, ## __VA_ARGS__); \
      |                                                 ^~~~~~~~~~~~~~~~~~~
pdu.c:703:25: note: in expansion of macro 'RPC_LOG'
  703 |                         RPC_LOG(rpc, 2, "Sending AUTH_TLS NULL RPC (%lu bytes)",
      |                         ^~~~~~~
cc1: all warnings being treated as errors
@sahlberg
Copy link
Owner

I added a quick fix since the value is guaranteed to always be <2^31 due to protocol restrictions
and regardless of the size of size_t.
Can you test if compiling current master works on your platform and if so I will make a new bugfix release asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants