Bug 112884

Summary: security/tripwire: fails to build on FreeBSD 7.0-CURRENT after import of GCC 4.2
Product: Ports & Packages Reporter: Scot Hetzel <swhetzel>
Component: Individual Port(s)Assignee: Cy Schubert <cy>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Scot Hetzel 2007-05-23 07:50:03 UTC
Tripwire fails to build on 7.0-CURRENT after import of GCC 4.2.

gmake[1]: Entering directory `/usr/ports/security/tripwire/work/tripwire-2.4.0.1/src/fco'
c++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..  -I/usr/local/include   -O2 -fno-strict-aliasing -pipe -c -o fco.o fco.cpp
c++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..  -I/usr/local/include   -O2 -fno-strict-aliasing -pipe -c -o fcocompare.o fcocompare.cpp
c++ -DHAVE_CONFIG_H              -I. -I. -I../.. -I..  -I/usr/local/include   -O2 -fno-strict-aliasing -pipe -c -o fcodatasourceiter.o fcodatasourceiter.cpp
In file included from fcodatasourceiter.h:50,
                 from fcodatasourceiter.cpp:41:
fconame.h:147: error: ISO C++ forbids declaration of 'cFCOName_i' with no type
fconame.h:147: error: expected ';' before '*' token
gmake[1]: *** [fcodatasourceiter.o] Error 1
gmake[1]: Leaving directory `/usr/ports/security/tripwire/work/tripwire-2.4.0.1/src/fco'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/security/tripwire.

This type of error occurs in 3 files:

src/fco/fconame.h
src/fco/fcosetimpl.h
src/tw/fcoreport.h

I found the solution thru a google search.

Fix: Apply the attached patch.

Patch attached with submission follows:
How-To-Repeat: On a recent 7-CURRENT system:
cd /usr/ports/security/tripwire
make build
Comment 1 Edwin Groothuis freebsd_committer 2007-05-23 07:50:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy

Over to maintainer
Comment 2 dfilter service freebsd_committer 2007-10-10 20:13:03 UTC
cy          2007-10-10 19:12:46 UTC

  FreeBSD ports repository

  Added files:
    security/tripwire/files patch-src-fco-fconame.h 
                            patch-src-fco-fcosetimpl.h 
                            patch-src-tw-fcoreport.h 
  Log:
  Fix build under 7.0-CURRENT (gcc 4.2.1 20070719).
  
  PR:             112884
  Submitted by:   Scot Hetzel<swhetzel@gmail.com>
  
  Revision  Changes    Path
  1.1       +10 -0     ports/security/tripwire/files/patch-src-fco-fconame.h (new)
  1.1       +11 -0     ports/security/tripwire/files/patch-src-fco-fcosetimpl.h (new)
  1.1       +10 -0     ports/security/tripwire/files/patch-src-tw-fcoreport.h (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Cy Schubert freebsd_committer 2007-10-10 22:03:47 UTC
State Changed
From-To: open->closed

Committed. Thanks for the patch.