Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2002 12:08:57 -0400
From:      Mike Barcroft <mike@freebsd.org>
To:        Andrea Campi <andrea@webcom.it>
Cc:        current@freebsd.org, ports@freebsd.org
Subject:   Re: machine/endian.h revision 1.33 breaks port x11-fm/gentoo
Message-ID:  <20020527120857.I26122@espresso.q9media.com>
In-Reply-To: <20020527133850.GA340@webcom.it>; from andrea@webcom.it on Mon, May 27, 2002 at 03:38:50PM %2B0200
References:  <20020518223207.GA74796@nemesis.informatik.unibw-muenchen.de> <20020526233449.E6884@bank-pedersen.dk> <20020526192714.H26122@espresso.q9media.com> <20020527133850.GA340@webcom.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrea Campi <andrea@webcom.it> writes:
> There's a problem with coldsync port on -current which has to do with
> endian macros:
> 
> cc -Wall -ansi -pedantic -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -I. -I./.. -
> I./../include -I/usr/local/include -c PConnection_net.c
> In file included from /usr/include/arpa/nameser.h:446,
>                  from PConnection_net.c:11:
> /usr/include/arpa/nameser_compat.h:54: syntax error before string constant
> /usr/include/arpa/nameser_compat.h:82: duplicate member `rd'
> /usr/include/arpa/nameser_compat.h:83: duplicate member `tc'
> /usr/include/arpa/nameser_compat.h:84: duplicate member `aa'
> /usr/include/arpa/nameser_compat.h:85: duplicate member `opcode'
> /usr/include/arpa/nameser_compat.h:86: duplicate member `qr'
> /usr/include/arpa/nameser_compat.h:88: duplicate member `rcode'
> /usr/include/arpa/nameser_compat.h:89: duplicate member `cd'
> /usr/include/arpa/nameser_compat.h:90: duplicate member `ad'
> /usr/include/arpa/nameser_compat.h:91: duplicate member `unused'
> /usr/include/arpa/nameser_compat.h:92: duplicate member `ra'
> In file included from PConnection_net.c:12:
> /usr/include/resolv.h:130: field `in6a' has incomplete type
> *** Error code 1
> 
> 
> Anybody cares to have a look?

Hmm, the application thinks it conforms to POSIX, but uses headers not
defined in POSIX.  Removing:
#ifndef _POSIX_C_SOURCE
#  define _POSIX_C_SOURCE  2
#endif  /* _POSIX_C_SOURCE */

...from config.h will probably fix it.  I may just change all the
headers over to _BYTE_ORDER and friends, so that even confussed
applications work.

Best regards,
Mike Barcroft

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020527120857.I26122>