Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206548 - gnustep-libs/popplerkit-0.2 fails to build
Summary: gnustep-libs/popplerkit-0.2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-18 17:09 UTC by Evil Compile Person
Modified: 2008-05-26 14:10 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 Evil Compile Person 2008-01-18 17:09:49 UTC
Making all for subproject bindings...
cd .; \
        /usr/GNUstep/System/Library/Makefiles/mkinstalldirs ./obj
g++ poppler.cc -c \
              -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -DGSDIAGNOSE -Wno-import -O2 -pipe -g -I./MissingKit -I/var/tmp/portage/gnustep-libs/popplerkit-0.2/work/Etoile-0.2/Build -I/var/tmp/portage/gnustep-libs/popplerkit-0.2/work/Etoile-0.2/Frameworks/PopplerKit -I/var/tmp/portage/gnustep-libs/popplerkit-0.2/work/Etoile-0.2/Frameworks/PopplerKit/Headers -I./../derived_src -I. -I/var/tmp/portage/gnustep-libs/popplerkit-0.2/temp/GNUstep/Library/Headers -I/usr/GNUstep/Local/Library/Headers -I/usr/GNUstep/System/Library/Headers \
               -o obj/poppler.o
poppler.cc:22:26: warning: GlobalParams.h: No such file or directory
poppler.cc: In function 'int poppler_init(const unsigned char*, const unsigned char**, unsigned int)':
poppler.cc:89: error: 'globalParams' was not declared in this scope
poppler.cc:129: error: expected type-specifier before 'GlobalParams'
poppler.cc:129: error: expected `;' before 'GlobalParams'
make[2]: *** [obj/poppler.o] Error 1
make[1]: *** [bindings.all.subproject.variables] Error 2
make[1]: Leaving directory `/var/tmp/portage/gnustep-libs/popplerkit-0.2/work/Etoile-0.2/Frameworks/PopplerKit/bindings'
make: *** [PopplerKit.all.framework.variables] Error 2
 *
 * ERROR: gnustep-libs/popplerkit-0.2 failed.

Portage 2.1.4 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Tue, 15 Jan 2008 06:00:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="X acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" 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" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 moesasji 2008-01-19 16:49:15 UTC
The CFlags specified in the emerge --info do not specify a march or mtune option. 

It seems that in that case GCC builds for i386, while Glibc depends require i486 or better. See for example this bugreport on LFS: http://wiki.linuxfromscratch.org/lfs/ticket/2018

I'm not sure that this is the source of the problem. But my suggestion would be to set the correct march-option for your system and see if that resolves it.
Comment 2 Fabian Groffen gentoo-dev 2008-01-19 21:33:24 UTC
on Gentoo glibc is built with -march reflecting the very arch by default.

The problem at hand here is IMO:

  poppler.cc:22:26: warning: GlobalParams.h: No such file or directory

It just can't find an include file.  Everything after this warning can be ignored as it is a typical result of missing definitions.

Question is: what provides this file, and if it is popplerkit itself, why is the its path not in the include path.
Comment 3 moesasji 2008-01-19 21:48:56 UTC
@Fabian: The file GlobalParams.h seems to be provided by the popplerkit itself.

However I noticed that "Evile Compile Person" submitted also http://bugs.gentoo.org/show_bug.cgi?id=206546 in which also an include file is missing that belongs to that specific package. That's why I was thinking in the direction of a problem with his/her system. 
Comment 4 Evil Compile Person 2008-01-19 23:07:35 UTC
tar xvjpf /usr/portage/distfiles/etoile-0.2.tar.gz

find | grep GlobalParams

--> no files returned, it's not popplerkit providing it.

I'd guess it's a weird implicit dep hitting there, so you might not be able to reproduce until you run emerge --depclean ;)
Comment 5 moesasji 2008-01-19 23:58:25 UTC
Sorry I meant to say that GlobalParam belongs to plopper see http://webcvs.freedesktop.org/poppler/poppler/poppler/GlobalParams.h?view=log

Note that the same error-message can be found on the etoile mailing list, see http://www.mail-archive.com/etoile-track@gna.org/msg00907.html

There the problem seems to be that the config.make of popplerkit contains the wrong version of poppler. 

> > Now, about PopplerKit, config.make says "POPPLER_0_5=YES"
>
>   So POPPLER_0_5 is wrong. It whould be POPPLER_0_6.


Comment 6 Bernard Cafarelli gentoo-dev 2008-01-20 16:35:50 UTC
popplerkit in portage has a patch (from Etoile SVN) to support POPPLER_0_6.

With poppler 0.6.2, I get POPPLER_0_6=YES in config.make, and poppler does install /usr/include/poppler/GlobalParams.h. All poppler ebuilds currently in ortage use "--enable-xpdf-headers", so they should all have this file.

I'll test with stable poppler (0.5 and 0.6), which was installed for this test?
Comment 7 Bernard Cafarelli gentoo-dev 2008-05-26 14:10:58 UTC
OK, I've tested both current stable popler 0.5 (0.5.4-r2) and 0.6 (0.6.3), both install GlobalParams.h, so looks like this one is fixed now. Reopen if it's not the case ;)