Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 302599

Summary: gnome-extra/yelp-2.26.0 fails with xulrunner 1.9.2
Product: Gentoo Linux Reporter: Phillip Merensky <gentoo>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Environment of emerge
Cannot find nspr include files
Patch for xulrunner-1.9.2-fix-pkgconfig-file.patch to fix this issue

Description Phillip Merensky 2010-01-28 10:27:23 UTC
With xulrunner 1.9.2 installed gnome-extra/yelp-2.26.0 emerge fails. Yelp-2.28.1-r1 compiles correctly.

Reproducible: Always

Steps to Reproduce:
1. Install Xulrunner 1.9.2
2. emerge gnome-extra/yelp-2.26.0
3.

Actual Results:  
Compilation failure

Expected Results:  
Correct emerge 

~ # emerge --info =gnome-extra/yelp-2.26.0
Portage 2.2_rc61 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================                                       
                        System Settings                                                                 
=================================================================                                       
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 28 Jan 2010 01:45:01 +0000                                                      
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                               
ccache version 2.4 [enabled]                                                                            
app-shells/bash:     4.0_p35                                                                            
dev-java/java-config: 2.1.9-r2                                                                          
dev-lang/python:     2.6.4, 3.1.1-r1                                                                    
dev-util/ccache:     2.4-r7                                                                             
dev-util/cmake:      2.6.4-r3                                                                           
sys-apps/baselayout: 2.0.1                                                                              
sys-apps/openrc:     0.6.0-r1                                                                           
sys-apps/sandbox:    2.2                                                                                
sys-devel/autoconf:  2.13, 2.63-r1                                                                      
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                               
sys-devel/binutils:  2.18-r3                                                                            
sys-devel/gcc-config: 1.4.1                                                                             
sys-devel/libtool:   9999                                                                               
virtual/os-headers:  2.6.30-r1                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                 
ACCEPT_LICENSE="* -@EULA"                                                                               
CBUILD="x86_64-pc-linux-gnu"                                                                            
CFLAGS="-march=nocona -O2 -pipe"                                                                        
CHOST="x86_64-pc-linux-gnu"                                                                             
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                              
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                    
CXXFLAGS="-march=nocona -O2 -pipe"                                                                                                                                                    
DISTDIR="/usr/portage/distfiles"                                                                                                                                                      
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                  
GENTOO_MIRRORS="http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.muntinternet.net/pub/gentoo/"                                                                                                                                                      
LANG="de_DE.UTF-8"                                                                                                                                                                    
LDFLAGS="-Wl,-O1"                                                                                                                                                                     
LINGUAS="de"                                                                                                                                                                          
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/gfxboot_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 7zip X a52 aac aalib accessibility acl acpi aim alsa amarok amd amd64 aoss apache2 asf autoipd automount autoreplace avahi avantgo bash-completion berkdb binary binfilter bl blender-game bluetooth bootsplash branding bzip2 cairo calendar ccache cdaudio cdda cddb cdparanoia cdr cdrom cgi chm cisco cleartype cli connectionstatus consolekit contactnotes cpudetection cracklib crypt css cups cvs cxx dbcp dbus dga dhcp divx dmi dom4j dri dts dv dvd dvdr eap-sim eap-tls embedded emboss encode esx evo excel exif fam fastcgi fat fbcon fbcondecor fbsplash ffmpeg firefox firefox3 flac flash flv fontconfig fortran ftp fts3 gcj gd gdbm geldkarte gif gimp gimpprint glib glitz gmedia gnokii gnutls gphoto2 gpm gs gstreamer gtk gvim gzip hal hash hbci hdaps hfs http ibmacpi ical iconv icq image imagemagick imap inifile innodb irc irda jabber java java5 java6 javascript jboss jcs jfs john jpeg jpeg2k jpgraph kcal kde kdm kipi kpathsea kqemu kvm lame laptop latex latex3 lcms libcaca libnotify libsamplerate lirc log4j logitech-mouse logrotate logwatch lucene lzma lzo mad mail maildir mcal mdnsresponder-compat mikmod mime mjpeg mmx mmxext mng modplug modules moonlight mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer msn msnextras mtp mudflap multilib mysql mysqli ncurses networkmanager nfs njb nls nptl nptlonly nsplugin nss ntfs ntlm ocaml ofx ogg opengl openmp openssl oscar otr pam pcre pda pdf perl phonon php player plotutils png postscript povray ppds pppd pptp print python qemu qt3support qt4 quicktime rar rdesktop readline reflection reiser4 reiserfs resolvconf samba scanner sdl semantic-desktop sensord session sharedmem sms spell spl sql sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd templates texteffect tga theora threads threadsafe thumbnail thunar tidy tiff tk tokenizer truetype unicode usb utempter v4l v4l2 vcd vde vim vim-pager vim-syntax visualization vnc vorbis webkit wifi wma wmp wps x264 x86emu xanim xcb xcomposite xfs xine xinerama xml xorg xrandr xscreensaver xulrunner xv xvid yv12 zip 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa vga fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

