Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673908 - =app-text/ttf2pk2-2.0_p20170524 - ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Init_FreeType'
Summary: =app-text/ttf2pk2-2.0_p20170524 - ftlib.o:ftlib.c:function FTopen: error: und...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-28 18:33 UTC by James R Larrowe
Modified: 2019-12-13 10:12 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,3.26 KB, application/x-xz)
2018-12-28 18:35 UTC, James R Larrowe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James R Larrowe 2018-12-28 18:33:54 UTC
Unable to build =app-text/ttf2pk2-2.0_p20170524 with undefined references to Freetype libraries.

```
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o ttf2pk errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o texenc.o ttfenc.o pklib.o ttf2pk.o ttflib.o -lkpathsea  -lz -lm 
libtool: link: x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -o ttf2pk errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o texenc.o ttfenc.o pklib.o ttf2pk.o ttflib.o  -lkpathsea -lz -lm
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o ttf2tfm errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o texenc.o ttfenc.o case.o tfmaux.o ttf2tfm.o ttfaux.o vplaux.o -lkpathsea  -lz -lm 
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Init_FreeType'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_New_Face'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Set_Char_Size'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Set_Charmap'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Load_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Load_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Done_Face'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_New_Face'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Get_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Get_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Set_Charmap'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Load_Glyph'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Outline_Get_BBox'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Outline_Get_CBox'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Render_Glyph'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Outline_Transform'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Get_Char_Index'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Outline_Transform'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Outline_Get_BBox'
ttflib.o:ttflib.c:function TTFprocess: error: undefined reference to 'FT_Outline_Translate'
ttflib.o:ttflib.c:function TTFget_first_glyphs: error: undefined reference to 'FT_Get_Glyph_Name'
ttflib.o:ttflib.c:function TTFget_first_glyphs: error: undefined reference to 'FT_Get_Char_Index'
ttflib.o:ttflib.c:function TTFget_first_glyphs: error: undefined reference to 'FT_Get_Glyph_Name'
ttflib.o:ttflib.c:function TTFget_subfont: error: undefined reference to 'FT_Get_Char_Index'
ttflib.o:ttflib.c:function TTFsearch_PS_name: error: undefined reference to 'FT_Get_Glyph_Name'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:754: ttf2pk] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: link: x86_64-pc-linux-gnu-gcc -Wimplicit -Wreturn-type -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -o ttf2tfm errormsg.o filesrch.o ftlib.o ligkern.o newobj.o parse.o subfont.o texenc.o ttfenc.o case.o tfmaux.o ttf2tfm.o ttfaux.o vplaux.o  -lkpathsea -lz -lm
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Init_FreeType'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_New_Face'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Set_Char_Size'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Set_Charmap'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Load_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Load_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Done_Face'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_New_Face'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Get_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Get_Sfnt_Table'
ftlib.o:ftlib.c:function FTopen: error: undefined reference to 'FT_Set_Charmap'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Get_Char_Index'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Load_Glyph'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Outline_Transform'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Outline_Get_BBox'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Get_Glyph_Name'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Load_Glyph'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Get_Kerning'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Outline_Transform'
ttfaux.o:ttfaux.c:function readttf: error: undefined reference to 'FT_Outline_Get_BBox'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:758: ttf2tfm] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/ttf2pk2-2.0_p20170524/work/texlive-20170524-source/texk/ttf2pk2'
make: *** [Makefile:650: all] Error 2
```
Comment 1 James R Larrowe 2018-12-28 18:35:00 UTC
Created attachment 558706 [details]
build.log.xz
Comment 2 James R Larrowe 2018-12-28 18:36:20 UTC
```
$ emerge --info '=app-text/ttf2pk2-2.0_p20170524::gentoo'
Portage 2.3.52 (python 3.7.0-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-8.2.0, glibc-2.28-r4, 4.20.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.20.0-gentoo-x86_64-AMD_FX-8370_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    16327804 total,  10316800 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Fri, 28 Dec 2018 17:00:01 +0000
Head commit of repository gentoo: 802021a945e43c9400779336b0f6d4c0b245531e
sh bash 4.4_p23
ld GNU gold (Gentoo 2.31.1 p5 2.31.1) 1.16
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.14::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.64-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

local
    location: /usr/local/portage
    masters: gentoo

x-crossdev-overlay
    location: /usr/x-crossdev-overlay
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 amr ao berkdb bluetooth boost branding bzip2 cairo caps cdda cdr cli client colord crypt cups custom-cflags cxx dbus dhcp dhcpcd dri drm dts dvd dvdr eds emboss encode evo exif fam filecaps flac fontconfig fortran freetype gdbm gif glamor gnome gnome-keyring gnome-online-accounts gnuefi gnutls gpm graphite gsm gstreamer gtk harfbuzz iconv icu id3tag introspection ipv6 jannson java jit jpeg jpeg2k ladspa lavpack lcms ldap libdrm libkms libnotify libsecret libtirpc lz4 lzma lzo mad mmx mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opencl opengl openmp opus osmesa pam pango pcre pcre32 pdf pgo pie plugins plymouth png policykit postproc ppds proprietary-codecs pulseaudio python qt5 raw readline sasl sdk sdl sdl2 seccomp sndfile spell sse sse2 sse3 ssl ssp startup-notification svg system-ffmpeg system-harfbuzz system-icu system-jpeg system-libvpx system-sqlite systemd tcpd threads tiff tracker truetype twolame udev udisks unicode upower usb vala vorbis wavpack webp widevine wifi wxwidgets x264 xattr xcb xml xv xvid xz zlib zstd" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 sse3 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_7 python3_6 python2_7" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby26 ruby23" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$ emerge -pqv '=app-text/ttf2pk2-2.0_p20170524::gentoo'
[ebuild  N    ] app-text/ttf2pk2-2.0_p20170524 
```
Comment 3 James R Larrowe 2018-12-31 06:00:27 UTC
I found what fixes this issue, but I doubt this would be a good permanent solution:

1. Set `EXTRA_ECONF="--enable-freetype-config"' in /etc/portage/env/freetype-config.conf

2. Set `media-libs/freetype freetype-config.conf' in /etc/portage/package.env/freetype

3. Re-emerge `media-libs/freetype' and re-run world update.
Comment 4 James R Larrowe 2019-01-29 00:56:39 UTC
So... Is anybody looking at this? The issue still persists.
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2019-12-13 10:12:37 UTC
This one no longer in the tree.