Summary: | net-fs/autofs-5.1.2[-libtirpc] - ../include/rpc_subs.h:19:21: fatal error: rpc/rpc.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | Current packages | Assignee: | Yixun Lan <dlan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 381391 | ||
Attachments: |
build log
emerge --info |
Description
Martin von Gagern
2016-06-29 06:05:16 UTC
Created attachment 439108 [details]
emerge --info
(In reply to Martin von Gagern from comment #0) > For the moment I'll simply enable the libtirpc USE flag manually, Does not solve the problem. Configured with --with-libtirpc, but configure reported checking if libtirpc is requested and available... no and after that it's back to “rpc/rpc.h: No such file or directory”. Details from the config log: configure:3188: checking if libtirpc is requested and available configure:3216: x86_64-pc-linux-gnu-gcc -o conftest -march=amdfam10 -O2 -ggdb -pipe -I/usr/include/tirpc -Wl,--as-needed -ltirpc conftest.c >&5 /var/tmp/portage/net-fs/autofs-5.1.2/temp/ccJIfquo.o: In function `main': /var/tmp/portage/net-fs/autofs-5.1.2/work/autofs-5.1.2/conftest.c:18: undefined reference to `clntudp_bufcreate' collect2: error: ld returned 1 exit status configure:3216: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define HAVE_LINUX_PROCFS 1 | /* end confdefs.h. */ | #include <rpc/rpc.h> | int | main () | { | CLIENT *cl; | struct sockaddr_in addr; | int fd; | unsigned long ul; struct timeval t; unsigned int ui; | cl = clntudp_bufcreate(&addr,ul,ul,t,&fd,ui,ui); | ; | return 0; | } configure:3221: result: no The problem here, as far as I can tell, is that -ltirpc should come AFTER conftest.c, not before it. aclocal.m4 writes this as af_check_libtirpc_save_cflags="$CFLAGS" af_check_libtirpc_save_ldflags="$LDFLAGS" CFLAGS="$CFLAGS -I/usr/include/tirpc" LDFLAGS="$LDFLAGS -ltirpc" where this probably should be going into LIBS instead of LDFLAGS. I don't know why the previous installation of autofs-5.1.1-r1 managed to pass the configure check, but the build log tells me that id did do so. (In reply to Martin von Gagern from comment #2) > > For the moment I'll simply enable the libtirpc USE flag manually, > Does not solve the problem. I've opened bug #588106 about the build problem with the libtirpc USE flag, so that this one here can concentrate on the original problem when that USE flag is NOT present. Since glibc-2.26 is removing rpc support unconditionally, we should probably just remove the libtirpc USE flag. (In reply to Mike Gilbert from comment #4) > Since glibc-2.26 is removing rpc support unconditionally, we should probably > just remove the libtirpc USE flag. removing USE=libtirpc sounds like a aggressive suggestion, let's leave it for a while, and I think this problem is already fixed by following commit. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016a75127809bdb2b6c396aa0c2b99aef665437c I'm closing this, please re-open if you still have problem |