Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266276 - app-text/poppler: error while emerging
Summary: app-text/poppler: error while emerging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Interix
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 16:13 UTC by chris.the.ebb
Modified: 2010-02-10 23:31 UTC (History)
2 users (show)

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


Attachments
emerge --info for the successful build (emerge_info,3.13 KB, text/plain)
2009-04-16 09:58 UTC, Göktürk Yüksek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chris.the.ebb 2009-04-15 16:13:44 UTC
checking zlib.h presence... yes
checking for zlib.h... yes
checking for opj_cio_open in -lopenjpeg... no
configure: error: "*** libopenjpeg library not found ***"

!!! Please attach the following file when seeking support:
!!! /opt/gentoo/var/tmp/portage/app-text/poppler-0.10.5/work/poppler-0.10.5/config.log
 * ERROR: app-text/poppler-0.10.5 failed:
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_configure>
 *             environment:3032: <call econf '--disable-static' '--disable-poppler-qt4' '--disable-poppler-glib' '--disable-poppler-qt' '--disable-gtk-test' '--disable-cairo-output' '--enable-xpdf-headers' '--enable-libjpeg' '--enable-libopenjpeg' '--enable-zlib' '--disable-gtk-doc'>
 *               ebuild.sh: 528: 			die "econf failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

>>> Failed to emerge app-text/poppler-0.10.5, Log file:

>>>  '/opt/gentoo/var/tmp/portage/app-text/poppler-0.10.5/temp/build.log'

 * Messages for package app-text/poppler-0.10.5:

 * ERROR: app-text/poppler-0.10.5 failed:
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_configure>
 *             environment:3032: <call econf '--disable-static' '--disable-poppler-qt4' '--disable-poppler-glib' '--disable-poppler-qt' '--disable-gtk-test' '--disable-cairo-output' '--enable-xpdf-headers' '--enable-libjpeg' '--enable-libopenjpeg' '--enable-zlib' '--disable-gtk-doc'>
 *               ebuild.sh: 528: 			die "econf failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

 * Messages for package app-text/poppler-0.10.5:

 * ERROR: app-text/poppler-0.10.5 failed:
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_configure>
 *             environment:3032: <call econf '--disable-static' '--disable-poppler-qt4' '--disable-poppler-glib' '--disable-poppler-qt' '--disable-gtk-test' '--disable-cairo-output' '--enable-xpdf-headers' '--enable-libjpeg' '--enable-libopenjpeg' '--enable-zlib' '--disable-gtk-doc'>
 *               ebuild.sh: 528: 			die "econf failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 9 config files in '//opt/gentoo/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.





As you can see, the errors originates in media-libs/openjpeg: When Im emerging openjpeg, the following errors occur:




i586-pc-interix6.0-gcc -D_ALL_SOURCE  -std=c99 -fPIC -Ilibopenjpeg -c libopenjpeg/tcd.c -o libopenjpeg/tcd.o
libopenjpeg/tcd.c:1: warning: -fPIC ignored for target (all code is position independent)
libopenjpeg/tcd.c: In function 'tcd_decode_tile':
libopenjpeg/tcd.c:1457: warning: implicit declaration of function 'lrintf'
libopenjpeg/tcd.c:1457: warning: incompatible implicit declaration of built-in function 'lrintf'
i586-pc-interix6.0-gcc -D_ALL_SOURCE  -std=c99 -fPIC -Ilibopenjpeg -c libopenjpeg/tgt.c -o libopenjpeg/tgt.o
libopenjpeg/tgt.c:1: warning: -fPIC ignored for target (all code is position independent)
i586-pc-interix6.0-ar r libopenjpeg.a ./libopenjpeg/bio.o ./libopenjpeg/cio.o ./libopenjpeg/dwt.o ./libopenjpeg/event.o ./libopenjpeg/image.o ./libopenjpeg/j2k.o ./libopenjpeg/j2k_lib.o ./libopenjpeg/jp2.o ./libopenjpeg/jpt.o ./libopenjpeg/mct.o ./libopenjpeg/mqc.o ./libopenjpeg/openjpeg.o ./libopenjpeg/pi.o ./libopenjpeg/raw.o ./libopenjpeg/t1.o ./libopenjpeg/t2.o ./libopenjpeg/tcd.o ./libopenjpeg/tgt.o
i586-pc-interix6.0-ar: creating libopenjpeg.a
i586-pc-interix6.0-gcc  -shared -Wl,-soname,libopenjpeg.so.2 -o libopenjpeg.so.2.1.3.0 ./libopenjpeg/bio.o ./libopenjpeg/cio.o ./libopenjpeg/dwt.o ./libopenjpeg/event.o ./libopenjpeg/image.o ./libopenjpeg/j2k.o ./libopenjpeg/j2k_lib.o ./libopenjpeg/jp2.o ./libopenjpeg/jpt.o ./libopenjpeg/mct.o ./libopenjpeg/mqc.o ./libopenjpeg/openjpeg.o ./libopenjpeg/pi.o ./libopenjpeg/raw.o ./libopenjpeg/t1.o ./libopenjpeg/t2.o ./libopenjpeg/tcd.o ./libopenjpeg/tgt.o -lm
>>> Source compiled.
>>> Test phase [not enabled]: media-libs/openjpeg-1.3-r2

