Looks like Solaris 11 has changes related to pre-defined macros.
Please change rshd.c line 120 to:

#if defined SOLARIS && !defined(TARGET_64BIT)
extern int killpg(pid_t pgrp, int sig);
extern int gethostname(char *name, int namelen);
#endif

Rayson



On Thu, Dec 22, 2011 at 12:09 PM, Geilow, John <[email protected]> wrote:
> Rayson,
>
> I try all your suggestion and I think I have got farther.
>
> I am using these command and I left gcc compiler uninstall.
> ./aimk -no-java -no-jni -no-secure -spool-classic -no-dump
> ./scripts/zerodepend
> ./aimk -no-java -no-jni -no-secure -spool-classic -no-dump depend
> ./aimk -no-java -no-jni -no-secure -spool-classic -no-dump
>
> Now my error is
> cc -DSGE_ARCH_STRING=\"sol-amd64\" -Xc -v -fast -xchip=generic 
> -xcache=generic -xarch=sse2 -m64 -ftrap=division -D_LARGEFILE64_SOURCE=1 
> -DHAS_SOCKLEN_T -I/build/berkeleydb/include/ -DTARGET_64BIT  
> -DSPOOLING_classic  -DSOLARIS -DSOLARISAMD64 -D__EXTENSIONS__ 
> -D_POSIX_C_SOURCE=199506L -DGETHOSTBYNAME_R5 -DGETHOSTBYADDR_R7 -DUSE_POLL 
> -errwarn=%all  -DNO_JNI -DCOMPILE_DC -D__SGE_COMPILE_WITH_GETTEXT__  
> -D__SGE_NO_USERMAPPING__ -DTHREADBINDING -DHWLOC -errwarn=%none -UKERBEROS 
> -I../../../daemons/common -I../../../common -I../../../libs/uti 
> -I../../../daemons/shepherd -c ../rshd.c
> "../rshd.c", line 92: warning: macro redefined: _PATH_BSHELL
> "../rshd.c", line 122: identifier redeclared: gethostname
>        current : function(pointer to char, int) returning int
>        previous: function(pointer to char, unsigned long) returning int : 
> "/usr/include/unistd.h", line 334
> cc: acomp failed for ../rshd.c
> *** Error code 2
> make: Fatal error: Command failed for target `rshd.o'
>
> John
>

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to