[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.