http://llvm.org/bugs/show_bug.cgi?id=19366

            Bug ID: 19366
           Summary: [3.4] no futimes/futimens on solaris (use futimesat
                    instead?)
           Product: Build scripts
           Version: 3.4
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: autoconf
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

On Solaris 10 (sparcv9) i get following compilation problem:
In file included from
/data/FBergemann/SRC2/llvm-release_34/lib/Support/Path.cpp:1035:0:
/data/FBergemann/SRC2/llvm-release_34/lib/Support/Unix/Path.inc:540:2: error:
#error Missing futimes() and futimens()
 #error Missing futimes() and futimens()
  ^

I could at least continue compilation for using futimesat(...) instead - hacked
this way:

#if defined(HAVE_FUTIMENS)
  timespec Times[2];
  Times[0].tv_sec = Time.toPosixTime();
  Times[0].tv_nsec = 0;
  Times[1] = Times[0];
  if (::futimens(FD, Times))
#elif defined(HAVE_FUTIMES)
  timeval Times[2];
  Times[0].tv_sec = Time.toPosixTime();
  Times[0].tv_usec = 0;
  Times[1] = Times[0];
  if (::futimes(FD, Times))
#else
  timeval Times[2];
  Times[0].tv_sec = Time.toPosixTime();
  Times[0].tv_usec = 0;
  Times[1] = Times[0];
  if (::futimesat(FD, NULL, Times))
#endif

Can you check, if you can incorporate futimesat(...) option into the build
procedure?

- thanks!

best regards,
Frank

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to