Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379527 - app-text/poppler[introspection] fails with forced as-needed - undefined reference to `g_log'
Summary: app-text/poppler[introspection] fails with forced as-needed - undefined refer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
: 384909 423645 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2011-08-17 07:47 UTC by Justin Lecher (RETIRED)
Modified: 2012-07-23 21:37 UTC (History)
7 users (show)

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


Attachments
/var/log/portage/build/app-text/poppler-0.16.7:20110817-074100.log (poppler-0.16.7:20110817-074100.log,257.84 KB, text/plain)
2011-08-17 07:52 UTC, Justin Lecher (RETIRED)
Details
compressed build log (poppler-0.16.7:20110821-151851.log.gz,13.83 KB, application/x-gzip)
2011-08-21 16:40 UTC, Andreas K. Hüttel
Details
build log, poppler-0.18.2 (build.log,95.92 KB, text/plain)
2011-12-15 22:44 UTC, Andreas K. Hüttel
Details
build log (poppler-0.20.2:20120723-210240.log,337.98 KB, text/plain)
2012-07-23 21:08 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-08-17 07:47:01 UTC
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:112: syntax error, unexpected identifier in '        FormWidget *field);' at 'FormWidget'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:113: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAttachment *_poppler_attachment_new (EmbFile *file);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:114: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerMovie *_poppler_movie_new (Movie *movie);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:115: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerMedia *_poppler_media_new (MediaRendition *media);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:116: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAnnot *_poppler_annot_new (Annot *annot);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:117: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAnnot *_poppler_annot_text_new (Annot *annot);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:118: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAnnot *_poppler_annot_free_text_new (Annot *annot);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:119: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAnnot *_poppler_annot_file_attachment_new (Annot *annot);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:120: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAnnot *_poppler_annot_movie_new (Annot *annot);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:121: syntax error, unexpected '*', expecting ')' or ',' in 'PopplerAnnot *_poppler_annot_screen_new (Annot *annot);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:123: syntax error, unexpected '*', expecting ')' or ',' in 'char *_poppler_goo_string_to_utf8(GooString *s);' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:124: syntax error, unexpected '*', expecting ')' or ',' in 'gboolean _poppler_convert_pdf_date_to_gtime (GooString *date,' at '*'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-private.h:125: syntax error, unexpected ')', expecting ',' or ';' in '          time_t *gdate);' at ')'
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -ftracer -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -mtune=corei7 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wimplicit-function-declaration -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7 -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/fofi -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/goo -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/poppler -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/poppler -I/usr/include -I/usr/include/freetype2 -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib -I/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 -I/usr/include/libpng14 -I/usr/include/libdrm -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0/ -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng14 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -c -o /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.o /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.c
g-ir-scanner: link: gcc -o /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16 -O2 -pipe -ftracer -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -mtune=corei7 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wimplicit-function-declaration -L. -Wl,-rpath=. -lpoppler-glib -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.o
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.o: In function `goutput_write':
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.c:70: undefined reference to `g_output_stream_write_all'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.c:72: undefined reference to `g_log'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.c:73: undefined reference to `g_clear_error'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.o: In function `escaped_printf':
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.c:54: undefined reference to `g_markup_vprintf_escaped'
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7_build/glib/tmp-introspectFg8j_Z/Poppler-0.16.c:55: undefined reference to `g_output_stream_write_all'
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-08-17 07:47:35 UTC
Portage 2.2.0_alpha51 (default/linux/amd64/10.0, gcc-4.6.1-asneeded, glibc-2.13-r4, 3.0.1-lh x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.1-lh-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 17 Aug 2011 06:30:01 +0000
ccache version 3.1.5 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r2, 3.1.4-r2, 3.2-r2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.5-r2::science
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.2.4-r1, 4.3.6-r1, 4.4.6-r1, 4.5.3-r1, 4.6.1-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1::last-hope
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise bicatali betagarden dummy science last-hope g-ctan
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ftracer -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -mtune=corei7 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/eselect/ /usr/share/gnupg/qualified.txt /usr/share/nano/ /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -pipe -ftracer -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -mtune=corei7 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wenum-compare"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-t --jobs=12 --load-average=12 --keep-going --autounmask-write --autounmask"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks ebuild-locks fixlafiles fixpackages metadata-transfer multilib-strict news noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -ftracer -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 -mtune=corei7 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g"
GENTOO_MIRRORS=" /mnt/tmpfs/ http://gentoo.j-schmitz.net/mirror/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--no-as-needed"
LINGUAS="en"
MAKEOPTS="-j16 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-z -e -9 -v"
PORTAGE_CONFIGROOT="/"
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="/data/local/sunrise/reviewed /data/local/bicatali /data/local/betagarden /data/local/dummy /data/local/sci /data/local/lh/ebuilds /data/local/g-ctan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit 7zip X acpi additions alsa amd64 arpwarp atlas bash-completion berkdb blas branding bzip2 c++ cairo caps cblas ccache cleartype cli command-args consolekit corefonts cracklib crypt cups cupsddk custom-optimization cxx dbus dri dts exif fbcondecor fortran gdbm gif glib glibc-omitfp gmp gnome gnome-keyring gpm graphics gstreamer gtk hddtemp iconv icu ios ipod iproute2 iptables ipv6 ipython javascript jpeg jpeg2k kqemu lapack largefile lcms ldap libnotify libsexy lm_sensors lzma mailtrain md5sum mmx mmxext mng modules mp3 mudflap multilib multiuser nagios-dns nagios-ntp nagios-ping nagios-ssh nano-syntax ncurses network-cron nis nls nptl nptlonly nsplugin objc objc++ opengl openmp openntpd pam pcre pdf perl png policykit pppd pymol python qt-static qt3support readline rrdcgi rrdtool science sensord session smp sqlite sqlite3 sse sse2 sse3 sse4 sse4a sse5 ssl startup-notification svg sysfs system-sqlite tcpd threads tiff truetype type1 udev unicode vaapi vdpau x264 xcb xcomposite xinerama xorg xulrunner zlib" ALSA_CARDS="hda-intel" 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 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="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-text/poppler-0.16.7 was built with the following:
USE="cairo cxx jpeg jpeg2k lcms (multilib) png qt4 utils xpdf-headers -cjk -curl -debug -doc -exceptions -introspection"
CFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wdisabled-optimization -Wimplicit-function-declaration"
CXXFLAGS="-O2 -pipe -march=corei7 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=corei7 -frecord-gcc-switches -g -Wdisabled-optimization -Wenum-compare"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2011-08-17 07:52:02 UTC
Created attachment 283641 [details]
/var/log/portage/build/app-text/poppler-0.16.7:20110817-074100.log

build.log
Comment 3 Maciej Mrozowski gentoo-dev 2011-08-17 17:43:20 UTC
I'm unable to reproduce it on stable (*with* introspection which you actually have enabled according to build log and contrary to your emerge --info output)

Even when I'm using stable arch, my deps seem to be the same as yours:
dev-libs/gobject-introspection-0.10.8:0
dev-libs/glib-2.28.8:2

Could you try with USE="-introspection" just in any case?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-08-17 23:23:43 UTC
I am using forced as-needed. switching back to clean gcc it linkes fine with USE=introspection.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-08-21 16:40:29 UTC
Created attachment 284127 [details]
compressed build log

Confirmed with forced "--as-needed --no-add-needed"
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2011-09-08 08:43:40 UTC
interestingly the usage of gold fixes this problem.
Comment 7 Maciej Mrozowski gentoo-dev 2011-09-29 21:03:53 UTC
*** Bug 384909 has been marked as a duplicate of this bug. ***
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2011-12-15 22:44:55 UTC
Created attachment 295975 [details]
build log, poppler-0.18.2

For the record, the problem still exists with 0.18.2
Comment 9 Rafał Mużyło 2011-12-24 07:04:43 UTC
(In reply to comment #8)
> Created attachment 295975 [details]
> build log, poppler-0.18.2
> 
> For the record, the problem still exists with 0.18.2

For the record, the log (initial one, the later one is not verbose enough) suggests it's a matter of order.
The thing that needs to be tested is whether it's a shortcoming of g-ir-scanner or small adjustments to cmake/modules/GObjectIntrospectionMacros.cmake would help.

Something like moving ${_gir_libraries} after ${${_gir_name}_FILES} in add_custom_command for INTROSPECTION_SCANNER.

Though Makefile.introspection from gobject-introspection looks similar, so the outlook is not good.

Especially given http://git.gnome.org/browse/gobject-introspection/commit/?id=169b6680c0f765ba8a0045a29f2fcf41ea81e80a.
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2012-07-20 21:56:33 UTC
*** Bug 423645 has been marked as a duplicate of this bug. ***
Comment 11 Michael Palimaka (kensington) gentoo-dev 2012-07-23 15:14:55 UTC
This seems fixed in 0.20.2, can anybody else confirm?
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2012-07-23 15:41:50 UTC
seems to work here.
Comment 13 Andreas K. Hüttel archtester gentoo-dev 2012-07-23 21:08:52 UTC
Created attachment 319028 [details]
build log

I dont think this is fully fixed. Here's a build log (with forced as-needed no-add-needed gcc471). 

One oddity is the occurrence of "0.18" in the introspection part. ?:|

jlec, kensington- could you please post a successful build log here? I'd like to check what is different.
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2012-07-23 21:37:57 UTC
OK this seems to be actually a bug in gobject-introspection. The problem goes away if you update that to 1.32.1. Dependency raised.