>>> Install openjpeg-1.3-r2 into /opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image/opt/gentoo/ category media-libs
make DESTDIR=/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image/ PREFIX=/opt/gentoo/usr TARGOS=Interix INSTALL_LIBDIR=/opt/gentoo/usr/lib install 
install -d '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/lib' '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/include'
install -m 644 libopenjpeg.a '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/lib'
ranlib '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/lib/libopenjpeg.a'
install -m 755 libopenjpeg.so.2.1.3.0 '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/lib'
ln -sf libopenjpeg.so.2.1.3.0 '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/lib/libopenjpeg.so.2'
ln -sf libopenjpeg.so.2 '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/lib/libopenjpeg.so'
install -m 644 libopenjpeg/openjpeg.h '/opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image//opt/gentoo/usr/include'
>>> Completed installing openjpeg-1.3-r2 into /opt/gentoo/var/tmp/portage/media-libs/openjpeg-1.3-r2/image/opt/gentoo/

removing executable bit: opt/gentoo/usr/lib/libopenjpeg.a

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * libopenjpeg/tcd.c:1457: warning: implicit declaration of function 'lrintf'


 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * libopenjpeg/tcd.c:1457: warning: incompatible implicit declaration of built-in function 'lrintf'

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.openjpeg.org/


In the source package there a file opj_includes.h, where is commented, that MS VC doesn't support the function lrintf(). 



/* MSVC does not have lrintf */
#ifdef _MSC_VER
static INLINE long lrintf(float f){
	int i;

	_asm{
		fld f
		fistp i
	};

	return i;
}
#endif

maybe here this bug originates...
Comment 1 Göktürk Yüksek archtester gentoo-dev 2009-04-16 09:58:02 UTC
Created attachment 188547 [details]
emerge --info for the successful build
Comment 2 Göktürk Yüksek archtester gentoo-dev 2009-04-16 09:59:51 UTC
Would you attach your "emerge --info" as well? Because this bug is not reproducible, i am able to compile media-libs/openjpeg-1.3-r2 with no warnings at all and compile app-test/poppler-0.10.5 successfully.
Comment 3 chris.the.ebb 2009-04-16 10:01:42 UTC
Administrator@Chris-Notebook ~ $ emerge --info
Portage 2.2.00.13286-prefix (prefix/windows/interix/6.0/x86, gcc-4.2.4, unavailable, 6.0 x86)
=================================================================
System uname: Interix-6.0-x86-32bit
Timestamp of tree: Thu, 16 Apr 2009 09:56:46 +0000
app-shells/bash:     3.2_p48-r1
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r8
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2-r00.1
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.1-r00.1
sys-devel/libtool:   2.2.6a
ACCEPT_KEYWORDS="~x86-interix"
CBUILD="i586-pc-interix6.0"
CFLAGS=""
CHOST="i586-pc-interix6.0"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo"
CXXFLAGS=""
DISTDIR="/opt/gentoo/usr/portage/distfiles"
EPREFIX="/opt/gentoo"
FEATURES="collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at"
LANG="de_DE.ISO-8859-1"
LDFLAGS=""
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
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="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
SYNC="svn://overlays.gentoo.org/proj/alt/trunk/prefix-overlay"
USE="7zip X bash-completion bzip2 cairo cracklib cscope curl esd exif fontconfig gtk jpeg mad midi mng mp3 ncurses netpbm pdf png prefix python readline ssl svg threads truetype vorbis x86-interix xpm zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="Interix" INPUT_DEVICES="keyboard mouse" KERNEL="Interix" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Markus Duft (RETIRED) gentoo-dev 2009-04-16 11:18:09 UTC
attention: this is a prefix bug (on windows), not gentoo linux.
Comment 5 Quentin Todd 2009-07-10 06:50:49 UTC
emerge openjpg
openjpg should be a dependency of poppler.
Comment 6 Matt 2010-01-24 21:48:31 UTC
for me it nevertheless isn't able to install:

-- Installing: /var/tmp/portage/app-text/poppler-0.12.3-r1/image/usr/include/poppler/JPEG2000Stream.h
CMake Error at cmake_install.cmake:154 (FILE):
  file INSTALL cannot find
  "/var/tmp/portage/app-text/poppler-0.12.3-r1/work/poppler-0.12.3/poppler/goo/JpegWriter.h".


make: *** [install] Error 1
 * ERROR: app-text/poppler-0.12.3-r1 failed:
 *   Make install failed
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_install
 *   environment, line 6554:  Called cmake-utils_src_install
 *   environment, line 4322:  Called _execute_optionaly 'src_install'
 *   environment, line 3797:  Called enable_cmake-utils_src_install
 *   environment, line 4736:  Called die
 * The specific snippet of code:
 *       emake install DESTDIR="${D}" || die "Make install failed";

when emerging it WITHOUT the openjpeg use-flag it installs fine
Comment 7 Ben de Groot (RETIRED) gentoo-dev 2010-02-10 23:31:25 UTC
This should be fixed in 0.12.3-r3. If the problem reappears, feel free to reopen.