Hello,
has anyone compiled grid engine on a solaris 11 machine? I compiled
« only-core » but that isn't enough to be a server.
Here's how I configured:
CC=gcc ./aimk -gcc -only-depend
scripts/zerodepend
CC=gcc ./aimk -cc -no-secure -no-java -no-gui-inst -no-jni
-spool-classic -only-64 depend
CC=gcc ./aimk -cc -no-secure -no-java -no-gui-inst -no-jni
-spool-classic -only-64
I also had to edit 3rdparty/remote/rshd.c because of prototypes and aimk
to remove some options that make the compiler fail (--errwarn=... and
similar).
Here's the error I have:
rm -f gethost
gcc -o gethost -xarch=amd64 -DSOLARISAMD64 -DPROG_NAME='"qtcsh"' -I..
-I.. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' -I../../../libs/gdi
.../gethost.c -lsocket -lnsl -ltermlib
gcc: language arch=amd64 not recognized
gcc: language arch=amd64 not recognized
ld: fatal: file ../gethost.c: unknown file type
ld: fatal: file processing errors. No output written to gethost
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `gethost'
not done
There are a lot of « -xarch=amd64» options that are not recognized but I
don't think that's the cause of this problem.
If I try to compile with cc, I get different problems, for example:
cc -c -DSOLARIS64 -DPROG_NAME='"qtcsh"' -I. -I..
-D_PATH_TCSHELL='"/usr/local/bin/tcsh"' -I../../../libs/gdi ../tc.who.c
"../tc.who.c", line 241: syntax error before or at: do
"../tc.who.c", line 251: syntax error before or at: if
"../tc.who.c", line 251: warning: old-style declaration or incorrect
type for: sta
"../tc.who.c", line 251: warning: old-style declaration or incorrect
type for: st_mtim
"../tc.who.c", line 251: warning: old-style declaration or incorrect
type for: tv_sec
"../tc.who.c", line 259: warning: old-style declaration or incorrect
type for: stlast
"../tc.who.c", line 259: identifier redefined: stlast
current : int
previous: long : "../tc.who.c", line 119
"../tc.who.c", line 259: warning: left operand of "." must be
struct/union object
"../tc.who.c", line 259: cannot access member of non-struct/union object
"../tc.who.c", line 259: non-constant initializer: op "NAME"
"../tc.who.c", line 260: syntax error before or at: if
"../tc.who.c", line 260: syntax error before or at: =
"../tc.who.c", line 260: warning: undefined or missing type for: do
"../tc.who.c", line 260: warning: old-style declaration or incorrect
type for: open
"../tc.who.c", line 260: warning: identifier redeclared: open
current : function() returning int
previous: function(pointer to const char, int, ...) returning
int : "/usr/include/fcntl.h", line 110
"../tc.who.c", line 275: warning: old-style declaration or incorrect
type for: whohead
"../tc.who.c", line 275: identifier redeclared: whohead
current : int
previous: struct who {pointer to struct who {..} who_next,
pointer to struct who {..} who_prev, array[33] of char who_name,
array[33] of char who_new, array[33] of char who_tty, array[258] of char
who_host, long who_time, int who_status} : "../tc.who.c", line 117
"../tc.who.c", line 275: warning: old-style declaration or incorrect
type for: who_next
"../tc.who.c", line 275: warning: old-style declaration or incorrect
type for: wp
"../tc.who.c", line 275: syntax error before or at: ->
"../tc.who.c", line 275: warning: old-style declaration or incorrect
type for: who_next
"../tc.who.c", line 275: warning: syntax error: empty declaration
"../tc.who.c", line 275: warning: old-style declaration or incorrect
type for: wp
"../tc.who.c", line 275: left operand of "->" must be pointer to
struct/union
"../tc.who.c", line 275: warning: improper pointer/integer combination:
op "="
"../tc.who.c", line 275: non-constant initializer: op "U*"
"../tc.who.c", line 275: syntax error before or at: )
"../tc.who.c", line 284: syntax error before or at: (
"../tc.who.c", line 284: cannot recover from previous errors
cc: acomp failed for ../tc.who.c
*** Error code 2
make: Fatal error: Command failed for target `tc.who.o'
Any suggestions?
Thanks.
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users