From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30459 invoked from network); 4 Feb 1999 05:30:03 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 4 Feb 1999 05:30:03 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA31841 for ; Thu, 4 Feb 1999 00:22:39 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 03 Feb 1999 23:25:13 -0600 Received: by paralleldata.com from paralleldata.com (209.196.65.118::mail daemon; unverified,SLMail V2.5); Wed, 03 Feb 1999 23:25:11 -0600 Sender: "Wsb" Message-ID: <36B93CF0.25409219@paralleldata.com> Date: Thu, 04 Feb 1999 06:23:44 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: SAINT on Alpha... no go.. References: <19990204033828.2402.qmail@hotmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Designer 7 wrote: > > Hi, > > Well... I had several buddies at work (long time experienced > programmers) take a look at the problem I'm having compiling SAINT on > Alpha.... no one seems to understand what's going on... check the > preprocessor output.. seems fine. Odd things happening though... when I > added an extra var to the function that was giving the problem.. I got > some really odd results... bascially, I added: > > int foo; > foo = ip->ip_v; > > and I got some error saying that: > parse error before line xxx (the int foo line above) > undeclared variable foo (first used in this function) ... > > or something along those lines. The thing is, I can't visually see > anything wrong at ALL. there is just a block of comments right above > those two lines that are from the original code. > > Seeing that this code compiled without any problems at all on > i386/Linux.... I'm not sure if architecture differences is causing the > problem.. and even if there are such issues.. these don't look like the > type of errors I would get. I'm beginning to think that perhaps there is > something odd with my compiler system, or there are some quirks with > egcs-1.1.1-7.... > Well, after looking at the source code, it appears this package has it's OWN version of that has the wrong #ifdef's in it for Alphas. Fix the Makefile as follows: linux: @$(MAKE) all LIBS= XFLAGS=" -O2 -D__USE_BSD -D_BSD_SOURCE -DSYS_ERRLIST_DECLARED -DAUTH_GID_T=int -g" I added the -O2 just in case this code needs some optimization. Didn't bother to run it since I don't plan on using it. It built with this on my system but did bitch about things a bit. Good luck. Wes