From owner-freebsd-ports Mon May 27 9:10:47 2002 Delivered-To: freebsd-ports@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id 947BE37B401; Mon, 27 May 2002 09:10:41 -0700 (PDT) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id g4RG8va62693; Mon, 27 May 2002 12:08:57 -0400 (EDT) (envelope-from mike) Date: Mon, 27 May 2002 12:08:57 -0400 From: Mike Barcroft To: Andrea Campi 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> References: <20020518223207.GA74796@nemesis.informatik.unibw-muenchen.de> <20020526233449.E6884@bank-pedersen.dk> <20020526192714.H26122@espresso.q9media.com> <20020527133850.GA340@webcom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020527133850.GA340@webcom.it>; from andrea@webcom.it on Mon, May 27, 2002 at 03:38:50PM +0200 Organization: The FreeBSD Project Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Andrea Campi 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-ports" in the body of the message