Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624320 - net-libs/libndp-1.6-r1 fails to build with musl
Summary: net-libs/libndp-1.6-r1 fails to build with musl
Status: RESOLVED FIXED
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:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2017-07-09 07:36 UTC by Patrick McMunn
Modified: 2019-06-13 01:06 UTC (History)
0 users

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


Attachments
libndp-1.6-musl.patch (libndp-1.6-musl.patch,319 bytes, patch)
2017-07-09 07:38 UTC, Patrick McMunn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McMunn 2017-07-09 07:36:35 UTC
Making all in utils
make[1]: Entering directory '/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6-abi_x86_64.amd64/utils'
x86_64-gentoo-linux-musl-gcc -DPACKAGE_NAME=\"libndp\" -DPACKAGE_TARNAME=\"libndp\" -DPACKAGE_VERSION=\"1.6\" -DPACKAGE_STRING=\"libndp\ 1.6\" -DPACKAGE_BUGREPORT=\"jiri@resnulli.us\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libndp\" -DVERSION=\"1.6\" -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.6-r1/work/libndp-1.6/utils    -I/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/include -march=x86-64 -mtune=generic -O2 -pipe -Wall -c -o ndptool.o /var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c: In function ‘run_main_loop’:
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c:61:2: error: unknown type name ‘fd_set’
  fd_set rfds;
  ^
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c:62:2: error: unknown type name ‘fd_set’
  fd_set rfds_tmp;
  ^
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c:102:2: warning: implicit declaration of function ‘FD_ZERO’ [-Wimplicit-function-declaration]
  FD_ZERO(&rfds);
  ^
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c:104:2: warning: implicit declaration of function ‘FD_SET’ [-Wimplicit-function-declaration]
  FD_SET(ndp_fd, &rfds);
  ^
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c:109:9: warning: implicit declaration of function ‘pselect’ [-Wimplicit-function-declaration]
   ret = pselect(fdmax, &rfds_tmp, NULL, NULL, NULL, &mask);
         ^
/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6/utils/ndptool.c:118:7: warning: implicit declaration of function ‘FD_ISSET’ [-Wimplicit-function-declaration]
   if (FD_ISSET(ndp_fd, &rfds_tmp)) {
       ^
make[1]: *** [Makefile:400: ndptool.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/libndp-1.6-r1/work/libndp-1.6-abi_x86_64.amd64/utils'
make: *** [Makefile:387: all-recursive] Error 1

Reproducible: Always
Comment 1 Patrick McMunn 2017-07-09 07:38:14 UTC
Created attachment 482406 [details, diff]
libndp-1.6-musl.patch

This adds a needed include.
Comment 2 Felix Janda 2017-07-09 11:57:28 UTC
Just FYI, this patch is already upstream:

https://github.com/jpirko/libndp/commit/94e9a082d76414f82794b0c9817d0c24e3868275
Comment 3 Patrick McMunn 2017-07-09 17:16:40 UTC
Yes, it is. But that was committed 4 days after the 1.6 release.
Comment 4 Jory A. Pratt gentoo-dev 2019-06-13 01:06:27 UTC
1.7 is in tree which works fine with musl