From owner-freebsd-ports@FreeBSD.ORG Wed Jun 13 20:45:45 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6275516A41F for ; Wed, 13 Jun 2007 20:45:45 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 20C4713C447 for ; Wed, 13 Jun 2007 20:45:44 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so81218anc for ; Wed, 13 Jun 2007 13:45:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Yi4FaaMtU00h6UNz82p5HKlivQojW1Q0JBKWEuZBbQIEPf4ueyOeV8GYAllZf3B+4sxSxmd9Ivn2kWFZgMyi3MVt4LGCHtyTSfaxvXsC8a3GG56vHSauA5bIkeIZB42raNOrl9S1/dA2vlt0MMLnIDVY/mES63hO5OmBFgpFrLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QviaUXKMGapXR0LKROI/5Sx5AuUB7kneCDw+sBaWoKeLoMlw7gzczbZyA1+VEC+ne61SXCYOo0PMalhqanLegnWtNTeBfjpL9lAcOLsebgZT/g56KcMG8XRwm5irvyRfRASo6BH3aBSUg3xakd0RE8Oe7QzjnMfXY19asHrmfN0= Received: by 10.100.141.13 with SMTP id o13mr652483and.1181767544388; Wed, 13 Jun 2007 13:45:44 -0700 (PDT) Received: by 10.100.141.14 with HTTP; Wed, 13 Jun 2007 13:45:44 -0700 (PDT) Message-ID: <790a9fff0706131345w1ef36c86k4bdc54b8912d7571@mail.gmail.com> Date: Wed, 13 Jun 2007 15:45:44 -0500 From: "Scot Hetzel" To: "Johan Hendriks" In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCB011172@w2003s01.double-l.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <57200BF94E69E54880C9BB1AF714BBCB011172@w2003s01.double-l.local> Cc: freebsd-ports@freebsd.org Subject: Re: mail/postfix on Current (-DFREEBSD#) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2007 20:45:45 -0000 On 6/13/07, Johan Hendriks wrote: > I use FreeBSD on a lot of mailservers in combination with postfix. > When i compile on FreeBSD 5 i see messages like: > cc -DHAS_PCRE -I/usr/local/include -O -pipe -I. -DFREEBSD5 -c format_tv.c > > On FreeBSD 6 they look like : > cc -DHAS_PCRE -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I. > -DFREEBSD6 -c mystrtok.c > > so i guess -DFREEBSD5 or 6 resembles the current version it runs on, but on > FreeBSD 7 i see this: > cc -DHAS_PCRE -I/usr/local/include -O2 -fno-strict-aliasing -pipe -I. > -I../../include -DFREEBSD5 -c rcpt_print.c > > it has the -DFREEBSD5 > > Is this an error on my system or is this suppose to happen. > and if so what does -DFREEBSD# means. > It is used in only 2 places in the postfix code: work/postfix*/src/util/sys_defs.h - The comment at the top of this file: /* * Specific platforms. Major release numbers differ for a good reason. So be * a good girl, plan for the future, and at least include the major release * number in the system type (for example, SUNOS5 or FREEBSD2). The system * type is determined by the makedefs shell script in the top-level * directory. Adding support for a new system type means updating the * makedefs script, and adding a section below for the new system. */ /* * 4.4BSD and close derivatives. */ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ || defined(FREEBSD5) || defined(FREEBSD6) \ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \ || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \ || defined(NETBSD4) \ || defined(EKKOBSD1) So basically there is no difference between FreeBSD5 and FreeBSD6, as it is only used at this one location, and currently not used anywhere else in the code. work/postfix*/src/util/gccw.ref - This file is used by the 'make gcctest' to compare the output of building gccw.c to this file. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.