#1 bugs on AIX

open
nobody
None
5
2003-01-25
2003-01-25
mark perino
No

Here are the compile errors when made under AIX 5.1
using GCC 3.2.1.

# make
gcc -Wall -ansi -pedantic -c neocon2.c
In file included from neocon2.c:13:
include/neo.h:38: parse error before "writeline"
include/neo.h:38: warning: type defaults to `int' in
declaration of `writeline'
include/neo.h:38: ISO C forbids data definition with no
type or storage class
include/neo.h:39: parse error before "readline"
include/neo.h:39: warning: type defaults to `int' in
declaration of `readline'
include/neo.h:39: ISO C forbids data definition with no
type or storage class
neocon2.c: In function `sendPacket':
neocon2.c:280: storage size of `sa' isn't known
neocon2.c:285: warning: implicit declaration of function
`gethostbyname'
neocon2.c:285: warning: assignment makes pointer
from integer without a cast
neocon2.c:292: warning: implicit declaration of function
`socket'
neocon2.c:292: `AF_INET' undeclared (first use in this
function)
neocon2.c:292: (Each undeclared identifier is reported
only once
neocon2.c:292: for each function it appears in.)
neocon2.c:292: `SOCK_STREAM' undeclared (first use
in this function)
neocon2.c:292: `IPPROTO_TCP' undeclared (first use in
this function)
neocon2.c:301: warning: implicit declaration of function
`htons'
neocon2.c:304: warning: implicit declaration of function
`connect'
neocon2.c:313: warning: implicit declaration of function
`close'
neocon2.c:280: warning: unused variable `sa'
neocon2.c: At top level:
neocon2.c:354: parse error before "writeline"
neocon2.c:354: warning: return type defaults to `int'
neocon2.c: In function `writeline':
neocon2.c:356: `ssize_t' undeclared (first use in this
function)
neocon2.c:356: parse error before "nwritten"
neocon2.c:364: `nwritten' undeclared (first use in this
function)
neocon2.c:364: warning: implicit declaration of function
`write'
neocon2.c: At top level:
neocon2.c:379: parse error before "readline"
neocon2.c:379: warning: return type defaults to `int'
neocon2.c: In function `readline':
neocon2.c:380: `ssize_t' undeclared (first use in this
function)
neocon2.c:380: parse error before "n"
neocon2.c:384: `n' undeclared (first use in this function)
neocon2.c:387: `rc' undeclared (first use in this function)
neocon2.c:387: warning: implicit declaration of function
`read'
make: 1254-004 The error code from the last command
is 1.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks