Giter Site home page Giter Site logo

mistserver on archlinux arm about mistserver HOT 4 CLOSED

ddvtech avatar ddvtech commented on August 23, 2024
mistserver on archlinux arm

from mistserver.

Comments (4)

qinohe avatar qinohe commented on August 23, 2024

Dove a little bit deeper into the number '2208988800', and what it represents, and it's about the epoch on a 32 bit system. This machine is a RaspberryPi 2, and it honers the 32bit epoch fail after 2147483647 which will be 'Tue Jan 19 04:14:07 CET 2038' (local Netherlands). 2147483648 will fail.The next patch builds without problems, and is better than the former.

diff -aur mistserver-git.a/lib/timing.cpp mistserver-git.b/lib/timing.cpp
--- mistserver-git.a/lib/timing.cpp 2016-01-29 19:20:44.204785618 +0100
+++ mistserver-git.b/lib/timing.cpp 2016-01-29 19:24:30.763429287 +0100
@@ -65,7 +65,7 @@
long long Util::getNTP() {
struct timespec t;
clock_gettime(CLOCK_REALTIME, &t);
- return ((((long long int)t.tv_sec) + 2208988800) << 32) + (t.tv_nsec * 4.2949);
+ return ((((long long int)t.tv_sec) + 2147483647) << 32) + (t.tv_nsec * 4.2949);
}

/// Gets the current time in milliseconds.

from mistserver.

Thulinma avatar Thulinma commented on August 23, 2024

Thanks! We're actually working on a long overdue change to the source that will make it fully compatible with other processor types, and will make sure to pick this up during that!

from mistserver.

gdm85 avatar gdm85 commented on August 23, 2024

By the way, for those willing to try a binary ARMHF build I have put mine on:
https://dl.bintray.com/gdm85/ubuntu14-bin/

(latest master) It was not possible to build with make -j because of memory limitations of my device, but in the end it finished successfully (albeit the warnings). Now I am going to give this a try :)

from mistserver.

Thulinma avatar Thulinma commented on August 23, 2024

ARMv7 and ARMv8-64 builds are now officially supported (and available on the website).
Should there still be any problems with compiling on ARM, feel free to re-open this issue.

from mistserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.