<div dir="ltr"><div><div><div><div>The gcc error makes no sense as the function get_time_from_x() is defined (inline) earlier in multitrack.c at line 971.<br>You should report this as a bug in gcc.<br></div><br></div>The warning regarding  gtk_alignment_get_type() is internal to gtk+. You should open a bug report there<br>.<br></div>The other warnings are vaid for LiVES but are trivial to fix.<br><br></div>Gabriel.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 31, 2017 at 6:33 AM, Matthias Klose <span dir="ltr"><<a href="mailto:doko@debian.org" target="_blank">doko@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: src:lives<br>
Version: 2.8.3-1<br>
Severity: normal<br>
Tags: sid buster<br>
User: <a href="mailto:debian-gcc@lists.debian.org">debian-gcc@lists.debian.org</a><br>
Usertags: ftbfs-gcc-7<br>
<br>
Please keep this issue open in the bug tracker for the package it<br>
was filed for.  If a fix in another package is required, please<br>
file a bug for the other package (or clone), and add a block in this<br>
package. Please keep the issue open until the package can be built in<br>
a follow-up test rebuild.<br>
<br>
The package fails to build in a test rebuild on at least amd64 with<br>
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The<br>
severity of this report may be raised before the buster release.<br>
There is no need to fix this issue in time for the stretch release.<br>
<br>
The full build log can be found at:<br>
<a href="http://people.debian.org/~doko/logs/gcc7-20170126/lives_2.8.3-1_unstable_gcc7.log" rel="noreferrer" target="_blank">http://people.debian.org/~<wbr>doko/logs/gcc7-20170126/lives_<wbr>2.8.3-1_unstable_gcc7.log</a><br>
The last lines of the build log are at the end of this report.<br>
<br>
To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,<br>
or install the gcc, g++, gfortran, ... packages from experimental.<br>
<br>
  apt-get -t=experimental install g++<br>
<br>
Common build failures are new warnings resulting in build failures with<br>
-Werror turned on, or new/dropped symbols in Debian symbols files.<br>
For other C/C++ related build failures see the porting guide at<br>
<a href="http://gcc.gnu.org/gcc-7/porting_to.html" rel="noreferrer" target="_blank">http://gcc.gnu.org/gcc-7/<wbr>porting_to.html</a><br>
<br>
[...]<br>
callbacks.c:5975:15: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]<br>
     if (height*width) {<br>
         ~~~~~~^~~~~~<br>
callbacks.c:6006:15: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]<br>
   if (!(height*width)&&preview_<wbr>type!=LIVES_PREVIEW_TYPE_<wbr>IMAGE_ONLY) {<br>
        ~~~~~~~^~~~~~~<br>
callbacks.c:6123:7: warning: 'gtk_alignment_get_type' is deprecated [-Wdeprecated-declarations]<br>
       lives_alignment_set(LIVES_<wbr>ALIGNMENT(mainw->fs_playalign)<wbr>,0.5,<br>
       ^~~~~~~~~~~~~~~~~~~<br>
In file included from /usr/include/gtk-3.0/gtk/gtk.<wbr>h:251:0,<br>
                 from main.h:74,<br>
                 from callbacks.c:21:<br>
/usr/include/gtk-3.0/gtk/<wbr>deprecated/gtkalignment.h:77:<wbr>12: note: declared here<br>
 GType      gtk_alignment_get_type   (void) G_GNUC_CONST;<br>
            ^~~~~~~~~~~~~~~~~~~~~~<br>
callbacks.c: In function 'on_full_screen_activate':<br>
callbacks.c:6716:33: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]<br>
         if (!(mainw->vpp->fwidth*mainw-><wbr>vpp->fheight)) {<br>
              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~<wbr>~~~~~~~~~~<br>
callbacks.c: In function 'on_double_size_activate':<br>
callbacks.c:6903:29: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]<br>
     } while (!(mainw->pwidth*mainw-><wbr>pheight));<br>
               ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~<br>
