[molpro-user] gecos.c compilation error on IRIX 6.5

Nick Wilson WilsonNT at Cardiff.ac.uk
Tue Jan 31 16:02:56 GMT 2006


Martin,

Fixed in patch 2002.10.gecos_extern by adding:
extern char *getenv();

Best wishes,
Nick

Martin Chorley wrote:
> I am trying to compile Molpro 2002.10 on an SGI machine running IRIX 
> 6.5, but am getting this error during compilation:
> 
> make[3]: Entering directory molpro2002.10/src/util'
> gecos.c: compiling ... failed:
> cc -G0 -64 -mips4 -i8 -DI64 -DIRIX64 -c -DSEEK=.001 -DSPEED=3000000 
> -DMPIGM_FORMAT=1 -DZLIB -DHAVE_INTTYPES_H -DMA_ALLOC -DMOLPROC_PAR -I. 
> -I. -O3 gecos.c
> cc-1515 cc: ERROR File = gecos.c, Line = 29
>  A value of type "int" cannot be assigned to an entity of type "char *".
> 
>    l=logname=getenv("LOGNAME");
>             ^
> 
> cc-1552 cc: WARNING File = gecos.c, Line = 27
>  The variable "logname" is set but never used.
> 
>    char *logname, *l;
>          ^
> 
> 1 error detected in the compilation of "gecos.c".
> make[3]: *** [gecos.o] Error 1
> make[3]: Leaving directory `molpro2002.10/src/util'
> make[2]: *** [objects] Error 2
> make[2]: Leaving directory `molpro2002.10/src/util'
> make[1]: *** [util] Error 2
> make[1]: Leaving directory `molpro2002.10/src'
> make: *** [src] Error 2
> 
> I think it may be something to do with the MIPSpro compiler (using 
> version 7.3.1.3m), but I have no idea how to fix it. Can anyone help?
> 
> Thanks,
> 
> Martin



More information about the Molpro-user mailing list