Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[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

rektbyfaith
Administrator
0
01-11-2024, 02:09 AM
#1
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&]
rektbyfaith
01-11-2024, 02:09 AM #1

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&]

rektbyfaith
Administrator
0
01-11-2024, 02:13 AM
#2
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.
rektbyfaith
01-11-2024, 02:13 AM #2

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.

rektbyfaith
Administrator
0
01-11-2024, 02:37 AM
#3
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)
rektbyfaith
01-11-2024, 02:37 AM #3

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)

rektbyfaith
Administrator
0
01-11-2024, 02:46 AM
#4
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.
rektbyfaith
01-11-2024, 02:46 AM #4

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.

rektbyfaith
Administrator
0
01-11-2024, 03:12 AM
#5
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>
rektbyfaith
01-11-2024, 03:12 AM #5

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>

rektbyfaith
Administrator
0
01-11-2024, 03:26 AM
#6
Archived author: Revision • Posted: 2024-01-11T03:26:52.231000+00:00
Original source

That would surprise me
rektbyfaith
01-11-2024, 03:26 AM #6

Archived author: Revision • Posted: 2024-01-11T03:26:52.231000+00:00
Original source

That would surprise me

rektbyfaith
Administrator
0
01-11-2024, 03:29 AM
#7
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.
rektbyfaith
01-11-2024, 03:29 AM #7

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.

rektbyfaith
Administrator
0
01-11-2024, 03:39 AM
#8
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
rektbyfaith
01-11-2024, 03:39 AM #8

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)