Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922613 - net-libs/libndp-1.8 - .../libndp.c: In function 'mysendto6': /var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/libndp/libndp.c:212:50: error: passing argument 5 of 'sendto' from incompatible pointer type [-Wincompatible-pointer-types]
Summary: net-libs/libndp-1.8 - .../libndp.c: In function 'mysendto6': /var/tmp/portage...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://github.com/jpirko/libndp/issu...
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-01-21 12:16 UTC by ernsteiswuerfel
Modified: 2024-06-18 22:49 UTC (History)
1 user (show)

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


Attachments
build.log (libndp-1.8:20240120-182039.log,12.08 KB, text/plain)
2024-01-21 12:16 UTC, ernsteiswuerfel
Details
emerge --info (file_922613.txt,6.47 KB, text/plain)
2024-01-21 12:17 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-01-21 12:16:44 UTC
Created attachment 882763 [details]
build.log

[...]
libtool: compile:  powerpc-gentoo-linux-musl-gcc "-DPACKAGE_NAME=\"libndp\"" "-DPACKAGE_TARNAME=\"libndp\"" "-DPACKAGE_VERSION=\"1.8\"" "-DPACKAGE_STRING=\"libndp 1.8\"" "-DPACKAGE_BUGREPORT=\"jiri@resnulli.us\"" "-DPACKAGE_URL=\"\"" "-DPACKAGE=\"libndp\"" "-DVERSION=\"1.8\"" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 "-DLT_OBJDIR=\".libs/\"" -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DENABLE_LOGGING=1 -I. -I/var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/libndp -fvisibility=hidden -ffunction-sections -fdata-sections -I/var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/include -D_GNU_SOURCE -Os -mcpu=7450 -mtune=7450 -pipe -Wall -c /var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/libndp/libndp.c  -fPIC -DPIC -o .libs/libndp_la-libndp.o
/var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/libndp/libndp.c: In function 'mysendto6':
/var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/libndp/libndp.c:212:50: error: passing argument 5 of 'sendto' from incompatible pointer type [-Wincompatible-pointer-types]
  212 |         ret = sendto(sockfd, buf, buflen, flags, &sin6, sizeof(sin6));
      |                                                  ^~~~~
      |                                                  |
      |                                                  struct sockaddr_in6 *
In file included from /var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8/libndp/libndp.c:27:
/usr/include/sys/socket.h:396:49: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in6 *'
  396 | ssize_t sendto (int, const void *, size_t, int, const struct sockaddr *, socklen_t);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:455: libndp_la-libndp.lo] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libndp-1.8/work/libndp-1.8-.ppc/libndp'
make: *** [Makefile:388: all-recursive] Error 1
Comment 1 ernsteiswuerfel archtester 2024-01-21 12:17:38 UTC
Created attachment 882764 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2024-06-18 22:49:56 UTC
Upstream fix (not merged yet): https://github.com/jpirko/libndp/pull/28/commits/dfd70608a6a2ea164b18e7874de58ef6fd781cef