Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2001 08:04:54 -0700
From:      Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        "Freebsd Stable" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: Aide 0.7 port problem on snapshot 4.4-20011010-STABLE 
Message-ID:  <200110151505.f9FF5b801848@cwsys.cwsent.com>
In-Reply-To: Your message of "Fri, 12 Oct 2001 07:23:30 CDT." <KPEMJADBBBFPDEDOIOMBKEOPDCAA.nospam@hiltonbsd.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
In message <KPEMJADBBBFPDEDOIOMBKEOPDCAA.nospam@hiltonbsd.com>, 
"Stephen Hilton
" writes:
> On a fresh install of FreeBSD snapshot 4.4-20011010-STABLE the first port I
> tried to build is Aide 0.7, bison, mhash, gettext, gettext-devel, autoconf,
> all installed O.K. but aide fails to compile on the file
> /usr/ports/security/aide/work/aide-0.7/src/conf_yacc.h line 1.
> 
> I do not have a copy of the error message as I was on site and time was
> short, but the message referred to a "macro that starts with punctuation". I
> was able to vi out lines 1 and 2 and the last line from conf_yacc.h (ifdef
> statement) and run make again with success, but am not sure if the binary is
> "correct" now.

Sorry for the late reply.  First day back after a long bout with the 
flu.

Put the attached file into the files directory of the bison port, 
deinstall/build/install the bison port, then build/install aide.

I've sent this patch to the maintainer of the bison port along with 
confirmation from one happy aide user that the patch fixed his problem, 
however I've received no reply.  I suppose I should submit a PR.

P.S.  My MUA (exmh) may have munged the patch by placing a "- " before 
any line that originally started with "-".  If this is the case, please 
before using the patch,

	sed -an 's/^- -/-/; w patch-file.c' patch-file.c


Regards,                         Phone:  (250)387-8437
Cy Schubert                        Fax:  (250)387-5766
Team Leader, Sun/Alpha Team   Internet:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, ITSD
Ministry of Management Services
Province of BC




[-- Attachment #2 --]
--- src/files.c.orig	Wed Aug 15 01:53:15 2001
+++ src/files.c	Mon Sep 24 19:58:50 2001
@@ -104,7 +104,9 @@
   strcat (macro_name, header_extension);
 
   for (ite = 0; macro_name[ite]; ite++)
-    if (macro_name[ite] == '.')
+    if (!((macro_name[ite] >= '0' && macro_name[ite] <= '9') ||
+        (macro_name[ite] >= 'A' && macro_name[ite] <= 'Z') ||
+        (macro_name[ite] >= 'a' && macro_name[ite] <= 'z')))
       macro_name[ite] = '_';
     else
       {

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