I have problem to reproduce the compile error - can you let me know the version of Sun Studio (cc -V) on your machine? I am using a rather old (6+ years) compiler and it works for me. I looked at the line numbers reported by cc in your output, it seems to be a bit different than what I could get on my Solaris 10/SPARC machine. If you can send me the pre-processed (add -E when you invoke cc) output in a seperate email, then I can debug it & find out why it is complaining.
If you still have gcc installed, can you compile it by hand and see if it works with gcc? % cd 3rdparty/qtcsh/SOLARISAMD64 % gcc -c -xarch=amd64 -DSOLARISAMD64 -DPROG_NAME='"qtcsh"' -I. -I.. -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' -I../../../libs/gdi ../tc.who.c Rayson On Thu, Dec 22, 2011 at 1:33 PM, Geilow, John <[email protected]> wrote: > > Rayson, > > I got father again with that fix, now I get this. > > cc -c -xarch=amd64 -DSOLARISAMD64 -DPROG_NAME='"qtcsh"' -I. -I.. > -D_PATH_TCSHELL='"/usr/local/bin/tcsh"' -I../../../libs/gdi ../tc.who.c > cc: Warning: -xarch=amd64 is deprecated, use -m64 to create 64-bit programs > "../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: an address is not allowed in a constant initializer > for an integral type whose size is smaller than the size of a pointer > "../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' > not done > _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
