Page 1 of 1

NEW VLC build error for 3.0.11 at libtool

Posted: 21 Jul 2020 21:46
by EP99
Making some extensions to VLC running on Mojave current against 3.0.11 code -- downloaded from http://www.videolan.org/vlc/download-sources.html

Based on suggestions from @dfuhrmann in a previous post, downloaded the libtool patch and placed in extras/tools from here:

http://git.videolan.org/?p=vlc/vlc-3.0. ... bf;hb=HEAD

My build stops at the File to patch: prompt in the code below -- HOW DO I FIX THIS? Please help.

Error--

Code: Select all

../extras/package/macosx/build.sh -c [build] Building VLC for the Mac OS X [build] Building in "/Users/CT15/temp/VLC/vlc-3.0.11/build" [build] Building building tools libtool not found protoc too old To-be-built packages: libtool protoc rm -f -R libtool && tar xvzfo libtool-2.4.2.tar.gz x libtool-2.4.2/ x libtool-2.4.2/aclocal.m4 x libtool-2.4.2/AUTHORS x libtool-2.4.2/bootstrap x libtool-2.4.2/ChangeLog x libtool-2.4.2/ChangeLog.1996 x libtool-2.4.2/ChangeLog.1997 x libtool-2.4.2/ChangeLog.1998

Code snip with middle removed....

Code: Select all

x libtool-2.4.2/doc/version.texi (cd libtool-2.4.2 && patch -p1) < libtool-2.4.2-bitcode.patch patching file libltdl/config/ltmain.m4sh patching file libltdl/config/ltmain.sh (cd libtool-2.4.2 && patch -p1) < libtool-2.4.2-san.patch patching file libltdl/config/ltmain.m4sh patching file libltdl/config/ltmain.sh (cd libtool-2.4.2 && patch -p1) < libtool-2.4.6-clang-libs.patch can't find file to patch at input line 11 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Libtool checks only for libraries linked as -l* when trying to |find internal compiler libraries. Clang, however uses the absolute |path to link its internal libraries e.g. compiler_rt. This patch |handles clang's statically linked libraries when finding internal |compiler libraries. |https://crbug.com/749263 |https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 | |--- libtool-2.4.6/m4/libtool.m4 2015-01-20 17:15:19.000000000 +0100 |+++ libtool-2.4.6/m4/libtool.m4.clang 2019-03-06 17:27:40.620395700 +0100 -------------------------- File to patch:

What information do I need to enter to get the build to complete? Thank you.

Won't compile - Re: NEW VLC build error for 3.0.11 at libtool

Posted: 28 Jul 2020 22:46
by EP99
anyone? this will not compile and waiting 7 days for any response ...

Re: NEW VLC build error for 3.0.11 at libtool

Posted: 29 Jul 2020 23:20
by dfuhrmann
Seems you maybe copied a wrong file.

Try again with the tarball of VLC 3.0.11.1, this should include all needed patches right from the start.

Re: NEW VLC build error for 3.0.11 at libtool

Posted: 04 Aug 2020 18:05
by EP99
Thanks @dfuhrmann -- Downloaded 3.0.11.1 and ran "build with single command"

Code: Select all

../extras/package/mocosx/build.sh -c


Get the following errors and fatal write errors -- linking is not correct and then see code snip below toward end -- how to fix/recover so I can build?

Code: Select all

.... CCLD libfile_keystore_plugin.la OBJCLD libkeychain_plugin.la ld: warning: could not create compact unwind for _ff_cfhd_init_vlcs: stack subq instruction is too different from dwarf stack size ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavutil.a(cpuid.o)) built for free standing CCLD libconsole_logger_plugin.la CCLD libfile_logger_plugin.la CCLD libsyslog_plugin.la ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(aacencdsp.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(dnxhdenc.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(me_cmp.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavutil.a(imgutils.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(svq1enc.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(v210enc.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(v210.o)) built for free standing CCLD liblua_plugin.la ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(ac3dsp.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(ac3dsp_downmix.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(lossless_videodsp.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(pngdsp.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlc-3.0.11.1/contrib/x86_64-apple-darwin18/lib/libavcodec.a(diracdsp.o)) built for free standing ld: warning: building for macOS, but linking in object file (/Users/CT15/temp/VLC/vlld: warning: ld: warning: ld: warning: ld: warning: ld: warning: ... ld: warning: CCLD libfolder_plugin.la .... CCLD libmosaic_plugin.la no symbols CCLD librss_plugin.la CCLD libdynamicoverlay_plugin.la CCLD libarchive_plugin.la CCLD libcache_read_plugin.la CCLD libcache_block_plugin.la CCLD libdecomp_plugin.la CCLD libinflate_plugin.la CCLD libprefetch_plugin.la CCLD libhds_plugin.la CCLD libtdummy_plugin.la GEN libfreetype_plugin.la .... CCLD libfps_plugin.la CCLD libfreeze_plugin.la CCLD libpuzzle_plugin.la CCLD librotate_plugin.la OBJCLD libci_filters_plugin.la CCLD libdeinterlace_plugin.la CCLD libgoom_plugin.la CCLD libvisual_plugin.la OBJCLD libvout_macosx_plugin.la OBJCLD libcaopengllayer_plugin.la CCLD libglconv_cvpx_plugin.la CCLD libhttps_plugin.la CCLD librtp_plugin.la CCLD libi420_nv12_plugin.la CCLD libi420_10_p010_plugin.la CCLD libmotion_plugin.la make[2]: write error make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 McKinley:build CT15$ ls Makefile compile config.status doltlibtool libtool po stamp-h1 bin config.h doc include m4 share test compat config.log doltcompile lib modules src McKinley:build CT15$ pwd /Users/CT15/temp/VLC/vlc-3.0.11.1/build McKinley:build CT15$

Re: NEW VLC build error for 3.0.11 at libtool

Posted: 06 Aug 2020 19:33
by dfuhrmann
You are still confusing warnings with errors. A warning is no error, maybe you should better try to understand the difference between both.

Re: NEW VLC build error for 3.0.11 at libtool

Posted: 06 Aug 2020 23:28
by EP99
@ dfuhrmann with all due respect -- write error, Error 1 and Error 2 would most certainly be ERRORS not warnings.....

Re: NEW VLC build error for 3.0.11 at libtool

Posted: 08 Aug 2020 11:09
by dfuhrmann
Did you consider that write error might have something to do with your file system, potentially. And not with the build script?