callbacks.c: In function 'on_sepwin_activate':<br>
callbacks.c:7088:35: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]<br>
           if (!(mainw->vpp->fwidth*mainw-><wbr>vpp->fheight)) {<br>
                ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~<wbr>~~~~~~~~~~<br>
main.c: In function 'switch_to_file':<br>
main.c:7105:19: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]<br>
       if (old_file*new_file) mainw->preview_frame=0;<br>
           ~~~~~~~~^~~~~~~~~<br>
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wstrict-aliasing=0 -Wall -DHAVE_YUV4MPEG=1 -DHAVE_LDVGRAB=1 -I libavc1394/avc1394.h -I libraw1394/raw1394.h -I libraw1394/rom1394.h     -DIS_LINUX_GNU=1  -DENABLE_OSC=1  -I/usr/include/alsa -DALSA_MIDI=1 -I/usr/include/libpng16 -DUSE_LIBPNG=1 -I/usr/include/x86_64-linux-<wbr>gnu -I/usr/include/x86_64-linux-<wbr>gnu -DUSE_SWSCALE=1 -DENABLE_JACK -DENABLE_JACK_TRANSPORT -lpulse -DHAVE_PULSE_AUDIO=1 -DENABLE_GIW=1 -DHAVE_UNICAP=1   -DLIVES_LIBDIR=\""/usr/lib/<wbr>x86_64-linux-gnu"\"  -DHAVE_WEBM=1  -g -O2 -fdebug-prefix-map=/<<<wbr>PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -pthread -shared  -Wl,-z,relro -o lives-exe widget-helper.o main.o support.o effects.o plugins.o effects-weed.o effects-data.o framedraw.o interface.o paramspecial.o paramwindow.o rfx-builder.o lives-yuv4mpeg.o preferences.o rte_window.o gui.o ce_thumbs.o htmsocket.o merge.o dialogs.o saveplay.o audio.o events.o resample.o osc.o omc-learn.o callbacks.o colourspace.o keyboard.o utils.o multitrack.o stream.o cvirtual.o startup.o pangotext.o videodev.o jack.o pulse.o ldvgrab.o ldvcallbacks.o ldvinterface.o giw/giwknob.o giw/giwvslider.o giw/giwled.o giw/giwtimeline.o -lX11 -lmjpegutils ../libOSC/.libs/libOSC.a ../libOSC/client/.libs/libOSC_<wbr>client.a -lm -ljack -lavc1394 -lraw1394 -lrom1394 -lasound -lpulse -lpng16 -lswscale -lavutil  /<<PKGBUILDDIR>>/libweed/<a href="http://libweed_slice.la" rel="noreferrer" target="_blank">libwe<wbr>ed_slice.la</a> /<<PKGBUILDDIR>>/libweed/<a href="http://libweed-utils.la" rel="noreferrer" target="_blank">libwe<wbr>ed-utils.la</a> -lm  -lunicap -lrt -ldl<br>
libtool: link: gcc -Wstrict-aliasing=0 -Wall -DHAVE_YUV4MPEG=1 -DHAVE_LDVGRAB=1 -I libavc1394/avc1394.h -I libraw1394/raw1394.h -I libraw1394/rom1394.h -DIS_LINUX_GNU=1 -DENABLE_OSC=1 -I/usr/include/alsa -DALSA_MIDI=1 -I/usr/include/libpng16 -DUSE_LIBPNG=1 -I/usr/include/x86_64-linux-<wbr>gnu -I/usr/include/x86_64-linux-<wbr>gnu -DUSE_SWSCALE=1 -DENABLE_JACK -DENABLE_JACK_TRANSPORT -DHAVE_PULSE_AUDIO=1 -DENABLE_GIW=1 -DHAVE_UNICAP=1 -DLIVES_LIBDIR=\"/usr/lib/x86_<wbr>64-linux-gnu\" -DHAVE_WEBM=1 -g -O2 -fdebug-prefix-map=/<<<wbr>PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pthread -Wl,-z -Wl,relro -o .libs/lives-exe widget-helper.o main.o support.o effects.o plugins.o effects-weed.o effects-data.o framedraw.o interface.o paramspecial.o paramwindow.o rfx-builder.o lives-yuv4mpeg.o preferences.o rte_window.o gui.o ce_thumbs.o htmsocket.o merge.o dialogs.o saveplay.o audio.o events.o resample.o osc.o omc-learn.o callbacks.o colourspace.o keyboard.o utils.o multitrack.o stream.o cvirtual.o startup.o pangotext.o videodev.o jack.o pulse.o ldvgrab.o ldvcallbacks.o ldvinterface.o giw/giwknob.o giw/giwvslider.o giw/giwled.o giw/giwtimeline.o  -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lX11 -lmjpegutils ../libOSC/.libs/libOSC.a ../libOSC/client/.libs/libOSC_<wbr>client.a -ljack -lavc1394 /usr/lib/x86_64-linux-gnu/<wbr>libraw1394.so -lrom1394 -lasound -lpulse -lpng16 -lswscale -lavutil /<<PKGBUILDDIR>>/libweed/.<wbr>libs/libweed_slice.so /<<PKGBUILDDIR>>/libweed/.<wbr>libs/libweed-utils.so -lm -lunicap -lrt -ldl -pthread<br>
multitrack.o: In function `on_drag_filter_end':<br>
./src/multitrack.c:3706: undefined reference to `get_time_from_x'<br>
multitrack.o: In function `on_track_release':<br>
./src/multitrack.c:13605: undefined reference to `get_time_from_x'<br>
multitrack.o: In function `on_drag_clip_end':<br>
./src/multitrack.c:4297: undefined reference to `get_time_from_x'<br>
collect2: error: ld returned 1 exit status<br>
Makefile:913: recipe for target 'lives-exe' failed<br>
make[2]: *** [lives-exe] Error 1<br>
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'<br>
Makefile:640: recipe for target 'all-recursive' failed<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory '/<<PKGBUILDDIR>>'<br>
dh_auto_build: make -j64 returned exit code 2<br>
debian/rules:15: recipe for target 'build' failed<br>
make: *** [build] Error 2<br>
dpkg-buildpackage: error: debian/rules build gave error exit status 2<br>
<br>
</blockquote></div><br></div>