ClassB C Code Compilation Error From Formal Argument 2 Of Type Const Sockaddr*

(Doc ID 875280.1)

Last updated on FEBRUARY 22, 2011

Applies to:

Oracle Communications ASAP - Version: 5.2.4 and later   [Release: 5.2 and later ]
Information in this document applies to any platform.


While compiling Class B Code, errors are seen for .c code:
/opt/sunstudio12.1/bin/CC -w -D SUN_SOLARIS -D SUN_2_9 -DSYSTEM_10 -D RW_NO_OVERLOAD_SCHAR -D
D_THREAD_SAFE -DSUN_2_5 -DSUN_2_6 -DSUN_2_7 -DSUN_2_9 -library=iostream -D RELEASE=ASAP.R5_2_4 -D
VERSION=b203 -I/srvrs/ag/asapprd1/SYBASE/OCS-12_5/i
nclude -I../include -I../../../include -I/srvrs/ag/asapprd1/SYBASE/OCS-12_5/include -c sender.c
"sender.c", line 92: Error: The function "signal" must have a prototype.
"sender.c", line 475: Error: Formal argument 2 of type const sockaddr* in call to connect(int,
const sockaddr*, unsigned) is being passed void*.
2 Error(s) detected.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms