Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2018 18:55:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 230674] math/blitz++: fix build on FreeBSD 11.2
Message-ID:  <bug-230674-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230674

            Bug ID: 230674
           Summary: math/blitz++: fix build on FreeBSD 11.2
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lantw44@gmail.com

Created attachment 196257
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D196257&action=
=3Dedit
Fix blitz++ build on FreeBSD 11.2

blitz++ currently fails to build on FreeBSD 11.2:

Making all in lib
gmake[2]: Entering directory
'/wrkdirs/usr/ports/math/blitz++/work/blitz-0.9/lib'
if /bin/sh ../libtool --mode=3Dcompile --tag=3DCXX c++ -DHAVE_CONFIG_H   -I=
.. -I..=20
  -MT globals.lo -MD -MP -MF ".deps/globals.Tpo" -c -o globals.lo `test -f
'../src/globals.cpp' || echo './'`../src/globals.cpp; \
then mv -f ".deps/globals.Tpo" ".deps/globals.Plo"; else rm -f
".deps/globals.Tpo"; exit 1; fi
mkdir .libs
 c++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF .deps/globals.Tpo=
 -c
../src/globals.cpp  -fPIC -DPIC -o .libs/globals.o
In file included from ../src/globals.cpp:11:
In file included from ../blitz/indexexpr.h:30:
In file included from ../blitz/tinyvec.h:30:
../blitz/blitz.h:58:12: fatal error: 'iostream.h' file not found
  #include <iostream.h>
           ^~~~~~~~~~~~
1 error generated.
gmake[2]: *** [Makefile:381: globals.lo] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/math/blitz++/work/blitz-0.9/lib'
gmake[1]: *** [Makefile:377: all-recursive] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/math/blitz++/work/blitz-0.9'
*** Error code 1

Stop.
make: stopped in /usr/ports/math/blitz++

It seems that it is the configure script that is too old to work. To fix the
problem, I add USES=3Dautoreconf to the port Makefile. However, it seems th=
at
running autoreconf triggers the rebuild of documentation because of the
existing patches, and I cannot find a way to build documentation without
errors. I rename these two patches to prevent them from modifying .texi fil=
es
when DOCS option is not enabled, so it will at least build successully when
DOCS is disabled, which is the default.

Since svn doesn't seem to have a way to handle renamed files in a patch fil=
e,
some manual steps are needed to apply the patch I uploaded here.

$ svn mv files/patch-doc-arrays-expr.texi
files/extra-patch-doc-arrays-expr.texi
$ svn mv files/patch-doc-arrays-expr.texi
files/extra-patch-doc-arrays-expr.texi
$ svn patch math_blitz++.patch

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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