[omniORB] omniORB and sun studio 11

joker m_e240_elegance at yahoo.com
Tue Apr 4 08:28:59 BST 2006


I also encounter this problem:
CC -c -I../idl -I../src -D_REENTRANT 
-I/usr/Lg/installer/omniORB-4.0.7/include 
-DHAVE_CONFIG_H  -DENABLE_CLIENT_IR_SUPPORT=1
-DOMNIEVENTS_REAL_TIME_PUSH=1 -g -KPIC  main.cc
"/usr/include/stdlib.h", line 203: Warning
(Anachronism): optarg was declared before with a
different language.
"/usr/include/stdlib.h", line 204: Warning
(Anachronism): optind was declared before with a
different language.
"/usr/include/stdio.h", line 306: Warning
(Anachronism): optarg was declared before with a
different language.
"/usr/include/stdio.h", line 307: Warning
(Anachronism): optind was declared before with a
different language.
4 Warning(s) detected.


--- joker <m_e240_elegance at yahoo.com> wrote:

> Warnings when I tried to compile the ORB with
> SunStudio11(cc)
> 
> making export in ./src...
> gmake[1]: Entering directory
> `/usr/Lg/installer/omniORB-4.0.7/src'
> making export in src/tool...
> gmake[2]: Entering directory
> `/usr/Lg/installer/omniORB-4.0.7/src/tool'
> making export in src/tool/omkdepend...
> gmake[3]: Entering directory
> `/usr/Lg/installer/omniORB-4.0.7/src/tool/omkdepend'
> cc -c -O  -DDEBUG -I. -I. -I../../../include
> -I../../../include -D__OSVERSION__=5 -D__sunos__
> -D__x86__ -o include.o include.c
> "def.h", line 140: warning: no explicit type given
> "def.h", line 141: warning: no explicit type given
> "def.h", line 142: warning: no explicit type given
> "include.c", line 89: warning: implicit function
> declaration: remove_dotdot
> "include.c", line 130: warning: old-style
> declaration
> or incorrect type for: remove_dotdot
> "include.c", line 161: warning: implicit function
> declaration: isdot
> "include.c", line 161: warning: implicit function
> declaration: isdotdot
> "include.c", line 162: warning: implicit function
> declaration: issymbolic
> "include.c", line 199: warning: old-style
> declaration
> or incorrect type for: isdot
> "include.c", line 207: warning: old-style
> declaration
> or incorrect type for: isdotdot
> "include.c", line 215: warning: old-style
> declaration
> or incorrect type for: issymbolic
> "include.c", line 261: warning: old-style
> declaration
> or incorrect type for: included_by
> "include.c", line 263: warning: no explicit type
> given
> "include.c", line 266: warning: function expects to
> return value: included_by
> "include.c", line 297: warning: function expects to
> return value: included_by
> "include.c", line 306: warning: old-style
> declaration
> or incorrect type for: inc_clean
> cc -c -O  -DDEBUG -I. -I. -I../../../include
> -I../../../include -D__OSVERSION__=5 -D__sunos__
> -D__x86__ -o main.o main.c
> "def.h", line 140: warning: no explicit type given
> "def.h", line 141: warning: no explicit type given
> "def.h", line 142: warning: no explicit type given
> "main.c", line 127: warning: old-style declaration
> or
> incorrect type for: main
> "main.c", line 154: warning: implicit function
> declaration: define2
> "main.c", line 170: warning: implicit function
> declaration: read
> "main.c", line 173: warning: implicit function
> declaration: close
> "main.c", line 238: warning: implicit function
> declaration: define
> "main.c", line 402: warning: implicit function
> declaration: find_includes
> "main.c", line 403: warning: implicit function
> declaration: freefile
> "main.c", line 404: warning: implicit function
> declaration: recursive_pr_include
> "main.c", line 405: warning: implicit function
> declaration: inc_clean
> "main.c", line 442: warning: old-style declaration
> or
> incorrect type for: freefile
> "main.c", line 458: warning: old-style declaration
> or
> incorrect type for: match
> "main.c", line 478: warning: no explicit type given
> "main.c", line 564: warning: old-style declaration
> or
> incorrect type for: fatalerr
> "main.c", line 586: warning: old-style declaration
> or
> incorrect type for: warning
> "main.c", line 607: warning: old-style declaration
> or
> incorrect type for: warning1
> cc -c -O  -DDEBUG -I. -I. -I../../../include
> -I../../../include -D__OSVERSION__=5 -D__sunos__
> -D__x86__ -o parse.o parse.c
> "def.h", line 140: warning: no explicit type given
> "def.h", line 141: warning: no explicit type given
> "def.h", line 142: warning: no explicit type given
> "parse.c", line 35: warning: old-style declaration
> or
> incorrect type for: find_includes
> "parse.c", line 45: warning: implicit function
> declaration: deftype
> "parse.c", line 52: warning: implicit function
> declaration: gobble
> "parse.c", line 114: warning: implicit function
> declaration: define
> "parse.c", line 122: warning: implicit function
> declaration: undefine
> "parse.c", line 125: warning: implicit function
> declaration: add_include
> "parse.c", line 163: warning: old-style declaration
> or
> incorrect type for: gobble
> "parse.c", line 237: warning: implicit function
> declaration: match
> "parse.c", line 255: warning: implicit function
> declaration: zero_value
> "parse.c", line 410: warning: old-style declaration
> or
> incorrect type for: zero_value
> "parse.c", line 414: warning: implicit function
> declaration: cppsetup
> "parse.c", line 421: warning: old-style declaration
> or
> incorrect type for: define
> "parse.c", line 437: warning: implicit function
> declaration: define2
> "parse.c", line 441: warning: old-style declaration
> or
> incorrect type for: define2
> "parse.c", line 504: warning: function expects to
> return value: define2
> "parse.c", line 559: warning: old-style declaration
> or
> incorrect type for: undefine
> cc -c -O  -DDEBUG -I. -I. -I../../../include
> -I../../../include -D__OSVERSION__=5 -D__sunos__
> -D__x86__ -o pr.o pr.c
> "def.h", line 140: warning: no explicit type given
> "def.h", line 141: warning: no explicit type given
> "def.h", line 142: warning: no explicit type given
> "pr.c", line 42: warning: old-style declaration or
> incorrect type for: add_include
> "pr.c", line 46: warning: no explicit type given for
> parameter: failOK
> "pr.c", line 56: warning: function expects to return
> value: add_include
> "pr.c", line 69: warning: implicit function
> declaration: included_by
> "pr.c", line 73: warning: implicit function
> declaration: find_includes
> "pr.c", line 74: warning: implicit function
> declaration: freefile
> "pr.c", line 80: warning: old-style declaration or
> incorrect type for: recursive_pr_include
> "pr.c", line 86: warning: function expects to return
> value: recursive_pr_include
> "pr.c", line 89: warning: implicit function
> declaration: pr
> "pr.c", line 95: warning: old-style declaration or
> incorrect type for: pr
> "pr.c", line 126: warning: function expects to
> return
> value: pr
> cc -c -O  -DDEBUG -I. -I. -I../../../include
> -I../../../include -D__OSVERSION__=5 -D__sunos__
> -D__x86__ -o cppsetup.o cppsetup.c
> "def.h", line 140: warning: no explicit type given
> "def.h", line 141: warning: no explicit type given
> "def.h", line 142: warning: no explicit type given
> "cppsetup.c", line 219: warning: old-style
> declaration
> or incorrect type for: cppsetup
> cc -c -O  -DDEBUG -I. -I. -I../../../include
> -I../../../include -D__OSVERSION__=5 -D__sunos__
> -D__x86__ -o ifparser.o ifparser.c
> "ifparser.c", line 102: warning: implicit function
> declaration: strtol
> "ifparser.c", line 155: warning: implicit function
> declaration: strncmp
> + rm -f omkdepend
> + cc -o omkdepend -O -L../../../lib -L../../../lib
> include.o main.o parse.o pr.o cppsetup.o ifparser.o
> + ../../../bin/scripts/install-sh -c -m 0755
> omkdepend
> ../../../bin
> gmake[3]: Leaving directory
> `/usr/Lg/installer/omniORB-4.0.7/src/tool/omkdepend'
> making export in src/tool/omniidl...
> gmake[3]: Entering directory
> `/usr/Lg/installer/omniORB-4.0.7/src/tool/omniidl'
> making export in src/tool/omniidl/cxx...
> gmake[4]: Entering directory
>
`/usr/Lg/installer/omniORB-4.0.7/src/tool/omniidl/cxx'
> ../../../../bin/omkdepend -D__cplusplus
> -D__SUNPRO_CC
> -DIDLMODULE_VERSION="0x2420" -I/usr/local/include
> -DPYTHON_INCLUDE=<python2.4/Python.h> -KPIC -I. -I.
> -I../../../../include -I../../../../include
> -D__OSVERSION__=5 -D__sunos__ -D__x86__ idlc.cc
> idlpython.cc idlfixed.cc idlconfig.cc idldump.cc
> idlvalidate.cc idlast.cc idlexpr.cc idlscope.cc
> idlrepoId.cc idltype.cc idlutil.cc idlerr.cc
> lex.yy.cc
> y.tab.cc
> ../../../../bin/omkdepend: warning:  ignoring option
> -KPIC
> making export in src/tool/omniidl/cxx/cccp...
> gmake[5]: Entering directory
>
`/usr/Lg/installer/omniORB-4.0.7/src/tool/omniidl/cxx/cccp'
> cc -c -O  -DHAVE_CONFIG_H -I. -I. -I.
> -I../../../../../include -I../../../../../include
> -D__OSVERSION__=5 -D__sunos__ -D__x86__ -o cexp.o
> cexp.c
> "/usr/local/lib/bison.simple", line 300: warning:
> implicit function declaration: alloca
> "cexp.y", line 687: warning: no explicit type given
> cc -c -O  -DHAVE_CONFIG_H -I. -I. -I.
> -I../../../../../include -I../../../../../include
> -D__OSVERSION__=5 -D__sunos__ -D__x86__ -o cccp.o
> cccp.c
> "cccp.c", line 1827: warning: implicit function
> declaration: alloca
> "cccp.c", line 2117: warning: implicit function
> declaration: index
> "cccp.c", line 4663: warning: implicit function
> declaration: rindex
> 
> 
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the omniORB-list mailing list