Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280167 - virt-viewer-0.2.0 fails to compile because of missing npupp.h
Summary: virt-viewer-0.2.0 fails to compile because of missing npupp.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
: 281513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-03 12:01 UTC by Juergen Rose
Modified: 2010-01-24 20:20 UTC (History)
5 users (show)

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


Attachments
Patch for virt-viewer with >=xulrunner-1.9.1 (virt-viewer-xulrunner.patch,795 bytes, patch)
2009-08-03 14:34 UTC, Steffen Hau
Details | Diff
/usr/local/portage/app-emulation/virt-viewer/virt-viewer-0.2.0-r1.ebuild (virt-viewer-0.2.0-r1.ebuild,969 bytes, text/plain)
2009-08-26 09:18 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2009-08-03 12:01:26 UTC
'emerge -v virt-viewer' fails with:
...
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN=1 -DENABLE_DEBUG=1 -DXP_UNIX -DOJI -I/usr/include/xulrunner-1.9.1.1/unstable -I/usr/include/nspr -I/usr/include/gtk-vnc-1.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGLADE_DIR=\"\" -I../src -march=nocona -O2 -pipe -MT virt_viewer_plugin_la-npshell.lo -MD -MP -MF .deps/virt_viewer_plugin_la-npshell.Tpo -c npshell.c  -fPIC -DPIC -o .libs/virt_viewer_plugin_la-npshell.o
npshell.c:87:19: error: npupp.h: No such file or directory
make[2]: *** [virt_viewer_plugin_la-npshell.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/virt-viewer-0.2.0/work/virt-viewer-0.2.0/plugin'


locate finds the following npupp.h:
root@lynx:/root(12)# locate npupp.h
/home_lynx/rose/Txt/src/Html/PluginSDK30b5/include/npupp.h
/opt/xulrunner/include/npupp.h
/opt/xulrunner/include/plugin/npupp.h
/usr/lib64/seamonkey/include/plugin/npupp.h
/usr/lib64/mozilla-thunderbird/include/plugin/npupp.h
/usr/qt/3/include/npupp.h
/home_lynx/rose/Txt/src/Html/PluginSDK30b5/include/npupp.h
/home_cheetah/rose/Txt/src/Html/PluginSDK30b5/include/npupp.h
/opt/xulrunner/include/npupp.h
/opt/xulrunner/include/plugin/npupp.h
/usr/lib64/seamonkey/include/plugin/npupp.h
/usr/lib64/mozilla-thunderbird/include/plugin/npupp.h
/usr/qt/3/include/npupp.h
root@lynx:/root(13)# 

Reproducible: Always




root@lynx:/root(14)# qlist -Iv xulrunner
net-libs/xulrunner-1.9.1.1-r2
net-libs/xulrunner-bin-1.8.1.19


root@lynx:/root(15)# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 03 Aug 2009 10:00:18 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -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 /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/n4g /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage/layman/suka /usr/local/portage/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dv dvb dvd dvdr dvdread dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fuse galago garmin gd gdal gdbm geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc isdnlog ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde kde4 kerberos kexi keyring kvm ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo lzw mad maildir mailwrapper math matroska mikmod mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pae pam pcre pda pdf perl pipechan plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl server session slang slp smp sndfile snmp soup sox speex spell spl sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs szip t1lib tcl tcpd tex theora threads thunderbird tidy tiff tk tntc truetype unicode usb userlocales utempter v4l2 vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets wxwindows xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                 synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steffen Hau 2009-08-03 14:31:16 UTC
According to this comment http://bugs.gentoo.org/show_bug.cgi?id=268394#c12 the file npupp.h is replaced with npfunctions.h in xulrunner 1.9.1. Perhaps there should be a check in the ebuild, which version of xulrunner is installed and therefor executing a patch which changes npunix.c and npshell.c in the plugins directory.
Comment 2 Steffen Hau 2009-08-03 14:34:23 UTC
Created attachment 200023 [details, diff]
Patch for virt-viewer with >=xulrunner-1.9.1

This patch changes the occurrence of npupp.h to npfunctions.h. With this patch, virt-viewer compiles without any errors on my system.
Comment 3 Steffen Hau 2009-08-03 14:43:50 UTC
After applying the patch, the installation does not work. The content of the package is empty (looked with equery f virt-viewer). A diff of virt-viewer-0.0.3 and virt-viewer-0.2.0 ebuilds show, that the src_install section is missing.
Comment 4 Juergen Rose 2009-08-25 09:36:58 UTC
Any news?
Comment 5 Juergen Rose 2009-08-26 09:09:51 UTC
With the patch of Comment  #2 and the attached virt-viewer-0.2.0-r1.ebuild I could emerge virt-viewer-0.2.0-r1.
Comment 6 Juergen Rose 2009-08-26 09:18:18 UTC
Created attachment 202308 [details]
/usr/local/portage/app-emulation/virt-viewer/virt-viewer-0.2.0-r1.ebuild
Comment 7 Steffen Hau 2009-08-26 14:11:31 UTC
I've removed the nsplugin use flag for virt-viewer as there are some security issue's with it (http://www.linux-archive.org/fedora-linux-management-tools/139791-launch-virt-viewer-new-browser-plugin.html#post185666). Firefox ss also not able to load the plugin because of undefined symbols.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-10 17:26:12 UTC
*** Bug 281513 has been marked as a duplicate of this bug. ***
Comment 9 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-01-24 20:20:45 UTC
juergen: thanks for your contribution. some comments: the EAPI=x line MUST be placed above any 'inherit' call, since the eclasses may depend on it. also, in EAPI=2 the src_prepare phase function is used for patching the source, instead of the src_unpack function.

for more info about eapi's see also fauli's cheatsheet:
http://www.v-li.de/temp/eapi-cheatsheet.pdf

this is fixed in 0.2.0-r2
thanks