bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7142: coreutils on Solaris 10(x86) 09/10


From: Eric Blake
Subject: bug#7142: coreutils on Solaris 10(x86) 09/10
Date: Mon, 04 Oct 2010 13:42:18 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

[adding bug-gnulib]

On 10/04/2010 01:37 PM, Paul Eggert wrote:
Does the following patch to lib/openat.h fix the problem for you?

--- old/lib/openat.h    2010-04-23 06:44:00.000000000 -0700
+++ new/lib/openat.h    2010-10-04 12:36:16.924755978 -0700
@@ -94,21 +94,16 @@
  }

  #if GNULIB_FACCESSAT
-/* For now, there are no wrappers named laccessat or leuidaccessat,
+/* These are macros, not inline functions, so that special libraries
+   such as -lgen are not needed unless the macros are invoked.
+
+   For now, there are no wrappers named laccessat or leuidaccessat,
     since gnulib doesn't support faccessat(,AT_SYMLINK_NOFOLLOW) and
     since access rights on symlinks are of limited utility.  */

-static inline int
-accessat (int fd, char const *file, int mode)
-{
-  return faccessat (fd, file, mode, 0);
-}
+# define accessat(fd, file, mode) faccessat (fd, file, mode, 0)

Bingo - looks like a plausible root cause! In which case, the change to coreutils' src/Makefile.am is not necessary.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]