Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Installing MinimServer on FreeNAS or FreeBSD
12-02-2021, 15:14
Post: #81
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
(12-02-2021 14:22)seanshankus Wrote:  I just came across Minim and this forum/thread. I'm running FreeNas 12.2 and am wondering how much variance i will find with this tutorial. I know i can set the version of a Jail backwards, but I think i will need to build the OHNet libraries, is this true? I'm not to afraid to do library builds, but i am a bit rusty (although seeing a Make files makes long for an earlier life). Is the library the only pitfall i might run into? I would think setting up the Jail, installing the Minim2 server would be fairly straight forward. so I think this library may be my only issue.

sean

Hello Sean,

I still use MinimServer 0.8.5.2 update 134 (this is the older release) on my FreeNAS (current stable release) on a daily basis and it works fine. You don't have to compile the libraries yourself, as I did that already and I provide them in this thread. Just follow the instruction and you should be set to go.

Regarding the newer MinimServer version, I didn't have time yet to look into that and try that out properly.

Cheers,
airflow
Find all posts by this user
Quote this message in a reply
12-02-2021, 23:10
Post: #82
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
If it helps, I am successfully running MinimServer 2.0.15 on FreeNAS-11.3-U5, albeit with an older ohNet version 1.17.2776.1 renamed to 1.30.3937.

The issue I really had was with MinimServer 2 licensing looking for address files which are not there on BSD, so I had to manually create and populate them as per my posting in September.

Hope this helps. If you have any issues with v2, I am happy to try and help.
Find all posts by this user
Quote this message in a reply
13-02-2021, 23:38
Post: #83
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
well i'm up and running MinimServer 2.0.16 on TrueNAS-12.0-U1 (I miss read the system version before). Now to play run it through enough to validate getting a full license. Thanks everyone for the help!!
I ran into the address thing before, but after manually created the files and populating them with the mac address everything spun up fine.
Find all posts by this user
Quote this message in a reply
15-02-2021, 22:16
Post: #84
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
(13-02-2021 23:38)seanshankus Wrote:  well i'm up and running MinimServer 2.0.16 on TrueNAS-12.0-U1 (I miss read the system version before). Now to play run it through enough to validate getting a full license. Thanks everyone for the help!!
I ran into the address thing before, but after manually created the files and populating them with the mac address everything spun up fine.

I'm glad that it works for you now!

Your request made me actually to look again into compiling the most recent version of ohnet (which is used by MinimServer).

So I tried compiling ohNet_1.30.3937 for FreeBSD. However, I'm running into some kind of error which is resulting from a memaccess-warning. The message after which the compilation breaks is this:

Code:
gcc -o Build/Obj/Posix/Release/Timer.o -c  -fexceptions -Wall  -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -g -O2 -fvisibility=hidden   -fPIC -DPOSIX_STACK_TRACE -DSET_PTHREAD_NAMES -std=c++0x -Werror -IBuild/Include/  OpenHome/Timer.cpp
OpenHome/Timer.cpp: In constructor 'OpenHome::TimerManager::CallbackList::CallbackList()':
OpenHome/Timer.cpp:311:41: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OpenHome::TimerManager::Callback'; use assignment or value-initialization instead [-Werror=class-memaccess]
  311 |     (void)memset(iList, 0, sizeof(iList));
      |                                         ^
In file included from OpenHome/Timer.cpp:1:
Build/Include/OpenHome/Private/Timer.h:88:11: note: 'class OpenHome::TimerManager::Callback' declared here
   88 |     class Callback
      |           ^~~~~~~~
cc1plus: all warnings being treated as errors
gmake: *** [Common.mak:412: Build/Obj/Posix/Release/Timer.o] Error 1

I'm not sure if this is really critical and if I should fix something in the code. Due to the message "all warnings being treated as errors" I have the impression that this could be fixed by just ignoring that warning. In the past, Simon has often be very helpful in giving me hints in the right direction, which in the end made it possible for me to finally compile everything. If one of you guys have an input on this issue, please let me know. Otherwise I would just try to "fix" this by ignoring the warning.
Find all posts by this user
Quote this message in a reply
16-02-2021, 09:01
Post: #85
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
Can you post the warning message?
Find all posts by this user
Quote this message in a reply
16-02-2021, 10:06
Post: #86
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
(16-02-2021 09:01)simoncn Wrote:  Can you post the warning message?

For sure! To my understanding, the warning-message ist already posted above. I think it is the line

Code:
OpenHome/Timer.cpp:311:41: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class OpenHome::TimerManager::Callback'; use assignment or value-initialization instead [-Werror=class-memaccess]

In case I miss something, I pasted the complete output from the build-process here.
Find all posts by this user
Quote this message in a reply
16-02-2021, 10:24 (This post was last modified: 16-02-2021 10:30 by simoncn.)
Post: #87
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
I didn't see the message in your first post because of a problem viewing the scrollable window. On my phone, the scroll bar doesn't show and the contents of the scrollable window are cut off before the message starts. I will investigate and post back here.
Find all posts by this user
Quote this message in a reply
16-02-2021, 10:36
Post: #88
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
This memset line has been in the Timer.cpp file for at least 5 years. I think the message is caused by a compiler setting and can be ignored.
Find all posts by this user
Quote this message in a reply
16-02-2021, 10:54
Post: #89
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
(16-02-2021 10:36)simoncn Wrote:  This memset line has been in the Timer.cpp file for at least 5 years. I think the message is caused by a compiler setting and can be ignored.

I understand, thanks for checking. So I will look into modifying the compiler settings to ignore the warning (and not trigger an error).
Find all posts by this user
Quote this message in a reply
16-02-2021, 14:04
Post: #90
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD
I could fix the previous error by modifying the Makefile and removing each occurance of the flag/parameter "-Werror".

After that, I ran into this problem:

Code:
rsync -u Os/*.inl Build/Include/OpenHome
gcc -o Build/Obj/Posix/Release/Os.o -c  -fexceptions -Wall  -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -g -O2 -fvisibility=hidden  -fPIC -DPLATFORM_FREEBSD -Wno-int-to-pointer-cast -IBuild/Include/  Os/Posix/Os.c
Os/Posix/Os.c:83: warning: "MSG_NOSIGNAL" redefined
   83 | # define MSG_NOSIGNAL 0
      |
In file included from Os/Posix/Os.c:15:
/usr/include/sys/socket.h:462: note: this is the location of the previous definition
  462 | #define MSG_NOSIGNAL  0x00020000 /* do not generate SIGPIPE on EOF */
      |
Os/Posix/Os.c: In function 'isWireless':
Os/Posix/Os.c:1323:18: error: storage size of 'pwrq' isn't known
1323 |     struct iwreq pwrq;
      |                  ^~~~
Os/Posix/Os.c:1331:23: error: 'SIOCGIWNAME' undeclared (first use in this function); did you mean 'SIOCSIFNAME'?
1331 |     err = ioctl(sock, SIOCGIWNAME, &pwrq);
      |                       ^~~~~~~~~~~
      |                       SIOCSIFNAME
Os/Posix/Os.c:1331:23: note: each undeclared identifier is reported only once for each function it appears in
Os/Posix/Os.c:1323:18: warning: unused variable 'pwrq' [-Wunused-variable]
1323 |     struct iwreq pwrq;
      |                  ^~~~
gmake: *** [Common.mak:438: Build/Obj/Posix/Release/Os.o] Error 1

So this is coming from the some function called "isWireless". I cannot identify if this problem is resulting from incompatibilities between Linux and FreeBSD or if it is sourced somewhere else. Any input is greatly appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)