Bug 217031 - multimedia/ffmpeg: fails to build
Summary: multimedia/ffmpeg: fails to build
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 14:38 UTC by John Smith
Modified: 2017-02-12 17:45 UTC (History)
4 users (show)

See Also:


Attachments
/usr/ports/multimedia/ffmpeg/work/ffmpeg-3.2.4/config.log (382.25 KB, text/x-log)
2017-02-12 14:38 UTC, John Smith
no flags Details
make showconfig (4.08 KB, text/plain)
2017-02-12 16:18 UTC, John Smith
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Smith 2017-02-12 14:38:29 UTC
Created attachment 179901 [details]
/usr/ports/multimedia/ffmpeg/work/ffmpeg-3.2.4/config.log

===>  Configuring for ffmpeg-3.2.4,1
ERROR: opengl not found.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
===>  Script "configure" failed unexpectedly.
Please report the problem to multimedia@FreeBSD.org [maintainer] and attach
the "/usr/ports/multimedia/ffmpeg/work/ffmpeg-3.2.4/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/multimedia/ffmpeg
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/ffmpeg

===>>> make build failed for multimedia/ffmpeg
===>>> Aborting update

===>>> Update for multimedia/ffmpeg failed
===>>> Aborting update




pkg-static info -g -Ea | pastebinit
http://paste2.org/mZW7vacA
freebsd-version 
11.0-RELEASE-p1
Comment 1 Jan Beich freebsd_committer freebsd_triage 2017-02-12 16:11:51 UTC
Can you post "make showconfig" output?

> BEGIN /tmp/ffconf.LugjN2Ky.c
>     1	extern int glXGetProcAddress();
>     2	int main(void){ glXGetProcAddress(); }
> END /tmp/ffconf.LugjN2Ky.c
> cc ... -L/usr/local/lib ... -lGL ...
> /usr/local/bin/ld: cannot find -lGL
> cc: error: linker command failed with exit code 1 (use -v to see invocation)

Make sure /usr/local/lib/libGL.so exists and points to a real file. Maybe ports r433892 broke something.
Comment 2 John Smith 2017-02-12 16:18:51 UTC
Created attachment 179907 [details]
make showconfig
Comment 3 John Smith 2017-02-12 16:21:29 UTC
(In reply to Jan Beich (mail not working) from comment #1)
'/usr/local/lib/libGL.so' doesn't exist:
ls /usr/local/lib/libGL*
/usr/local/lib/libGL-NVIDIA.so		/usr/local/lib/libGLESv2.so
/usr/local/lib/libGL-NVIDIA.so.1	/usr/local/lib/libGLESv2.so.2
/usr/local/lib/libGLESv1_CM.so		/usr/local/lib/libGLESv2.so.2.0.0
/usr/local/lib/libGLESv1_CM.so.1	/usr/local/lib/libGLU.so
/usr/local/lib/libGLESv2-NVIDIA.so	/usr/local/lib/libGLU.so.1
/usr/local/lib/libGLESv2-NVIDIA.so.2	/usr/local/lib/libGLU.so.1.3.1


so where should it point to?
Comment 4 Jan Beich freebsd_committer freebsd_triage 2017-02-12 17:34:53 UTC
Try reinstalling libGL package.

  $ ls -l /usr/local/lib/libGL.so
  lrwxr-xr-x  1 root  wheel  14 Feb 12 18:31 /usr/local/lib/libGL.so -> libGL.so.1.2.0

  $ pkg which -o /usr/local/lib/libGL.so
  /usr/local/lib/libGL.so was installed by package graphics/libGL
Comment 5 John Smith 2017-02-12 17:45:56 UTC
(In reply to Jan Beich (mail not working) from comment #4)
Thanks, that resolved the issue.
Sorry, for wasting your time.