<div dir="auto"><div dir="auto"></div><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Igor Miranda</strong> <span dir="ltr"><<a href="mailto:igorcmiranda3110@gmail.com" target="_blank" rel="noreferrer">igorcmiranda3110@gmail.com</a>></span><br>Date: qui, 24 de jan de 2019 08:05<br>Subject: Unsafe Headers<br>To:  <<a href="mailto:aduskett@gmail.com" target="_blank" rel="noreferrer">aduskett@gmail.com</a>><br></div><br><br><div dir="auto"><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>Dear Adam,</b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b><br></b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>I'm writing this email because I did a recipe for the GST-SHARK and I got this error:</b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">+ check for build tools</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">  checking for autoreconf ... </div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">/usr/bin/autoreconf</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">  checking for pkg-config ... </div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">/usr/bin/pkg-config</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><a href="http://configure.ac:96/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac:96</a>: installing './compile'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><a href="http://configure.ac:34/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac:34</a>: installing './config.guess'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><a href="http://configure.ac:34/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac:34</a>: installing './config.sub'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><a href="http://configure.ac:16/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac:16</a>: installing './install-sh'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><a href="http://configure.ac:16/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac:16</a>: installing './missing'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">common/coverage/lcov.mak:2: warning: .PHONY was already defined in condition GST_GCOV_ENABLED, which is included in condition TRUE ...</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile.am:88:   'common/coverage/lcov.mak' included from here</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile.am:38: ... '.PHONY' previously defined here</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile.am: installing './INSTALL'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">plugins/tracers/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">plugins/tracers/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">plugins/tracers/Makefile.am:1:   to '<a href="http://configure.ac/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac</a>' and run 'aclocal' and 'autoconf' again.</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">plugins/tracers/Makefile.am:1:   If 'LT_INIT' is in '<a href="http://configure.ac/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">configure.ac</a>', make sure</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">plugins/tracers/Makefile.am:1:   its definition is in aclocal's search path.</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">plugins/tracers/Makefile.am: installing './depcomp'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">tests/check/Makefile.am:8: warning: AM_TESTS_ENVIRONMENT multiply defined in condition TRUE ...</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">common/check.mak:15: ... 'AM_TESTS_ENVIRONMENT' previously defined here</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">tests/check/Makefile.am:1:   'common/check.mak' included from here</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">parallel-tests: installing './test-driver'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">autoreconf: automake failed with exit status: 1</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">package/<a href="http://pkg-generic.mk:220/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">pkg-generic.mk:220</a>: recipe for target '/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/.stamp_configured' failed</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make: *** [/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/.stamp_configured] Error 1</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>So, after I add libtoolize in my mk file and I got this other error:</b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: install: /usr/bin/install -c .libs/libgstshark.so.0.0.0 /home/igor/buildroot/buildroot/output/target/usr/lib/libgstshark.so.0.0.0</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: install: (cd /home/igor/buildroot/buildroot/output/target/usr/lib && { ln -s -f libgstshark.so.0.0.0 libgstshark.so.0 || { rm -f libgstshark.so.0 && ln -s libgstshark.so.0.0.0 libgstshark.so.0; }; })</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: install: (cd /home/igor/buildroot/buildroot/output/target/usr/lib && { ln -s -f libgstshark.so.0.0.0 libgstshark.so || { rm -f libgstshark.so && ln -s libgstshark.so.0.0.0 libgstshark.so; }; })</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: install: /usr/bin/install -c .libs/libgstshark.lai /home/igor/buildroot/buildroot/output/target/usr/lib/<a href="http://libgstshark.la/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">libgstshark.la</a></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: warning: relinking '<a href="http://libgstsharktracers.la/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">libgstsharktracers.la</a>'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: install: (cd /home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/plugins/tracers; /bin/bash "/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/libtool"  --silent --tag CC --tag disable-static --mode=relink /home/igor/buildroot/buildroot/output/host/bin/arm-buildroot-linux-gnueabi-gcc -I../.. -I../.. -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/include/glib-2.0 -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/lib/glib-2.0/include -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/include -pthread -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs -g -DGST_DISABLE_DEPRECATED -Werror -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/include/gstreamer-1.0 -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/include/glib-2.0 -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/lib/glib-2.0/include -I/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/include -pthread -DGST_USE_UNSTABLE_API -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -module -avoid-version -export-symbols-regex "^_*gst_plugin_.*" -no-undefined -Wl,-Bsymbolic-functions -o <a href="http://libgstsharktracers.la/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">libgstsharktracers.la</a> -rpath /usr/lib/gstreamer-1.0 libgstsharktracers_la-gstplugin.lo libgstsharktracers_la-gstsharktracer.lo libgstsharktracers_la-gstgraphic.lo libgstsharktracers_la-gstcpuusage.lo libgstsharktracers_la-gstproctime.lo libgstsharktracers_la-gstinterlatency.lo libgstsharktracers_la-gstscheduletime.lo libgstsharktracers_la-gstframerate.lo libgstsharktracers_la-gstqueuelevel.lo libgstsharktracers_la-gstbitrate.lo libgstsharktracers_la-gstbuffer.lo libgstsharktracers_la-gstperiodictracer.lo -L/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/lib -lgobject-2.0 -lgmodule-2.0 -pthread -lglib-2.0 -L/home/igor/buildroot/buildroot/output/host/bin/../arm-buildroot-linux-gnueabi/sysroot/usr/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 <a href="http://libgstshark.la/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">libgstshark.la</a> -inst-prefix-dir /home/igor/buildroot/buildroot/output/target)</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool: warning: remember to run 'libtool --finish /usr/lib'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">arm-buildroot-linux-gnueabi-gcc: ERROR: unsafe header/library path used in cross-compilation: '-L/usr/lib'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">libtool:   error: error: relink '<a href="http://libgstsharktracers.la/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">libgstsharktracers.la</a>' with the above command before installing it</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile:646: recipe for target 'install-pluginLTLIBRARIES' failed</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[4]: *** [install-pluginLTLIBRARIES] Error 1</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[4]: Leaving directory '/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/plugins/tracers'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile:963: recipe for target 'install-am' failed</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[3]: *** [install-am] Error 2</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[3]: Leaving directory '/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/plugins/tracers'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile:483: recipe for target 'install-recursive' failed</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[2]: *** [install-recursive] Error 1</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[2]: Leaving directory '/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/plugins'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">Makefile:599: recipe for target 'install-recursive' failed</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[1]: *** [install-recursive] Error 1</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make[1]: Leaving directory '/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5'</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">package/<a href="http://pkg-generic.mk:315/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer noreferrer" target="_blank">pkg-generic.mk:315</a>: recipe for target '/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/.stamp_target_installed' failed</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto">make: *** [/home/igor/buildroot/buildroot/output/build/gst-shark-0.5.5/.stamp_target_installed] Error 2</div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><br></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>I will send my mk file too, but what changes is that in this line:</b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b><br></b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>cd $(@D) && ./autogen.sh --prefix=${STAGING_DIR}/usr --libdir=${STAGING_DIR}/usr/lib </b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b><br></b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>with libtoolize is going to be something like this </b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b><br></b></div><div style="color:rgb(128,0,128);font-family:arial,helvetica,sans-serif;font-size:small" dir="auto"><b>cd $(@D) <font color="#ff0000">&& libtoolize</font> && ./autogen.sh --prefix=${STAGING_DIR}/usr --libdir=${STAGING_DIR}/usr/lib</b></div></div>
</div></div>