The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=14386 ====================================================================== Reported By: pinker Assigned To: ====================================================================== Project: CMake Issue ID: 14386 Category: CMake Reproducibility: always Severity: block Priority: normal Status: new ====================================================================== Date Submitted: 2013-09-03 03:36 EDT Last Modified: 2013-09-03 03:36 EDT ====================================================================== Summary: Broken build (proposing fix) Description: Last build version for HP-UX is 2.8.2, which is kinda outdated and I wanted new one. When building from source, it fails:
clag@migs01a:~/projects/tomas/cmake-2.8.11.2$ aCC --version aCC: HP C/aC++ B3910B A.06.20 [May 13 2008] clag@migs01a:~/projects/tomas/cmake-2.8.11.2$ uname -a HP-UX migs01a B.11.31 U ia64 0841004181 unlimited-user license "/home/clag/projects/tomas/cmake-2.8.11.2/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c", line 2058: error http://www.cmake.org/Bug/view.php?id=2513: a value of type "struct timeval" cannot be assigned to an entity of type "timestruc_t" tstamp.atime = times[0]; ^ "/home/clag/projects/tomas/cmake-2.8.11.2/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c", line 2059: error http://www.cmake.org/Bug/view.php?id=2513: a value of type "struct timeval" cannot be assigned to an entity of type "timestruc_t" tstamp.mtime = times[1]; ^ "/home/clag/projects/tomas/cmake-2.8.11.2/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c", line 2060: error http://www.cmake.org/Bug/view.php?id=2513: a value of type "struct timeval" cannot be assigned to an entity of type "timestruc_t" tstamp.ctime = times[2]; http://pubs.opengroup.org/onlinepubs/7908799/xsh/systime.h.html http://kerneldox.com/kdox-linux/d1/d70/structtimestruc__t.html#aa44f56f3d402c81d1403dfe7b385e0e0 Those are different structs, one has tv_nsec while other have tv_usec I manage to build it after I changed those 3 lines to: tstamp.atime.tv_sec = times[0].tv_sec; tstamp.atime.tv_nsec = times[0].tv_usec * 1000; tstamp.mtime.tv_sec = times[1].tv_sec; tstamp.mtime.tv_nsec = times[1].tv_usec * 1000; tstamp.ctime.tv_sec = times[2].tv_sec; tstamp.ctime.tv_nsec = times[2].tv_usec * 1000; ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-09-03 03:36 pinker New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers