Summary: | net-fs/openafs-1.4.7_pre3 fails to build with sys-devel/autoconf-2.62 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Stefaan De Roeck (RETIRED) <stefaan> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs+gentoo, dliana, felix, net-fs |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 217647 | ||
Attachments: |
Build output when using autoconf-2.62
Differences between working (2.61) and failing (2.62) version of afsconfig.h |
Description
Juergen Rose
2008-04-18 09:06:01 UTC
Confirmed. Issue seems to arise on my machine as well. However only when sys-devel/autoconf-2.62 is installed. With sys-devel/autoconf-2.61-r1 it seems to work fine. Created attachment 150289 [details]
Build output when using autoconf-2.62
A lot more warnings are printed with autoconf-2.62 then with autoconf-2.61, but I have no clue as to whether they have anything to do with the failure.
Created attachment 150291 [details]
Differences between working (2.61) and failing (2.62) version of afsconfig.h
The error seems to appear in src/config/afsconfig.h. Still no idea how they appear though. I leave this to the interested bug squasher, time's up for today.
Make sure that iomgr.c includes config.h before _any_ include file. Also check if afsconfig.h has any #include directive. Somehow autoconf 2.62 changes the way _GNU_SOURCE is defined and this hit at least Linux-PAM and PHP lately. A possible workaround is append-flags -D_GNU_SOURCE in the ebuild, which is what I've done on Linux-PAM. (In reply to comment #4) > Somehow autoconf 2.62 changes the way _GNU_SOURCE is defined and this hit at > least Linux-PAM and PHP lately. A possible workaround is append-flags > -D_GNU_SOURCE in the ebuild, which is what I've done on Linux-PAM. It seems that _GNU_SOURCE is indeed what triggers the problem, however, -D_GNU_SOURCE is what makes openafs fail in the first place here. Specifying it as command line option is hence not an option. Looking deeper, suggestions welcome :) from /usr/share/autoconf/autoconf/specific.m4: ## -------------------------- ## ## Checks for UNIX variants. ## ## -------------------------- ## # These are kludges which should be replaced by a single POSIX check. # They aren't cached, to discourage their use. # AC_AIX # ------ AU_DEFUN([AC_AIX], [AC_USE_SYSTEM_EXTENSIONS]) # AC_MINIX # -------- AU_DEFUN([AC_MINIX], [AC_USE_SYSTEM_EXTENSIONS]) and both AC_AIX and AC_MINIX can be found in acinclude.m4 Removing AC_AIX and AC_MINIX from the acinclude.m4 file seemed like the most easy way to work around this. Closing because fixed in net-fs/openafs-1.4.7_pre3-r1. |