[DiscordArchive] Hey all, I am trying to install on my freebsd server within a jail so that I don't need my pc to be
[DiscordArchive] Hey all, I am trying to install on my freebsd server within a jail so that I don't need my pc to be
![[Image: image.png?ex=690c036d&is=690ab1ed&hm=283...84f9cdca2&]](https://cdn.discordapp.com/attachments/284406375495368704/1194825463219101838/image.png?ex=690c036d&is=690ab1ed&hm=283ff0fcabac77eba02ce2d6c04db6d1222f14c57d81d237a035d8f84f9cdca2&)
Archived author: Cirka • Posted: 2024-01-11T02:09:49.261000+00:00
Original source
Hey all, I am trying to install on my freebsd server within a jail so that I don't need my pc to be running for some friends and family to play. There is no issue running on my local machine (using linux and docker) but I am finding when I try to run my make on the freebsd jail I am getting an arithmetic error on a particular file. I am not experienced enough with C++ as I mainly use higher level languages.
the error I get when doing my make -j 4 is:
```shell
src/common/Utilities/Timer.cpp:250:17: fatal error: arithmetic on a pointer to the function type 'char *(int, int)'
return time + timezone;
^ ~~~~~~~~
1 error generated.
```
I am getting an error on line 250 (see screenshot)
I can see timezone is only referenced on line 250 and line 248.
My assumption is there is some local kernel level code that on windows is _timezone to get the current timezone and on linux is just timezone, am I on the right track?
![[Image: image.png?ex=690c036d&is=690ab1ed&hm=283...84f9cdca2&]](https://cdn.discordapp.com/attachments/284406375495368704/1194825463219101838/image.png?ex=690c036d&is=690ab1ed&hm=283ff0fcabac77eba02ce2d6c04db6d1222f14c57d81d237a035d8f84f9cdca2&)
Archived author: Revision • Posted: 2024-01-11T02:13:34.043000+00:00
Original source
It's part of the C++ libraries, although afaik _timezone is deprecated in favor of a more secure option.
Archived author: Cirka • Posted: 2024-01-11T02:37:24.965000+00:00
Original source
Interesting, those lines are still present in the source code, _timezone is most definitely still referenced in the Microsoft docs, but I can't find any documentation around the global variable timezone on freebsd systems. (I assume it is different which is why it is throwing a hissy on my system)
Archived author: Revision • Posted: 2024-01-11T02:46:46.148000+00:00
Original source
I don't do a lot of development under Linux, just test code and run all servers using it, so I'm not sure where timezone comes from.
Archived author: JacatinRawr • Posted: 2024-01-11T03:12:49.139000+00:00
Original source
hello, is there any case that addons used on other player's client can cause server to crash? <:catwhat:1101498477327941784>
Archived author: Revision • Posted: 2024-01-11T03:26:52.231000+00:00
Original source
That would surprise me
Archived author: Cirka • Posted: 2024-01-11T03:29:33.578000+00:00
Original source
I super don't want to have to run a linux vm on my freebsd server to run ac on it. I suspect that the issue is that on freebsd the timezone is a char type global variable, I just can't find any documentation to support that/what the alternative would be.
Archived author: JacatinRawr • Posted: 2024-01-11T03:39:11.555000+00:00
Original source
figuring out if the other player's client is the problem. because in gm client doing a quest, completing it and its fine. if other player (maybe other client too) the server crashed xd