Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96301 - emerge xpdf failure without truetype useflag
Summary: emerge xpdf failure without truetype useflag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
: 96303 102100 102223 102238 102278 102773 106352 106951 107139 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-16 12:10 UTC by Stanley
Modified: 2005-09-25 00:21 UTC (History)
11 users (show)

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


Attachments
all message from emerging xpdf (error-xpdf.txt,15.67 KB, text/plain)
2005-06-16 12:38 UTC, Stanley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanley 2005-06-16 12:10:21 UTC
#emerge -pv cups
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild  N    ] app-text/xpdf-3.00-r9  -motif -nodrm -truetype 0 kB
[ebuild     U ] net-print/cups-1.1.23-r4 [1.1.23-r1] -cjk* -debug -gnutls -
nls* -pam* -samba* -slp -ssl* 8,501 kB

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
emerging xpdf failed

Expected Results:  
should not force installing xpdf, since I cannot get it emerged without X

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r0, 
2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Pentium II (Klamath)
Gentoo Base System version 1.6.12
dev-lang/python:     2.2.3-r1, 2.3.5, 2.4.1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.4.3-r4, 1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share
/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail
/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.zentek-international.com/mirrors/gentoo/ 
http://mirror.gentoo.gr.jp"
LANG="zh_HK.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl acpi apache2 berkdb bitmap-fonts cjk crypt ctype fam fbcon 
foomaticdb ftp gdbm gpm iconv imap ithreads java maildir mime mmx mppe-mppc 
mysql ncurses nls nptl nptlonly odbc pam perl php posix python readline samba 
sdl session sockets spl sse ssl tcpd threads type1-fonts unicode usb vchroot 
xml2 zh_HK zh_TW zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 SpanKY gentoo-dev 2005-06-16 12:14:00 UTC
xpdf provides a bunch of console utilites, not just the X viewer
Comment 2 Stanley 2005-06-16 12:23:05 UTC
oh, that's my misunderstanding then, but I cannot get xpdf compiled:


make[1]: Entering directory `/var/tmp/portage/xpdf-3.00-r9/work/xpdf-
3.00/splash'
i686-pc-linux-gnu-g++ -O2 -march=i686 -funroll-loops -pipe -DHAVE_CONFIG_H -
I.. -I./../goo -I./../fofi -I.   -c Splash.cc
i686-pc-linux-gnu-g++ -O2 -march=i686 -funroll-loops -pipe -DHAVE_CONFIG_H -
I.. -I./../goo -I./../fofi -I.   -c SplashBitmap.cc
i686-pc-linux-gnu-g++ -O2 -march=i686 -funroll-loops -pipe -DHAVE_CONFIG_H -
I.. -I./../goo -I./../fofi -I.   -c SplashClip.cc
i686-pc-linux-gnu-g++ -O2 -march=i686 -funroll-loops -pipe -DHAVE_CONFIG_H -
I.. -I./../goo -I./../fofi -I.   -c SplashFTFont.cc
SplashFTFont.cc:15:30: freetype/ftoutln.h: No such file or directory
SplashFTFont.cc:16:69: freetype/internal/ftobjs.h: No such file or directory
In file included from SplashFTFont.cc:21:
SplashFTFontEngine.h:48: error: type specifier omitted for parameter `
   FT_Library'
SplashFTFontEngine.h:48: error: parse error before `)' token
...........


make[1]: *** [SplashFTFont.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/xpdf-3.00-r9/work/xpdf-
3.00/splash'
make: *** [all] Error 2

!!! ERROR: app-text/xpdf-3.00-r9 failed.
!!! Function src_compile, Line 79, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 3 Stanley 2005-06-16 12:38:45 UTC
Created attachment 61346 [details]
all message from emerging xpdf
Comment 4 Stanley 2005-06-16 12:41:46 UTC
*** Bug 96303 has been marked as a duplicate of this bug. ***
Comment 5 Andrew D. Keyser (aka Legoguy) 2005-06-27 23:09:55 UTC
I get the same errors here too.
Comment 6 Andrew D. Keyser (aka Legoguy) 2005-06-27 23:15:13 UTC
Just figured out that this is caused only when truetype is not in the USE flags
Comment 7 Jason Waldhelm 2005-06-30 07:55:56 UTC
i understand that xpdf provides console utilities - however xpdf wants to pull in xorg-x11 (or whatever X 
the virtual is satisfied by).  on a server, this isn't what i want, hence i have USE="-X";  perhaps xpdf needs 
a "X" USE flag?
Comment 8 Jason Waldhelm 2005-06-30 07:58:45 UTC
(In reply to comment #7)
> i understand that xpdf provides console utilities - however xpdf wants to pull in xorg-x11 (or whatever 
X 
> the virtual is satisfied by).  on a server, this isn't what i want, hence i have USE="-X";  perhaps xpdf 
needs 
> a "X" USE flag?

i should note xpdf is a dependancy of cups which i need for samba in my case.  i am not having the xpdf 
compile errors above.
Comment 9 Anthony Gorecki 2005-07-09 22:29:07 UTC
I receive the same errors without the truetype USE flag enabled. The program
compiles successfully with that flag turned on.
Comment 10 Georg Sorst 2005-07-17 05:00:54 UTC
I had the same problem as Stanley, #2. However, I had both Freetype 1.3.1-r4 and
Freetype 2.something installed, so xpdf would pick up /usr/include/freetype
looking for headers while the right headers were located under
/usr/include/freetype2. Unmerging Freetype 1.3 and cleaning up /var/tmp/portage
(the latter probably not neccessary) solved the problem.
Comment 11 Tim Souder 2005-08-02 09:13:35 UTC
On Gentoo 2004.3/amd64/kernel 2.6.11 r11, I had the same exact problem.

As per Stanley's comment, I did an emerge --unmerge
media-libs/freetype-1.3.1-r4, and then attempted to recompile xpdf-3.00-r9. It
compiled successfully.

emerge info:
Portage 2.0.51.22-r2 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r1,
2.6.11-gentoo-r11Icarus x86_64)
=================================================================
System uname: 2.6.11-gentoo-r11Icarus x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.6
dev-lang/python:     2.3.4, 2.4.1-r1
sys-apps/sandbox:    1.2.1-r3
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -mtune=athlon64 -march=athlon64 -pipe -ffast-math
-fomit-frame-pointer -mfpmath=sse -funroll-loops -ftracer -fpeel-loops
-funit-at-a-time -funswitch-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com
http://mirror.usu.edu/mirrors/gentoo http://gentoo.oregonstate.edu
http://gentoo.mirrors.pair.com
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts cdr crypt cups eds encode esd fam
foomaticdb fortran freetds gif gnome gpm gstreamer gtk gtk2 imagemagick imlib
ipv6 java jpeg kde lzw lzw-tiff mad motif mozilla mp3 mpeg multilib ncurses nls
ogg opengl pam pdflib perl png python qt quicktime readline samba sdl spell ssl
tcpd tiff truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms
xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 03:47:44 UTC
*** Bug 102100 has been marked as a duplicate of this bug. ***
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2005-08-12 06:10:37 UTC
*** Bug 102223 has been marked as a duplicate of this bug. ***
Comment 14 Luis Medinas (RETIRED) gentoo-dev 2005-08-12 07:38:37 UTC
*** Bug 102238 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-08-12 12:36:45 UTC
*** Bug 102278 has been marked as a duplicate of this bug. ***
Comment 16 Peter `MathFox' Roozemaal 2005-08-13 08:41:36 UTC
What's the essential difference between xpdf-3.00-r8.ebuild and xpdf-3.00-r10.ebuild

