Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664818 - dev-libs/m17n-lib-1.8.0 with media-libs/freetype-2.9.1-r4: error: ‘mfont__ft_driver’ undeclared
Summary: dev-libs/m17n-lib-1.8.0 with media-libs/freetype-2.9.1-r4: error: ‘mfont__ft_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: freetype-config
  Show dependency tree
 
Reported: 2018-08-29 08:23 UTC by Ulrich Müller
Modified: 2021-06-08 15:49 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,91.55 KB, text/plain)
2018-08-29 08:24 UTC, Ulrich Müller
Details
m17n-lib-1.8.0-ftconfig.patch (m17n-lib-1.8.0-ftconfig.patch,1.20 KB, patch)
2018-08-29 08:47 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2018-08-29 08:23:20 UTC
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DM17NDIR=\"/usr/share/m17n\" -DM17N_MODULE_DIR=\"/usr/lib64/m17n/1.0\" -DGETTEXTDIR=\"/usr/share/locale\" -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/freetype2   -march=core2 -ggdb -O2 -pipe -c -o m17n-X.lo m17n-X.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DM17NDIR=\"/usr/share/m17n\" -DM17N_MODULE_DIR=\"/usr/lib64/m17n/1.0\" -DGETTEXTDIR=\"/usr/share/locale\" -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/freetype2 -march=core2 -ggdb -O2 -pipe -c m17n-X.c  -fPIC -DPIC -o .libs/m17n-X.o
m17n-X.c: In function ‘xft_open’:
m17n-X.c:1153:12: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
   rfont = (mfont__ft_driver.open) (frame, font, spec, rfont);
            ^~~~~~~~~~~~~~~~
            xfont_driver
m17n-X.c:1153:12: note: each undeclared identifier is reported only once for each function it appears in
m17n-X.c: In function ‘xft_has_char’:
m17n-X.c:1242:16: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
       result = mfont__ft_driver.has_char (frame, font, spec, c, code);
                ^~~~~~~~~~~~~~~~
                xfont_driver
m17n-X.c: In function ‘xft_encode_char’:
m17n-X.c:1259:14: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
       code = mfont__ft_driver.encode_char (frame, font, spec, code);
              ^~~~~~~~~~~~~~~~
              xfont_driver
m17n-X.c: In function ‘xft_check_capability’:
m17n-X.c:1356:12: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
   result = mfont__ft_driver.check_capability (rfont, capability);
            ^~~~~~~~~~~~~~~~
            xfont_driver
m17n-X.c: In function ‘xft_check_otf’m17n-X.c:1369:12: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
   result = mfont__ft_driver.check_otf (font, spec);
            ^~~~~~~~~~~~~~~~
            xfont_driver
m17n-X.c: In function ‘xft_drive_otf’:
m17n-X.c:1385:12: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
   result = mfont__ft_driver.drive_otf (font, spec, in, from, to, out,
            ^~~~~~~~~~~~~~~~
            xfont_driver
m17n-X.c: In function ‘mwin__device_get_prop’:
m17n-X.c:1441:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     return (void *) device->depth;
            ^
m17n-X.c: In function ‘device_init’:
m17n-X.c:2125:23: error: ‘mfont__ft_driver’ undeclared (first use in this function); did you mean ‘xfont_driver’?
   xft_driver.select = mfont__ft_driver.select;
                       ^~~~~~~~~~~~~~~~
                       xfont_driver
m17n-X.c: In function ‘device_open’:
m17n-X.c:2199:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  depth = (unsigned) mplist_value (plist);
          ^
make[2]: *** [Makefile:842: m17n-X.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/m17n-lib-1.8.0/work/m17n-lib-1.8.0/src'
make[1]: *** [Makefile:636: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/m17n-lib-1.8.0/work/m17n-lib-1.8.0'
make: *** [Makefile:500: all] Error 2
 * ERROR: dev-libs/m17n-lib-1.8.0::gentoo failed (compile phase):
 *   emake failed

This is caused by configure not finding freetype, because freetype-config is no longer installed.
Comment 1 Ulrich Müller gentoo-dev 2018-08-29 08:24:05 UTC
Created attachment 545420 [details]
build.log
Comment 2 Ulrich Müller gentoo-dev 2018-08-29 08:47:49 UTC
Created attachment 545422 [details, diff]
m17n-lib-1.8.0-ftconfig.patch

Attached patch fixes the problem for me.
Comment 3 Arne Babenhauserheide 2018-08-29 13:03:55 UTC
The patch also solved the problem for me. Thank you!
Comment 4 Larry the Git Cow gentoo-dev 2018-08-29 13:36:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfe2bf058f9d2e61dd9ce39b46cc4df491a18ec9

commit cfe2bf058f9d2e61dd9ce39b46cc4df491a18ec9
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2018-08-29 08:47:49 +0000
Commit:     Akinori Hattori <hattya@gentoo.org>
CommitDate: 2018-08-29 13:33:27 +0000

    dev-libs/m17n-lib: use pkg-config to find freetype
    
    Closes: https://bugs.gentoo.org/664818
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-libs/m17n-lib/files/m17n-lib-ftconfig.patch | 29 +++++++++++++++++++++++++
 dev-libs/m17n-lib/m17n-lib-1.8.0.ebuild         |  1 +
 2 files changed, 30 insertions(+)
Comment 5 Nikita Zlobin 2021-06-08 15:49:34 UTC
Same bug now appears for verions 1.7.0, while 1.8.0 is keyworded as experimental.