Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231828 - app-text/dvipng-1.11 - fontmap.c:(.text+0xc65): undefined reference to `FindSubFont'
Summary: app-text/dvipng-1.11 - fontmap.c:(.text+0xc65): undefined reference to `FindS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-15 02:43 UTC by Dodo
Modified: 2008-07-15 15:58 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 Dodo 2008-07-15 02:43:44 UTC
dvipng compile crashes with an "undefined reference" error. 

Reproducible: Always

Steps to Reproduce:
1. emerge dvipng


Actual Results:  
$ sudo emerge -v dvipng
WARNING: repository at /usr/local/portage is missing a repo_name entry

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-text/dvipng-1.11  USE="truetype -test%" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB

>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-text/dvipng-1.11 to /
 * dvipng-1.11.tar.gz RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking dvipng-1.11.tar.gz ;-) ...                                    [ ok ]
>>> Unpacking source...
>>> Unpacking dvipng-1.11.tar.gz to /var/tmp/portage/app-text/dvipng-1.11/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-text/dvipng-1.11/work/dvipng-1.11 ...
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-freetype --build=i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gs... gs
checking whether gs has the pngalpha device... yes
checking for pow in -lm... yes
checking for deflate in -lz... yes
checking for basename in -lgen... no
checking for png_read_image in -lpng... yes
checking for gdImageCreate in -lgd... yes
checking for kpse_set_progname in -lkpathsea... yes
checking for T1_InitLib in -lt1... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking kpathsea/kpathsea.h usability... yes
checking kpathsea/kpathsea.h presence... yes
checking for kpathsea/kpathsea.h... yes
checking t1lib.h usability... yes
checking t1lib.h presence... yes
checking for t1lib.h... yes
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType - version >= 6.1.0... no
*** The FreeType test program failed to run.  If your system uses
*** shared libraries and they are installed outside the normal
*** system library path, make sure the variable LD_LIBRARY_PATH
*** (or whatever is appropiate for your system) is correctly set.
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking for kpse_enc_format... yes
checking for working alloca.h... yes
checking for alloca... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for dup2... yes
checking for memset... yes
checking for munmap... yes
checking for pow... yes
checking for putenv... yes
checking for strchr... yes
checking for strrchr... yes
checking for strtol... yes
checking for strstr... yes
checking for gdImageCreateTrueColor... yes
checking for gdImageCreateFromJpeg... yes
checking for gdImagePngEx... yes
checking for gdImageCreateFromPngPtr... yes
checking for gdImageGif... yes
checking for FT_Library_Version... yes
checking for makeinfo... /usr/bin/makeinfo
checking for @acronym{}... yes
checking for @env{}... yes
checking for @option{}... yes
checking for install-info... /usr/bin/install-info
checking for texmf.cnf... /usr/share/texmf/web2c/texmf.cnf
checking for kpsewhich... /usr/bin/kpsewhich
checking for psfonts.map... not found from outside the texmf tree
checking for $SELFAUTO in texmf.cnf... yes
***************************************************************
texmf.cnf is using $SELFAUTO... variables. If you are going to
install dvipng outside the texmf tree, you may need to use
--enable-selfauto-set. To find out, do 'make ; make test'. If the test
is unsuccessful, add the mentioned switch and rebuild.
***************************************************************

** Configuration summary for dvipng 1.11:

   The -d (debug) switch is enabled:        yes
   Your gd is new enough (>=2.0) to enable
     the --truecolor switch, full alpha
     transparency, proper rescaling of
     included bitmaps, and jpeg inclusion:  yes
   Your gd has jpeg inclusion enabled:      yes
   Your gd is new enough (>=2.0.12) to
     enable transparent backgrounds for EPS
     inclusion and the -z (compression)
     switch:                                yes
   Your gd is new enough (>=2.0.21) to
     allow image creation from memory       yes
   Your gd is new enough (>=2.0.28) to
     enable gif inclusion and output
     (dvigif):                              yes
   FreeType font rendering available:       no
   Support for subfonts (CJK-LaTeX):        no
   T1lib font rendering available:          yes

configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir setting
config.status: creating config.h
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o dvipng.o dvipng.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o color.o color.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o draw.o draw.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o dvi.o dvi.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o font.o font.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o misc.o misc.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o pk.o pk.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o set.o set.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o special.o special.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o papersiz.o papersiz.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o ppagelist.o ppagelist.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o vf.o vf.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o t1.o t1.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o enc.o enc.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o fontmap.o fontmap.c
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I.  -c -o tfm.o tfm.c
fontmap.c: In function ‘FindPSFontMap’:
fontmap.c:326: warning: implicit declaration of function ‘FindSubFont’
fontmap.c:326: warning: assignment makes pointer from integer without a cast
i686-pc-linux-gnu-gcc -Wl,-O1 dvipng.o color.o draw.o dvi.o font.o misc.o pk.o set.o special.o papersiz.o ppagelist.o vf.o t1.o enc.o fontmap.o tfm.o -o dvipng -lt1 -lkpathsea -lgd -lpng -lz -lm  
fontmap.o: In function `FindPSFontMap':
fontmap.c:(.text+0xc65): undefined reference to `FindSubFont'
collect2: ld returned 1 exit status
make: *** [dvipng] Error 1
 * 
 * ERROR: app-text/dvipng-1.11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2039:  Called die
 * The specific snippet of code:
 *       emake || die "Compile failed"
 *  The die message:
 *   Compile failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-text/dvipng-1.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/dvipng-1.11/temp/environment'.
 * 

 * Messages for package app-text/dvipng-1.11:

 * 
 * ERROR: app-text/dvipng-1.11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2039:  Called die
 * The specific snippet of code:
 *       emake || die "Compile failed"
 *  The die message:
 *   Compile failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-text/dvipng-1.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/dvipng-1.11/temp/environment'.
 * 


Expected Results:  
dvipng compiles correctly

$ emerge --info
WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc1 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r4-i686-AMD_Athlon-tm-_XP_Processor_3000+-with-glibc2.0
Timestamp of tree: Tue, 15 Jul 2008 01:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r8, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://gentoo.llarian.net/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.chem.wisc.edu/gentoo"
LANG="en_CA.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa bash-completion berkdb blas bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus divx4linux dlloader dri dts dvd dvdr dvdread eds emboss encode evo fam ffmpeg fftw firefox flac foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml hal iconv ipv6 isdnlog java jikes jpeg kerberos lapack laptop ldap libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcmcia pcre pdf pdflib perl plotutils png pnp ppds pppd python qt3 qt3support qt4 quicktime readline real reflection sdl session spell spl sse sse2 ssl startup-notification svg tcpd tetex theora threads tiff truetype unicode usb vorbis win32codecs x86 xml xorg xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="cannon" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2008-07-15 07:39:18 UTC
Which version of Freetype do you have installed?  And did you run revdep-rebuild or just a remerge of Freetype recently?
Comment 2 Dodo 2008-07-15 15:58:59 UTC
Thanks for the hint. I did a remerge of freetype followed by dvipng, which now compiles correctly. Strangely though, freetype does not appear in the output of revdep-rebuild. Thanks again for the quick response.

Cheers.

(In reply to comment #1)
> Which version of Freetype do you have installed?  And did you run
> revdep-rebuild or just a remerge of Freetype recently?
>