Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948190 - media-video/vlc[nfs]: access/nfs.c:213:54: error: passing argument 3 of ‘nfs_read_async’ makes pointer from integer without a cast [-Wint-conversion]
Summary: media-video/vlc[nfs]: access/nfs.c:213:54: error: passing argument 3 of ‘nfs_...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-16 13:11 UTC by Oleksa
Modified: 2025-01-16 18:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Error while compile with nfs USE-flag (Error_with_NFS_USE-flag.jpg,595.74 KB, image/jpeg)
2025-01-16 13:11 UTC, Oleksa
Details
Error while compile (BuildLog_with_EmergeInfo.tar.bz2,28.10 KB, application/x-bzip)
2025-01-16 13:15 UTC, Oleksa
Details
emerge --info has been added (emerge.info,11.75 KB, text/plain)
2025-01-16 18:20 UTC, Oleksa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksa 2025-01-16 13:11:45 UTC
Created attachment 916707 [details]
Error while compile with nfs USE-flag

Hello there

There are errors while compile:

access/nfs.c: In function ‘FileRead’:
access/nfs.c:213:54: error: passing argument 3 of ‘nfs_read_async’ makes pointer from integer without a cast [-Wint-conversion]
  213 |     if (nfs_read_async(p_sys->p_nfs, p_sys->p_nfsfh, i_len, nfs_read_cb,
      |                                                      ^~~~~
      |                                                      |
      |                                                      size_t {aka long unsigned int}
In file included from access/nfs.c:44:
/usr/include/nfsc/libnfs.h:755:33: note: expected ‘void *’ but argument is of type ‘size_t’ {aka ‘long unsigned int’}
  755 |                           void *buf, size_t count,
      |                           ~~~~~~^~~
access/nfs.c:213:61: error: passing argument 4 of ‘nfs_read_async’ makes integer from pointer without a cast [-Wint-conversion]
  213 |     if (nfs_read_async(p_sys->p_nfs, p_sys->p_nfsfh, i_len, nfs_read_cb,
      |                                                             ^~~~~~~~~~~
      |                                                             |
      |                                                             void (*)(int,  struct nfs_context *, void *, void *)
/usr/include/nfsc/libnfs.h:755:45: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘void (*)(int,  struct nfs_context *, void *, void *)’
  755 |                           void *buf, size_t count,
      |                                      ~~~~~~~^~~~~
access/nfs.c:214:24: error: passing argument 5 of ‘nfs_read_async’ from incompatible pointer type [-Wincompatible-pointer-types]
  214 |                        p_access) < 0)
      |                        ^~~~~~~~
      |                        |
      |                        stream_t *
/usr/include/nfsc/libnfs.h:756:34: note: expected ‘nfs_cb’ {aka ‘void (*)(int,  struct nfs_context *, void *, void *)’} but argument is of type ‘stream_t *’
  756 |                           nfs_cb cb, void *private_data);
      |                           ~~~~~~~^~
access/nfs.c:213:9: error: too few arguments to function ‘nfs_read_async’
  213 |     if (nfs_read_async(p_sys->p_nfs, p_sys->p_nfsfh, i_len, nfs_read_cb,
      |         ^~~~~~~~~~~~~~
/usr/include/nfsc/libnfs.h:754:12: note: declared here
  754 | EXTERN int nfs_read_async(struct nfs_context *nfs, struct nfsfh *nfsfh,
      |            ^~~~~~~~~~~~~~
../doltcompile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DMODULE_STRING=\"$(p="access/concat.lo"; p="${p##*/}"; p="${p#lib}"; p="${p%_plugin*}"; p=$(echo "$p"|sed 's/-/_/g'); p="${p%.lo}"; echo "$p")\" -D__PLUGIN__  -I./access -I./codec -I../include -I../include  -I/usr/include/samba-4.0  -march=native -mtune=generic -pipe -mglibc -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=12288 -O3 -fdiagnostics-color=always -falign-functions=32 -fno-strict-aliasing  -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Werror-implicit-function-declaration -Winit-self -Wlogical-op -Wshadow=local -fvisibility=hidden -c -o access/concat.lo access/concat.c
make[4]: *** [Makefile:23323: access/libnfs_plugin_la-nfs.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

This occur when nsf USE-flag enabled

Please, fix.

Thanks!
Comment 1 Oleksa 2025-01-16 13:15:04 UTC
Created attachment 916708 [details]
Error while compile
Comment 2 Andreas Sturmlechner gentoo-dev 2025-01-16 17:17:00 UTC
Please don't attach screenshots when everything we need is in plaintext logs.

Not reproducible here. emerge --info missing.
Comment 3 Oleksa 2025-01-16 18:20:01 UTC
Created attachment 916732 [details]
emerge --info has been added

emerge --info has been added