~ # emerge -pqv =gnome-extra/yelp-2.26.0
[ebuild     UD] gnome-extra/yelp-2.26.0 [2.28.1-r1] USE="lzma -beagle -debug"
Comment 1 Phillip Merensky 2010-01-28 10:28:41 UTC
Created attachment 217707 [details]
build.log
Comment 2 Phillip Merensky 2010-01-28 10:29:07 UTC
Created attachment 217708 [details]
Environment of emerge
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-28 11:28:08 UTC
most likely duplicate of bug #295016

*** This bug has been marked as a duplicate of bug 295016 ***
Comment 4 Guo-Fu Tseng 2010-01-31 10:18:14 UTC
Created attachment 217979 [details]
Cannot find nspr include files
Comment 5 Guo-Fu Tseng 2010-01-31 10:24:56 UTC
I've got this error too. (Uploaded my build.log)

After a quick survey, it's seems that the
'pkg-config --cflags libxul-embedding' missing the
'-I/usr/include/nspr' argument.

It can be compiled with manually adding following line:
"Requires: nspr >= 4.8.0"
into /usr/lib[64]/pkgconfig/libxul-embedding.pc after "Version: 1.9.2".

PS: I got this error with the latest portage sync right now, it shouldn't
    be RESOLVED yet?

Here is the partial build error log:
========================================================================
In file included from /usr/include/xulrunner-1.9.2/nsXPCOMStrings.h:42,
                 from /usr/include/xulrunner-1.9.2/nsStringAPI.h:53,
                 from Yelper.cpp:28:
/usr/include/xulrunner-1.9.2/nscore.h:51:21: error: prtypes.h: No such file or directory
========================================================================

Yelper.cpp have no idea that nsStringAPI.h of the
xulrunner-1.9.2 library would finally need the nspr
include files.

Although I'm not sure if it is the correct fix,
but it looks to me that this bug should be fix by
modifying xulrunner-1.9.2 package?
Comment 6 Guo-Fu Tseng 2010-01-31 15:24:44 UTC
Created attachment 217991 [details, diff]
Patch for xulrunner-1.9.2-fix-pkgconfig-file.patch to fix this issue
Comment 7 Guo-Fu Tseng 2010-01-31 15:38:41 UTC
Comment on attachment 217991 [details, diff]
Patch for xulrunner-1.9.2-fix-pkgconfig-file.patch to fix this issue

Adding following lines to xulrunner-1.9.2-fix-pkgconfig-file.patch:

--- mozilla-1.9.2/xulrunner/installer/libxul-embedding.pc.in-orig       2010-01-31 23:06:38.000000000 +0800
+++ mozilla-1.9.2/xulrunner/installer/libxul-embedding.pc.in    2010-01-31 23:07:00.000000000 +0800
@@ -6,5 +6,6 @@
 Name: libxul-embedding
 Description: Static library for version-independent embedding of the Mozilla runtime
 Version: %MOZILLA_VERSION%
+Requires: nspr >= 4.8.0
 Libs: -L${sdkdir}/lib -lxpcomglue
 Cflags: -DXPCOM_GLUE -I${includedir} %WCHAR_CFLAGS%