On Wed, Jul 27, 2005 at 05:22:57AM -0700, Markus Moeller wrote: [ Replies to -bugs for further analysis, please ]
> I have a program which compiles file on Solaris 8, 9 and 10, but on > opensolaris I get the following errors using > > $ cc -V > cc: Sun C 5.7 Patch 117837-03 2005/03/23 > usage: cc [ options] files. Use 'cc -flags' for details > > "/usr/include/sys/int_types.h", line 125: invalid type combination > "/usr/include/sys/int_types.h", line 125: warning: useless declaration > "/usr/include/sys/int_types.h", line 125: warning: typedef declares no type > name > "/usr/include/netinet/in.h", line 54: warning: modification of typedef with > "int" ignored > "/usr/include/netinet/in.h", line 54: invalid type combination > "/usr/include/netinet/in.h", line 54: warning: useless declaration > "/usr/include/netinet/in.h", line 54: warning: typedef declares no type name > > Is this something known ? Not to me at least. > BTW I used gcc on Solaris 8,9, 10 Does gcc work on S11 also? Conversely, have you tried Solaris Express with cc to rule out problems with BFU'd content? You'll need to provide a bit more information. At minimum the compiler flags you use are of interest; the line noted deals with long longs, which can be affected by flags. It would also be nice to know if you can reproduce this with a C file consisting of nothing but: #include <sys/int_types.h> -- Keith M Wesolowski "Sir, we're surrounded!" Solaris Kernel Team "Excellent; we can attack in any direction!" _______________________________________________ opensolaris-discuss mailing list [email protected]
