[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compiling on osf struct sockaddr_storage needs #define _OSF_SOURCE
From: |
Jay K |
Subject: |
compiling on osf struct sockaddr_storage needs #define _OSF_SOURCE |
Date: |
Sat, 5 Jun 2010 14:14:05 +0000 |
make[2]: Entering directory `/home/jayk/obj/gawk'
source='/home/jayk/src/gawk-3.1.8/io.c' object='io.o' libtool=no \
DEPDIR=.deps depmode=tru64 /bin/ksh /home/jayk/src/gawk-3.1.8/depcomp \
cc -DDEFPATH='".:/home/jayk/share/awk"' -DHAVE_CONFIG_H -DGAWK
-DLOCALEDIR='"/home/jayk/share/locale"' -I. -I/home/jayk/src/gawk-3.1.8 -g
-c /home/jayk/src/gawk-3.1.8/io.c
cc: Error: /home/jayk/src/gawk-3.1.8/io.c, line 1283: In this declaration,
"remote_addr" has no linkage and is of an incomplete type. (incompnolink)
struct sockaddr_storage remote_addr;
----------------------------------------------------------------^
cc: Warning: /home/jayk/src/gawk-3.1.8/io.c, line 1289: In this statement, the
referenced type of the pointer value "&namelen" is "int", which is not
compatible with "unsigned long". (ptrmismatch)
&namelen))>= 0) {
------------------------------------------------^
cc: Error: /home/jayk/src/gawk-3.1.8/io.c, line 1297: In this declaration,
"remote_addr" has no linkage and is of an incomplete type. (incompnolink)
struct sockaddr_storage remote_addr;
----------------------------------------------------------------^
cc: Warning: /home/jayk/src/gawk-3.1.8/io.c, line 1302: In this statement, the
referenced type of the pointer value "&readle" is "int", which is not
compatible with "unsigned long". (ptrmismatch)
& readle)>= 0
--------------------------------------------------------^
I put:
#ifndef _OSF_SOURCE
#define _OSF_SOURCE
#endif
at the top of io.c to get struct sockadd_storage.
I haven't dealt with the warnings.
Hm..
cc: Warning: /home/jayk/src/gawk-3.1.8/missing_d/getaddrinfo.h, line 10: The
redefinition of the macro "getaddrinfo" conflicts with a current definition
because the replacement lists differ. The redefinition is now in effect.
(macroredef)
#define getaddrinfo xgetaddrinfo
expected?
- Jay
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- compiling on osf struct sockaddr_storage needs #define _OSF_SOURCE,
Jay K <=