Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 1495 invoked by uid 6000); 16 Dec 1999 16:44:17 -0000 Received: (qmail 1468 invoked from network); 16 Dec 1999 16:44:13 -0000 Received: from e23.nc.us.ibm.com (32.97.136.229) by taz.hyperreal.org with SMTP; 16 Dec 1999 16:44:13 -0000 Received: from southrelay01.raleigh.ibm.com (southrelay01.raleigh.ibm.com [9.37.3.208]) by e23.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id LAA52844 for ; Thu, 16 Dec 1999 11:30:52 -0600 Received: from us.ibm.com (ocb1.raleigh.ibm.com [9.37.83.154]) by southrelay01.raleigh.ibm.com (8.8.8m2/NCO v2.06) with ESMTP id LAA61112 for ; Thu, 16 Dec 1999 11:44:08 -0500 Message-ID: <385941D3.5F36DC58@us.ibm.com> Date: Thu, 16 Dec 1999 11:47:31 -0800 From: Ovies Brabson X-Mailer: Mozilla 4.6 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: new-httpd@apache.org Subject: Important: TestCompile and c89 argument order Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Status: O > Hi, > > After a couple of days of testing, I found the first difficulties with > this change in helpers/TestCompile which I committed recently as part > of the IBM OS/390 patch: > diff -p -u -r1.34 -r1.35 > --- apache-1.3/src/helpers/TestCompile 1999/07/21 14:32:55 1.34 > +++ /home/cvs/apache-1.3/src/helpers/TestCompile 1999/12/09 17:19:42 1.35 > @@ -200,10 +201,10 @@ INCLUDES=\$(INCLUDES1) \$(EXTRA_INCLUDES > LDFLAGS=\$(LDFLAGS1) \$(EXTRA_LDFLAGS) > > dummy: > - cd ..; \$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) helpers/dummy.c -o helpers/dummy $TLIB \$(LIBS) > + cd ..; \$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) -o helpers/dummy $TLIB \$(LIBS) helpers/dummy.c > > testfunc: > - cd ..; \$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) helpers/testfunc.c -o helpers/testfunc $TLIB \$(LIBS) > + cd ..; \$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) -o helpers/testfunc $TLIB \$(LIBS) helpers/testfunc.c > EOF > > As you can see, the former argument order > > c89 helpers/testfunc.c -o helpers/testfunc $TLIB \$(LIBS) > > was changed to > > c89 -o helpers/testfunc $TLIB \$(LIBS) helpers/testfunc.c > > While I don't have problems with the "-o outname" appearing *before* > the input source file, my compiler DOES care about the library names > (-L/lib -lblah) appearing before, not after, the source name. My > compiler is a c89 (but made by Siemens, not by IBM), and it insists on > treating its source, object and library arguments left-to-right, which > makes sense IMHO. > > I don't know if Unix98 requires that a c89 handle $(LIBS) before the > sources, but at least I know that few people use c89 (most use cc, and > cc is NOT required to accept this). > > So IMO.... > > a) this change should be reverted BEFORE 1.3.10 (lest we intend to > fail on cc-only machines) > and > b) IBMers should write a wrapper around their c89 to reorder the > arguments (I have written one for our compiler as well ;-) > > What do you think? > > Martin > Sounds good. I'll put together a wrapper for OS/390 and submit a patch.