[Bug 230674] math/blitz++: fix build on FreeBSD 11.2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 16 18:55:46 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230674

            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 at FreeBSD.org
          Reporter: lantw44 at gmail.com

Created attachment 196257
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196257&action=edit
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=compile --tag=CXX c++ -DHAVE_CONFIG_H   -I.. -I.. 
  -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=autoreconf to the port Makefile. However, it seems that
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 files
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 file,
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

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


More information about the freebsd-ports-bugs mailing list