Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493496 - media-video/vlc-2.1.1 fails to compile with media-libs/freetype-2.5.1
Summary: media-video/vlc-2.1.1 fails to compile with media-libs/freetype-2.5.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tom Wijsman (TomWij) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: freetype-2.5.1
  Show dependency tree
 
Reported: 2013-12-07 06:06 UTC by Ben de Groot (RETIRED)
Modified: 2013-12-07 21:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben de Groot (RETIRED) gentoo-dev 2013-12-07 06:06:34 UTC
In file included from svg.c:29:0:
../../config.h:730:0: warning: "_REENTRANT" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
../../doltlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99   -O2 -march=native -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -rpath '/usr/lib64/vlc/plugins/text_renderer' -avoid-version -module -export-symbols-regex ^vlc_entry -shrext .so -no-undefined ../../compat/libcompat.la ../../src/libvlccore.la   -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -L/usr/lib64/sidplay/builders/ -o libtdummy_plugin.la -rpath /usr/lib64/vlc/plugins/text_renderer libtdummy_plugin_la-tdummy.lo  -lpthread  
freetype.c:93:30: fatal error: freetype/ftsynth.h: No such file or directory
compilation terminated.
Makefile:1297: recipe for target 'libfreetype_plugin_la-freetype.lo' failed
make[4]: *** [libfreetype_plugin_la-freetype.lo] Error 1
make[4]: *** Waiting for unfinished jobs....


The location of the header is now freetype2/ftsynth.h
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2013-12-07 06:26:21 UTC
Adjusting the header in work/vlc-2.1.1/modules/text_renderer/freetype.c to freetype2/ftsynth.h lets it compile succesfully.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-12-07 20:20:38 UTC
Appears fixed in 9999; so, I went looking for an upstream commit:

http://git.videolan.org/?p=vlc/vlc-2.1.git;a=blobdiff;f=modules/text_renderer/freetype.c;h=c27ec4558956f00b1fd2b448fa07d680a2be5c82;hp=25d6b15650d13982fd8c792df92389fd4de8eadd;hb=4eb6d91e94f720bf2dd22dcfee171e4ff4b790df;hpb=9ebead9dfbdcac2da31bc856cec51c058f5ddca8

I'll use that commit instead to patch up 2.1.1 to ensure we don't miss something.

+  07 Dec 2013; Tom Wijsman <TomWij@gentoo.org>
+  +files/vlc-2.1.1-freetype-2.5.1-support.patch, vlc-2.1.1.ebuild:
+  When freetype-2.5.1 or newer is used, we apply a backported patch to vlc-2.1.1
+  support it; fixes bug #493496, reported by Ben de Groot (yngwin).

Fixed! Thank you very much for reporting this.