Post Reply 
 
Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Installing MinimServer on FreeNAS or FreeBSD
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 


Messages In This Thread
RE: [Tutorial] Installing MinimServer on FreeNAS or FreeBSD - airflow - 16-02-2021 14:04

Forum Jump:


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