Date: Fri, 13 Oct 2017 11:36:20 -0700 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: freebsd-ports@freebsd.org Subject: Re: upgrading math/octave? Message-ID: <20171013183620.GA16543@troutmask.apl.washington.edu> In-Reply-To: <20171012235607.GA83761@troutmask.apl.washington.edu> References: <20171012235607.GA83761@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 12, 2017 at 04:56:07PM -0700, Steve Kargl wrote: > Has anyone successfully updated math/octave? >=20 > The current math/octave port uses version 4.0.3, > which was released 2016-07-01. The newest version > is 4.2.1 and it was released on 2017-02-22. The > newer version contains new features and boatload > of bugfixes. >=20 > My attempts at an upgrade die with a C++ error. >=20 > libtool: link: c++ -std=3Dgnu++11 -fPIC -D_THREAD_SAFE -pthread -fopenmp = -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings= -Wcast-align -Wcast-qual -O2 -pipe -fstack-protector -fno-strict-aliasing = -Wl,-rpath=3D/usr/local/lib/gcc6 -B/usr/local/bin -fstack-protector -o src/= =2Elibs/octave-cli src/src_octave_cli-main-cli.o src/src_octave_cli-octave-= build-info.o -Wl,-R/usr/local/lib -L/usr/local/lib -L/usr/local/lib/gcc6 l= ibinterp/.libs/liboctinterp.so liboctave/.libs/liboctave.so libgnu/.libs/li= bgnu.a -lhdf5 -lGraphicsMagick++ -lGraphicsMagick -lz -lGL -lGLU -lfontconf= ig -lfreetype -lX11 -lgl2ps -lcurl -lumfpack -lcholmod -lamd -lcamd -lcolam= d -lccolamd -lcxsparse -lsuitesparseconfig -larpack -lqrupdate -lfftw3_thre= ads -lfftw3 -lfftw3f_threads -lfftw3f -lopenblasp -lreadline -lncurses -lpc= re -L/usr/local/bin -L/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd12.0/6.= 4.0 -L/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd12.0/6.4.0/../../../../= =2E./x86_64-portbld-freebsd12.0/l > ib -L/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd12.0/6.4.0/../../.. -= lgfortran -lssp_nonshared -lquadmath -lutil -lm -fopenmp -pthread -Wl,-rpat= h -Wl,/usr/local/lib/octave/4.2.1 > libinterp/.libs/liboctinterp.so: undefined reference to `octave::sys::fil= e_stat::~file_stat()' > =20 > ~file_stat() appears in work/octave-4.2.1/liboctave/system/file-stat.h >=20 > lines 235-238 >=20 > // This destructor must remain as an empty destructor defined in the > // cpp file rather than in the header file (bug #50234). > ~file_stat (void); >=20 > and=20 >=20 > line 295 >=20 > ~file_fstat (void) { } It seems I missed an instance of ~file_stat in liboctave/system/file-stat.c= c, which was declared as 'inline file_stat::~file_stat () { }'. Removing inline keyword allows the compilation to continue. Now, the port fails at mv doc/interpreter/doc-cache-t doc/interpreter/doc-cache lrelease -qt4 -qm libgui/languages/be_BY.qm libgui/languages/be_BY.ts lrelease: could not find a Qt installation of '4' gmake[4]: *** [Makefile:27269: libgui/languages/be_BY.qm] Error 1 gmake[4]: Leaving directory '/usr/ports/math/octave42/work/octave-4.2.1' gmake[3]: *** [Makefile:26135: all-recursive] Error 1 gmake[3]: Leaving directory '/usr/ports/math/octave42/work/octave-4.2.1' gmake[2]: *** [Makefile:9910: all] Error 2 gmake[2]: Leaving directory '/usr/ports/math/octave42/work/octave-4.2.1' *** Error code 1 % lrelease -qt4 lrelease: could not find a Qt installation of '4' % lrelease lrelease: could not exec '/usr/local/lib/qt5/bin/lrelease': No such file or= directory % pkg which /usr/local/bin/lrelease /usr/local/bin/lrelease was installed by package qtchooser-39 % pkg info | grep qt4 | wc -l 25 % pkg info | grep qt5 | wc -l --=20 Steve 20170425 https://www.youtube.com/watch?v=3DVWUpyCsUKR4 20161221 https://www.youtube.com/watch?v=3DIbCHE-hONow
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171013183620.GA16543>