[torqueusers] Compiling Torque 4.2.7 on Solaris 11 on SPARC

Ken Nielson knielson at adaptivecomputing.com
Thu Mar 6 15:53:25 MST 2014


Johnathan,

We have not tried to get the 4.x code to compile with Solaris. Even so if
you can help we would be happy to see if we can fix the compiler errors you
are having.

Regards


On Thu, Mar 6, 2014 at 10:12 AM, Jonathan Whitehead <
j_m_whitehead at yahoo.co.uk> wrote:

> Having some problems compiling the latest version of torque on solaris 11
> on sparc.
>
> After issuing a plain ./configure and then running make I first hit this
> error :
>
> DEPDIR=.deps depmode=none /bin/sh ../../../buildutils/depcomp \
> CC -DHAVE_CONFIG_H -I. -I../../../src/include  -I../../../src/include
>  -g -c attr_fn_hold.c
> "../../../src/include/hash_table.h", line 83: Error: Could not open
> include file "endian.h".
> "../../../src/include/hash_table.h", line 135: Warning: Implicit int is
> not supported in C++.
> "../../../src/include/hash_table.h", line 135: Error: "," expected
> instead of ":".
> "../../../src/include/hash_table.h", line 155: Error: A declaration was
> expected instead of "}".
>
> The file endian.h doesn't exist on Solaris, apparently sys/types.h should
> work instead of it but it still had problems,  I worked around this by
> hardcoding the definitions to BIGENDIAN as this is what solaris on sparc
> should be.
>
> re-running make the next error encountered was :
>
> CC -DHAVE_CONFIG_H -I. -I../../../src/include  -I../../../src/include
>  -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\"
> -DPBS_SERVER_HOME=\"/var/spool/torque\"  -g -c pbsD_connect.c
> "pbsD_connect.c", line 725: Error: SIOCGIFCONF is not defined.
> "pbsD_connect.c", line 741: Error: SIOCGIFADDR is not defined.
> "pbsD_connect.c", line 1337: Warning (Anachronism): Assigning void(*)(int)
> to extern "C" void(*)(int).
> "pbsD_connect.c", line 1403: Error: Badly formed expression.
> "pbsD_connect.c", line 1409: Error: S_un is not defined.
> "pbsD_connect.c", line 1409: Error: Badly formed expression.
> "pbsD_connect.c", line 1411: Error: S_un is not defined.
> "pbsD_connect.c", line 1411: Error: Badly formed expression.
> "pbsD_connect.c", line 1423: Error: S_un is not defined.
> "pbsD_connect.c", line 1423: Error: Badly formed expression.
> "pbsD_connect.c", line 1424: Error: S_un is not defined.
> "pbsD_connect.c", line 1424: Error: Badly formed expression.
> 11 Error(s) and 1 Warning(s) detected.
> *** Error code 2
> make: Fatal error: Command failed for target `pbsD_connect.o'
>
> I included #include <sys/sockio.h> to be able to sort these errors :
>
> "pbsD_connect.c", line 725: Error: SIOCGIFCONF is not defined.
> "pbsD_connect.c", line 741: Error: SIOCGIFADDR is not defined.
>
> but these still remain and are beyond my limited C skills.
>
> "pbsD_connect.c", line 1337: Warning (Anachronism): Assigning void(*)(int)
> to extern "C" void(*)(int).
> "pbsD_connect.c", line 1403: Error: Badly formed expression.
> "pbsD_connect.c", line 1409: Error: S_un is not defined.
> "pbsD_connect.c", line 1409: Error: Badly formed expression.
> "pbsD_connect.c", line 1411: Error: S_un is not defined.
> "pbsD_connect.c", line 1411: Error: Badly formed expression.
> "pbsD_connect.c", line 1423: Error: S_un is not defined.
> "pbsD_connect.c", line 1423: Error: Badly formed expression.
> "pbsD_connect.c", line 1424: Error: S_un is not defined.
> "pbsD_connect.c", line 1424: Error: Badly formed expression.
>
> Has anyone managed to get Torque 4.X working on Solaris11 on SPARC?
>
> We had a working installation of 2.4.8 on Solaris 10 and we are trying to
> migrate to Solaris 11 and we haven't tried to compile torque since we
> installed that version so we don't know when it stopped be able to compile
> on Solaris.
>
> Thanks,
>
> Jonathan
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>
>


-- 
Ken Nielson
+1 801.717.3700 office +1 801.717.3738 fax
1712 S. East Bay Blvd, Suite 300  Provo, UT  84606
www.adaptivecomputing.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20140306/72dff4e0/attachment.html 


More information about the torqueusers mailing list