Discussion:
[torqueusers] Compiling Torque 6.1.0
ChatPristi
2017-01-11 11:29:32 UTC
Permalink
Dear All,
I am trying to install Torque 6.1.0 on macos sierra.
I was able to run the configure script works.
Runing make with clang compiler generates many errors.
Thus, I used gcc6 (fink installed). It ended with 4 errors  when compiling trq_auth.c:
env CC='/sw/bin/gcc-6' CXX='/sw/bin/g++-6' ./configure --with-boost-path=/sw/opt/boost-1_63/includemake
In file included from /usr/include/wchar.h:89:0,
                 from /sw/lib/gcc6/include/c++/6.3.0/cwchar:44,
                 from /sw/lib/gcc6/include/c++/6.3.0/bits/postypes.h:40,
                 from /sw/lib/gcc6/include/c++/6.3.0/bits/char_traits.h:40,
                 from /sw/lib/gcc6/include/c++/6.3.0/string:40,
                 from ../../../src/include/attribute.h:76,
                 from ../../../src/include/lib_ifl.h:4,
                 from trq_auth.c:2:
/sw/lib/gcc6/lib/gcc/x86_64-apple-darwin16.1.0/6.3.0/include/stdarg.h:52:0: note: this is the location of the previous definition
 #define va_copy(d,s) __builtin_va_copy(d,s)
 
trq_auth.c: In function ‘int validate_user(int, const char*, int, char*)’:
trq_auth.c:649:18: error: aggregate ‘ucred cr’ has incomplete type and cannot be defined
   struct ucred   cr;
                  ^~
trq_auth.c:663:32: error: invalid application of ‘sizeof’ to incomplete type ‘ucred’
   cr_size = sizeof(struct ucred);
                                ^
trq_auth.c:664:36: error: ‘SO_PEERCRED’ was not declared in this scope
   if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, (void *)&cr, &cr_size) < 0)
                                    ^~~~~~~~~~~
trq_auth.c: In function ‘void send_svr_disconnect(int, const char*)’:
trq_auth.c:822:10: error: ‘LOGIN_NAME_MAX’ was not declared in this scope
   len += LOGIN_NAME_MAX + 1;
          ^~~~~~~~~~~~~~

Thank you for your help.

Loading...