Bug 228751

Summary: I cannot compile graphics/natron on FreeBSD 12-CURRENT
Product: Ports & Packages Reporter: Manuel <gnuandbsdguy>
Component: Individual Port(s)Assignee: Olivier Cochard <olivier>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (olivier)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Manuel 2018-06-04 18:59:22 UTC
When I try to compile natron on FreeBSD 12-CURRENT, i get the following error message:

In file included from /usr/local/include/python2.7/Python.h:88:
/usr/local/include/python2.7/unicodeobject.h:534:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register PyObject *obj,     /* Object */
    ^~~~~~~~~
/usr/local/include/python2.7/unicodeobject.h:553:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register PyObject *obj      /* Object */
    ^~~~~~~~~
/usr/local/include/python2.7/unicodeobject.h:575:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register const wchar_t *w,  /* wchar_t buffer */
    ^~~~~~~~~
/usr/local/include/python2.7/unicodeobject.h:593:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register wchar_t *w,        /* wchar_t buffer */
    ^~~~~~~~~
In file included from <built-in>:1:
In file included from /usr/local/include/python2.7/Python.h:97:
/usr/local/include/python2.7/stringobject.h:173:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register PyObject *obj,     /* string or Unicode object */
    ^~~~~~~~~
/usr/local/include/python2.7/stringobject.h:174:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register char **s,          /* pointer to buffer variable */
    ^~~~~~~~~
/usr/local/include/python2.7/stringobject.h:175:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]
    register Py_ssize_t *len    /* pointer to length variable or NULL
    ^~~~~~~~~
--- KnobFile_Test.o ---
7 warnings generated.
--- wmain.o ---
7 warnings generated.
--- Tracker_Test.o ---
7 warnings generated.
--- Tests ---
c++ -fstack-protector -Wl,-rpath,'$ORIGIN/../lib',-z,origin -Wl,-O1 -pthread -Wl,-rpath,/usr/local/lib/qt4 -o Tests gtest-all.o  gtest_main.o  gmock-all.o  BaseTest.o  Hash64_Test.o  Image_Test.o  Lut_Test.o  KnobFile_Test.o  Curve_Test.o  Tracker_Test.o  wmain.o    -L/usr/local/lib/qt4 -L/usr/local/lib -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../Gui/ -lGui -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../Engine/ -lEngine -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../HostSupport/ -lHostSupport -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/libmv/ -lLibMV -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/openMVG/ -lopenMVG -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/ceres/ -lceres -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/glog/ -lglog -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/gflags/ -lgflags -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/qhttpserver/build/ -lqhttpserver -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/hoedown/build/ -lhoedown -L/usr/ports/graphics/natron/work/Natron-2.3.4/Tests/../libs/libtess/ -ltess -lX11 -L/usr/local/lib -lpython2.7 -ldl -lintl -lutil -lm -Wl,--export-dynamic -lboost_serialization -lpyside-python2.7 -lshiboken-python2.7 -lexpat -lpixman-1 -lfontconfig -lfreetype -lcairo -lpthread -lQtOpenGL -L/usr/local/lib/qt4 -lQtGui -lQtNetwork -lQtCore -lGL
===>  Staging for natron-2.3.4_1
===>   natron-2.3.4_1 depends on file: /usr/local/OFX/Plugins/IO.ofx.bundle/Contents/Info.plist - not found
===>  openfx-io-2.3.4_1 is marked as broken: fails to build with ffmpeg 4.0.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/openfx-io
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/natron
Comment 1 Olivier Cochard freebsd_committer freebsd_triage 2018-06-06 07:36:00 UTC
I'm working on upgrading natron to 2.3.12 that should fix this problem
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-06-06 18:35:59 UTC
A commit references this bug:

Author: olivier
Date: Wed Jun  6 18:35:39 UTC 2018
New revision: 471871
URL: https://svnweb.freebsd.org/changeset/ports/471871

Log:
  Update to 2.3.12 and fix build with the latest ffmpeg version

  PR:		228751
  Reported by:	gnuandbsdguy@gmail.com

Changes:
  head/graphics/openfx-io/Makefile
  head/graphics/openfx-io/distinfo
Comment 3 Olivier Cochard freebsd_committer freebsd_triage 2018-06-06 18:41:59 UTC
Natron upgraded to 2.3.12 and build is fixed.