[torquedev] Release Candidate for TORQUE 2.5.8

Christopher Samuel samuel at unimelb.edu.au
Mon Aug 22 19:24:44 MDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19/08/11 06:48, Martin Siegert wrote:

> I just compiled this by accident with gcc-4.4.0 (instead of gcc-4.1.2
> which I usually use). gcc-4.4.0 spits out even more errors:
> 
> cc1: warnings being treated as errors
> job_route.c: In function ‘initialize_procct’:
> job_route.c:210: error: ‘pprocsp’ may be used uninitialized in this
> function
> make[2]: *** [job_route.o] Error 1
> 
> This can be fixed by adding a line
> 
>     pprocsp = NULL;
> 
> before the
>     if(pprocs_def != NULL)
> statement.

It might be better to fix it by just initialising it to
NULL at declaration time, thus:

  resource     *pprocsp=NULL;

> But then:
> 
> cc1: warnings being treated as errors
> process_request.c: In function ‘get_creds’:
> process_request.c:288: error: dereferencing type-punned pointer will
> break strict-aliasing rules
> make[2]: *** [process_request.o] Error 1

That doesn't appear for me at all under GCC 4.5.2, instead
I get a failure in the PAM code:

 gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include -I../../src/include -DPBS_SERVER_HOME=\"/var/spool/torque\" -g -O2 -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -D_LARGEFILE64_SOURCE -DGEOMETRY_REQUESTS -DALWAYS_USE_CPUSETS -MT pam_pbssimpleauth.lo -MD -MP -MF .deps/pam_pbssimpleauth.Tpo -c pam_pbssimpleauth.c  -fPIC -DPIC -o .libs/pam_pbssimpleauth.o
cc1: warnings being treated as errors
pam_pbssimpleauth.c: In function 'pam_sm_authenticate':
pam_pbssimpleauth.c:125:3: error: passing argument 1 of 'getpwnam_ext' discards qualifiers from pointer target type
../../src/include/utils.h:140:23: note: expected 'char *' but argument is of type 'const char *'


A good reason not to disable warnings!

cheers,
Chris
- -- 
    Christopher Samuel - Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: samuel at unimelb.edu.au Phone: +61 (0)3 903 55545
         http://www.vlsci.unimelb.edu.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5TAVwACgkQO2KABBYQAh+tAQCeNpE0Lkf/10Zwkbe8rbiqEdq7
mqIAn0ALEXFlmtRNf7w5h5twcadffaNX
=L0BM
-----END PGP SIGNATURE-----


More information about the torquedev mailing list