Bug 208528

Summary: devel/ddd: Fix build with libc++ 3.8.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Some People CC: pi, sergio
Priority: --- Flags: pi: maintainer-feedback-
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 208158    
Attachments:
Description Flags
Remove C++ keyword overriding defines from devel/ddd none

Description Dimitry Andric freebsd_committer freebsd_triage 2016-04-04 19:39:33 UTC
Created attachment 168982 [details]
Remove C++ keyword overriding defines from devel/ddd

During the exp-run in bug 208158, it was found that devel/ddd gives errors with libc++ 3.8.0 [1]:

In file included from LabelH.C:36:
In file included from /usr/local/include/Xm/XmP.h:45:
In file included from /usr/local/include/Xm/Xm.h:59:
In file included from /usr/local/include/X11/Intrinsic.h:53:
In file included from /usr/local/include/X11/Xlib.h:51:
In file included from /usr/include/c++/v1/stddef.h:51:
/usr/include/c++/v1/__nullptr:35:15: error: unknown type name 'a_class'; did you mean 'class'?
    template <class _Tp>
              ^
LabelH.C:34:15: note: expanded from macro 'class'
#define class a_class
              ^

This is because several source files in this package attempt to redefine the C++ keywords 'new' and 'class' with different identifiers, probably because very old Motif headers abused those keywords as variables or parameters.  This is not needed anymore, and the keyword redefinitions can be deleted without problems.

[1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/ddd-3.3.12_1.log
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-29 21:13:40 UTC
Committed, thanks.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-04-29 21:13:46 UTC
A commit references this bug:

Author: pi
Date: Fri Apr 29 21:13:29 UTC 2016
New revision: 414293
URL: https://svnweb.freebsd.org/changeset/ports/414293

Log:
  devel/ddd: Fix build with libc++ 3.8.0

  PR:		208528
  Submitted by:	dim
  Approved by:	sergio@softshark.org (maintainer timeout)

Changes:
  head/devel/ddd/files/patch-ddd-GraphEditP.h
  head/devel/ddd/files/patch-ddd-LabelH.C
  head/devel/ddd/files/patch-ddd-PannedGEP.h
  head/devel/ddd/files/patch-ddd-Sash.h
  head/devel/ddd/files/patch-ddd-ScrolleGEP.h
  head/devel/ddd/files/patch-ddd-SwallowerP.h
  head/devel/ddd/files/patch-ddd-converters.C