I couldn't make the definitions in sys/types.h work, so I
created copies of the headers arpa/nameser.h, arpa/onameser_compat.h and
resolv.h and edited them, replacing all the occurrences of 'u_char'
by 'unsigned char', 'u_long' by 'unsigned long' and so on. After doing
that, the compilation of PConnection_net.c was successful. But now I have the
following messages while compiling coldsync.c:
gcc -Wall
-ansi -pedantic -g -O2 -DHAVE_CONFIG_H -I. -I./.. -I./../include
-I/usr/local/include -c coldsync.c coldsync.c: In function
`run_mode_Standalone': coldsync.c:806: warning: implicit declaration of
function `inet_ntop' coldsync.c:808: warning: format argument is not a
pointer (arg 3) coldsync.c: In function
`run_mode_Daemon': coldsync.c:2053: warning: implicit declaration of function
`snprintf' coldsync.c:2407: warning: format argument is not a pointer (arg
3) coldsync.c: In function `mkforw_addr': coldsync.c:3342: warning:
implicit declaration of function `gethostbyname2' coldsync.c:3342: warning:
assignment makes pointer from integer without a cast coldsync.c:3351: sizeof
applied to an incomplete type coldsync.c:3356: sizeof applied to an
incomplete type coldsync.c:3357: dereferencing pointer to incomplete
type coldsync.c:3358: dereferencing pointer to incomplete
type coldsync.c:3359: dereferencing pointer to incomplete
type coldsync.c:3361: sizeof applied to an incomplete
type coldsync.c:3372: dereferencing pointer to incomplete
type coldsync.c:3373: warning: format argument is not a pointer (arg
3) coldsync.c:3377: sizeof applied to an incomplete type coldsync.c:3386:
warning: assignment makes pointer from integer without a
cast coldsync.c:3417: warning: format argument is not a pointer (arg
3) coldsync.c:3431: storage size of `addr6' isn't known coldsync.c:3435:
warning: implicit declaration of function `inet_pton'
coldsync.c:3455: sizeof applied to an incomplete
type coldsync.c:3460: sizeof applied to an incomplete
type coldsync.c:3461: dereferencing pointer to incomplete
type coldsync.c:3462: dereferencing pointer to incomplete
type coldsync.c:3463: dereferencing pointer to incomplete
type coldsync.c:3464: sizeof applied to an incomplete
type coldsync.c:3467: sizeof applied to an incomplete
type coldsync.c:3431: warning: unused variable `addr6' make: 1254-004 The
error code from the last command is 1.
Stop. make: 1254-004 The error code from the
last command is 2.
Stop.
What could be possibly wrong?
Ronaldo
-----Mensagem Original-----
Enviada em: Terça-feira, 9 de Setembro de
2003 11:28
Assunto: Re: [coldsync-hackers] Error
during make on AIX 4.3.3
The file arpa/nameser.h contains:
/* * This is a message handle.
It is caller allocated and has no dynamic data. * This structure is
intended to be opaque to all but ns_parse.c, thus the * leading _'s
on the member names. Use the accessor functions, not the
_'s. */ typedef struct __ns_msg
{ const u_char
*_msg, *_eom;
uint16_t _id, _flags,
_counts[ns_s_max]; const
u_char
*_sections[ns_s_max];
ns_sect
_sect;
int
_rrnum; const
u_char *_ptr; } ns_msg;
Line 135 is: const
u_char *_msg, *_eom;
It seems that all other lines pointed by the compilation error
messages contain the datatype u_char. This datatype is declared in the
header sys/types.h, and this header is included in PConnection_net.c (as well
as in nameser.h itself).
any clues?
Ronaldo
-----Mensagem Original-----
Enviada em: Segunda-feira, 8 de
Setembro de 2003 18:39
Assunto: Re: [coldsync-hackers] Error
during make on AIX 4.3.3
On Mon, 8 Sep 2003, Ronaldo Cordeiro wrote: > I've been
using Coldsync 1.4.6 on Aix 4.3.3 for about 2 years with goo >>d
results. Now I'm trying to upgrade it to version 2.2.5 and I'm
exper >>iencing problems with the installation. I had an error with
the _XOPEN >>_SOURCE_EXTENDED definition, but I could correct it by
editing the fil >>e config.h. But while running "make", the
following messages are being >>
displayed: > > gcc -Wall -ansi -pedantic -g -O2
-DHAVE_CONFIG_H -I. -I./.. -I./../include -I/usr/local/include -c
PConnection_net.c > In file included from
PConnection_net.c:11: > /usr/include/arpa/nameser.h:135: parse error
before '*' token > /usr/include/arpa/nameser.h:137: parse error before
'*' token > /usr/include/arpa/nameser.h:137: ISO C forbids data
definition with no type or s > torage class > . . . > (a
long list of similar messages follows)
These sorts of errors are
often a pain to diagnose. Most likely, it's a missing type: line 135 of
/usr/include/arpa/nameser.h is most likely of the form sometype
*somevar; where 'sometype' is declared in a different file. Try to
find a function declared in that file, and read the man page for it.
Knowing IBM, the manual will probably tell you which other header files
need to be included before <arpa/nameser.h>. You can add those
files to PConnection_net.c and see if that solves the problem. If that
doesn't do it, you may need to look at the preprocessor output (compile
with "-E" instead of "-c") and grovel through header files.
--
Andrew
Arensburger
Actually, these _do_ represent the arensb@ooblick.com
opinions of
ooblick.com!
Generic Tagline V 6.01 This message was sent through the coldsync-hackers
mailing list. To remove yourself from this mailing list, send a
message to majordomo@thedotin.net with the
words "unsubscribe coldsync-hackers" in the message body. For
more information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.
|