r8:
  src_compile() {
        econf \
!               --enable-freetype2 \
!               --with-freetype2-includes=/usr/include/freetype2 || die
   
        emake || die
  }

r10:
  src_compile() {
+       use truetype \
+               && myconf="--enable-freetype2
--with-freetype2-includes=/usr/include/freetype2" \
+               || myconf="--disable-freetype2"
+
        econf \
!               ${myconf} \
!               --enable-opi || die
   
        emake || die
  }

Unfortunately, the correct way to disable freetype is: --without-freetype2-library

This gives the warning:

configure: WARNING: Couldn't find X / Motif -- you will be able to compile
        pdftops, pdftotext, pdfinfo, pdffonts, pdftoppm, and pdfimages,
        but not xpdf

which is not exactly what I want, but some others may prefer the package this way.
Comment 17 Peter `MathFox' Roozemaal 2005-08-13 08:54:45 UTC
Wouldn't it be better to split xpdf in two packages, one for the graphical xpdf
viewer and another for the commandline pdf tools for cups?
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-08-16 23:02:48 UTC
*** Bug 102773 has been marked as a duplicate of this bug. ***
Comment 19 Peter `MathFox' Roozemaal 2005-08-18 02:39:58 UTC
Another suggestion for a solution: Make the decision to build the xpdf program
dependent on the X use flag. (People without X don't want it, but may need the
command line tools.) Add the needed conditional dependencies (truetype is needed
to build xpdf).
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-19 06:28:19 UTC
The problem seems to be related to the freetype-2.1.7 patch that gets  
installed just with use truetype enabled.  
The truetype support seems to be auto-recognized, so --disable-freetype2 
doesn't work as expected when freetype is present, but not applying the patch 
makes the compilation fail because the interface don't get updated. 
 
The complete solution is to make configure.ac check for freetype just if 
requested, a workaround to get it compile anyway is to apply the patch 
unconditionally. 
 
Comment 21 Peter `MathFox' Roozemaal 2005-08-20 15:37:12 UTC
(In reply to comment #20)
> The problem seems to be related to the freetype-2.1.7 patch that gets  
> installed just with use truetype enabled.  
> The truetype support seems to be auto-recognized, so --disable-freetype2 
> doesn't work as expected when freetype is present, but not applying the patch 
> makes the compilation fail because the interface don't get updated. 

--without-freetype2-library disables freetype (and xpdf.)
  
> The complete solution is to make configure.ac check for freetype just if 
> requested, a workaround to get it compile anyway is to apply the patch 
> unconditionally. 
 
Let's think first what we want to achieve. Some people want the xpdf viewer and
don't care about the command line tools. Some people need the command line tools
for cups. Yet others want all.
I guess that anyone who indicates interest in X clients (by setting the X flag)
wants the xpdf viewer when they emerge xpdf. (At least, I expect an xpdf viewer
to emerge) If we need freetype for xpdf, then freetype is a dependency.
(conditional on X)
My suggestion to split xpdf in two binary packages is based on the observation
that xpdf has two, fundamentaly different uses. Providing command line pdf
manipulation and conversion tools or providing an interactive pdf viewer.
Comment 22 André Brioso 2005-09-04 07:26:15 UTC
Same problem here, xpdf only compile with the truetype use flag on.
Comment 23 Luis Medinas (RETIRED) gentoo-dev 2005-09-04 21:32:15 UTC
Fixed in xpdf-3.01 
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2005-09-18 04:35:57 UTC
*** Bug 106352 has been marked as a duplicate of this bug. ***
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 21:56:04 UTC
*** Bug 106951 has been marked as a duplicate of this bug. ***
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2005-09-25 00:21:35 UTC
*** Bug 107139 has been marked as a duplicate of this bug. ***