> Date: Mon, 26 Sep 2016 23:54:46 +0200
> From: Alexander Bluhm <alexander.bl...@gmx.net>
> 
> On Mon, Sep 26, 2016 at 11:39:29PM +0200, Mark Kettenis wrote:
> > Diff below modernizes the C++ code a bit such that the test case
> > compiles again without warnings.  It also uses CPPFLAGS instead of
> > CFLAGS such that the c++ compiler actually stands a chance finding the
> > header files.
> > 
> > Since the tests succeed on amd64, and should succeed on other
> > architectures, the diff re-enables this test.
> 
> Also passes on i386.
> You missed the #include "iostream.h" in constructor/libaa/aa.C .

Actually, that one can be removed.  New diff below.  Still ok?

Index: regress/libexec/ld.so/constructor/libaa/aa.C
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/libaa/aa.C,v
retrieving revision 1.1
diff -u -p -r1.1 aa.C
--- regress/libexec/ld.so/constructor/libaa/aa.C        1 Feb 2003 19:56:17 
-0000       1.1
+++ regress/libexec/ld.so/constructor/libaa/aa.C        26 Sep 2016 21:59:21 
-0000
@@ -4,7 +4,6 @@
  * $OpenBSD: aa.C,v 1.1 2003/02/01 19:56:17 drahn Exp $
  */
 
-#include "iostream.h"
 #include "aa.h"
 int a;
 
Index: regress/libexec/ld.so/constructor/libab/Makefile
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/libab/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- regress/libexec/ld.so/constructor/libab/Makefile    1 Feb 2003 19:56:17 
-0000       1.1
+++ regress/libexec/ld.so/constructor/libab/Makefile    26 Sep 2016 21:59:21 
-0000
@@ -1,6 +1,6 @@
 LIB=ab
 SRCS= ab.C
-CFLAGS=-I${.CURDIR}/../libaa
+CPPFLAGS=-I${.CURDIR}/../libaa
 LDADD=-L../libaa
 LDADD+=-laa
 .include <bsd.lib.mk>
Index: regress/libexec/ld.so/constructor/libab/ab.C
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/libab/ab.C,v
retrieving revision 1.2
diff -u -p -r1.2 ab.C
--- regress/libexec/ld.so/constructor/libab/ab.C        18 Feb 2003 13:14:42 
-0000      1.2
+++ regress/libexec/ld.so/constructor/libab/ab.C        26 Sep 2016 21:59:21 
-0000
@@ -4,9 +4,11 @@
  * $OpenBSD: ab.C,v 1.2 2003/02/18 13:14:42 jmc Exp $
  */
 
-#include "iostream.h"
+#include <iostream>
 #include "aa.h"
 #include "ab.h"
+
+using namespace std;
 
 extern int a;
 
Index: regress/libexec/ld.so/constructor/prog1/Makefile
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/prog1/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- regress/libexec/ld.so/constructor/prog1/Makefile    1 Feb 2003 19:56:17 
-0000       1.1
+++ regress/libexec/ld.so/constructor/prog1/Makefile    26 Sep 2016 21:59:21 
-0000
@@ -22,7 +22,7 @@ AB_OBJDIR!=    if [ -d $(AB_DIR)/${__obj
 
 
 
-CFLAGS=-I${.CURDIR}/../libab
+CPPFLAGS=-I${.CURDIR}/../libab
 LDADD=
 LDADD+=-lab
 LDADD+=-laa
Index: regress/libexec/ld.so/constructor/prog1/prog1.C
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/prog1/prog1.C,v
retrieving revision 1.1
diff -u -p -r1.1 prog1.C
--- regress/libexec/ld.so/constructor/prog1/prog1.C     1 Feb 2003 19:56:17 
-0000       1.1
+++ regress/libexec/ld.so/constructor/prog1/prog1.C     26 Sep 2016 21:59:21 
-0000
@@ -3,8 +3,11 @@
  *
  * $OpenBSD: prog1.C,v 1.1 2003/02/01 19:56:17 drahn Exp $
  */
-#include "iostream.h"
+#include <iostream>
 #include "ab.h"
+
+using namespace std;
+
 BB BBmain("main");
 
 int a;
Index: regress/libexec/ld.so/constructor/prog2/Makefile
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/prog2/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- regress/libexec/ld.so/constructor/prog2/Makefile    1 Feb 2003 19:56:17 
-0000       1.1
+++ regress/libexec/ld.so/constructor/prog2/Makefile    26 Sep 2016 21:59:21 
-0000
@@ -22,7 +22,7 @@ AB_OBJDIR!=    if [ -d $(AB_DIR)/${__obj
 
 
 
-CFLAGS=-I${.CURDIR}/../libab
+CPPFLAGS=-I${.CURDIR}/../libab
 LDADD=
 LDADD+=-laa
 LDADD+=-lab
Index: regress/libexec/ld.so/constructor/prog2/prog2.C
===================================================================
RCS file: /cvs/src/regress/libexec/ld.so/constructor/prog2/prog2.C,v
retrieving revision 1.1
diff -u -p -r1.1 prog2.C
--- regress/libexec/ld.so/constructor/prog2/prog2.C     1 Feb 2003 19:56:17 
-0000       1.1
+++ regress/libexec/ld.so/constructor/prog2/prog2.C     26 Sep 2016 21:59:21 
-0000
@@ -3,8 +3,11 @@
  *
  * $OpenBSD: prog2.C,v 1.1 2003/02/01 19:56:17 drahn Exp $
  */
-#include "iostream.h"
+#include <iostream>
 #include "ab.h"
+
+using namespace std;
+
 BB BBmain("main");
 
 int a;

Reply via email to