• Netsurf build failure: mach/clock.h missing

    From =?utf-8?B?Sm/Do28=?= Pedro Malhado@21:1/5 to All on Thu Apr 22 13:30:01 2021
    Hello everyone,

    I was looking at what graphical browsers are working with the hurd. I don't know
    what are people's experience, but I have found that Dillo works reliably at what
    it does, but it is a somewhat limited browser. I also tried Surf as a modern fully feature browser but with few bells ans whistles, and although it is able to load perhaps a first page, I found it crashes very often (might be Surf itself or something in lower down the stack).

    I thought that Netsurf could be something that could work well. It is however failing to build on the hurd at the moment with the error:

    src/time.c:25:10: fatal error: mach/clock.h: No such file or directory

    https://buildd.debian.org/status/package.php?p=netsurf

    Is this something easy to fix and patch?
    If this is a result from a recent change, would there be other packages in the repository affected by the same problem?

    Regards,
    João

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Samuel Thibault@21:1/5 to All on Thu Apr 22 13:50:01 2021
    João Pedro Malhado, le jeu. 22 avril 2021 13:10:04 +0200, a ecrit:
    src/time.c:25:10: fatal error: mach/clock.h: No such file or directory

    https://buildd.debian.org/status/package.php?p=netsurf

    Is this something easy to fix and patch?

    Yes, see https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#mach_clock

    If this is a result from a recent change,

    It's not.

    would there be other packages in the repository affected by the same
    problem?

    Various packages wrongly think that mach == apple. The fix is usually
    very simple.

    Samuel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)