From owner-freebsd-ports@freebsd.org Sun Feb 5 15:21:21 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 60B2BCD18DC for ; Sun, 5 Feb 2017 15:21:21 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from anoxia.adamw.org (anoxia.adamw.org [104.225.8.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "anoxia.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16CAE17A6 for ; Sun, 5 Feb 2017 15:21:20 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by anoxia.adamw.org (OpenSMTPD) with ESMTPSA id 76c86805 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 5 Feb 2017 08:21:13 -0700 (MST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: ffmpeg build fails only if being built as a dependency of emby-server From: Adam Weinberger In-Reply-To: Date: Sun, 5 Feb 2017 08:21:10 -0700 Cc: Tsaki Stan , FreeBSD ports Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Ben Woods X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2017 15:21:21 -0000 > On 5 Feb, 2017, at 8:07, Ben Woods wrote: >=20 > On 9 January 2017 at 23:52, Tsaki Stan wrote: >=20 >> Hello, >>=20 >> even though it's one of the dependencies that fails (ffmpeg), if I = install >> it separately it compiles just fine. I'm not quite sure who to = contact. >> I've attached the full log if you want to check it out. >>=20 >>=20 >> [root@crystal ~]# uname -a >> FreeBSD crystal 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct = 24 >> 06:55:27 UTC 2016 = root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC >> amd64 >> [root@crystal ~]# cat /etc/make.conf >> OPTIONS_UNSET=3DX11 OPENGL XCB FONTCONFIG >> multimedia_ffmpeg_SET=3DLAME OPUS SMB X265 >> multimedia_ffmpeg_UNSET=3DVAAPI VDPAU FREI0R >> graphics_ImageMagick-nox11_UNSET=3D16BIT_PIXEL PDF >> [root@crystal ~]# pkg leaf >> bash-4.4.5 >> dialog4ports-0.1.6 >> pkg-1.9.4_1 >> portmaster-3.17.9_4 >> samba44-4.4.8 >> [root@crystal ~]# pkg autoremove >> Checking integrity... done (0 conflicting) >> Nothing to do. >> [root@crystal ~]# make -C /usr/ports/multimedia/emby-server/ install >> clean BATCH=3Dyes 2>&1 | tee -a emby_fail.txt >> ... >> libavcodec/libavcodec.so: undefined reference to = `ff_blockdsp_init_x86' >> gmake[2]: *** [Makefile:131: ffprobe_g] Error 1 >> gmake[2]: *** Waiting for unfinished jobs.... >> libavcodec/libavcodec.so: undefined reference to = `ff_xvid_idct_init_x86' >> libavcodec/libavcodec.so: undefined reference to `ff_me_cmp_init_x86' >> libavfilter/libavfilter.so: undefined reference to = `ff_hqdn3d_init_x86' >> libavcodec/libavcodec.so: undefined reference to = `ff_h264_pred_init_x86' >> libavfilter/libavfilter.so: undefined reference to = `ff_showcqt_init_x86' >> libavcodec/libavcodec.so: undefined reference to >> `ff_mpegvideoencdsp_init_x86' >> libavfilter/libavfilter.so: undefined reference to = `ff_w3fdif_init_x86' >> libavutil/libavutil.so: undefined reference to `ff_get_cpu_flags_x86' >> libavcodec/libavcodec.so: undefined reference to = `ff_pixblockdsp_init_x86' >> cc: error: linker command failed with exit code 1 (use -v to see >> invocation) >> gmake[2]: *** [Makefile:131: ffmpeg_g] Error 1 >> gmake[2]: Leaving directory '/usr/ports/multimedia/ffmpeg/ >> work/ffmpeg-3.2.2' >> =3D=3D=3D> Compilation failed unexpectedly. >> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to >> the maintainer. >> *** Error code 1 >> Stop. >> make[1]: stopped in /usr/ports/multimedia/ffmpeg >> *** Error code 1 >> Stop. >> make: stopped in /usr/ports/multimedia/emby-server >> [root@crystal ~]# >>=20 >> This works fine: >> make -C /usr/ports/multimedia/ffmpeg WITH=3D"LAME OPUS SMB X265" >> WITHOUT=3D"VAAPI VDPAU FREI0R" install clean BATCH=3Dyes && >> make -C /usr/ports/graphics/ImageMagick-nox11 WITHOUT=3D"16BIT_PIXEL = PDF" >> installclean BATCH=3Dyes && >> make -C /usr/ports/multimedia/emby-server install clean BATCH=3Dyes >>=20 >> Am I doing something wrong? >>=20 >> Thanks >>=20 >=20 >=20 > Hi Tsaki, >=20 > Thanks for pointing this out. I use poudriere to build my ports, so I = had > never noticed this, but was able to reproduce it today. >=20 > Any porters out there have any idea why multimedia/ffmpeg would fail = to > build when being built as a dependency of multimedia/emby-server, but = not > if it is build directly? ffmpeg does have a bad habit of finding headers or libraries in = LOCALBASE and mistakenly using them instead of its own sources, and = perhaps that's what's happening here. Presumably another emby-server = dependency is giving ffmpeg this opportunity. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org