Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256610 - dev-util/astyle-1.22: error: jni.h: No such file or directory
Summary: dev-util/astyle-1.22: error: jni.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 11:07 UTC by Robert Holzknecht
Modified: 2009-02-18 03:05 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,10.46 KB, text/plain)
2009-01-28 11:07 UTC, Robert Holzknecht
Details
eclass-debug.log (eclass-debug.log,1.39 KB, text/plain)
2009-01-28 11:08 UTC, Robert Holzknecht
Details
/var/tmp/portage/dev-util/astyle-1.22/temp/environment (environment,144.10 KB, text/plain)
2009-01-28 11:08 UTC, Robert Holzknecht
Details
Patch for ebuild (astyle.patch,998 bytes, patch)
2009-02-10 00:07 UTC, Petteri Räty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Holzknecht 2009-01-28 11:07:33 UTC
Upgrading from v1.21 from v1.22 via emerge world -DNvu

Reproducible: Always

Steps to Reproduce:
upgrade from astyle  v1.21 to v1.22
Actual Results:  
emerge fails: "../src/astyle_main.cpp:56:17: error: jni.h: No such file or directory"

Expected Results:  
jni.h is found
(currently installed under:
/opt/blackdown-jdk-1.4.2.03/include/jni.h
/opt/sun-jdk-1.5.0.16/include/jni.h
/opt/sun-jdk-1.6.0.11/include/jni.h
/usr/lib/mozilla-thunderbird/include/java/jni.h
/usr/lib/xulrunner/include/java/jni.h
/usr/lib/xulrunner/include/jni.h
/usr/include/xulrunner-1.9/unstable/jni.h
/usr/include/xulrunner-1.9/stable/jni.h
)

----- JAVA-Infos: ---------
JAVA_HOME="/opt/sun-jre-bin-1.6.0.11"
CLASSPATH="/opt/sun-jre-bin-1.6.0.11/jre/lib/resources.jar:/opt/sun-jre-bin-1.6.0.11/jre/lib/rt.jar:/opt/sun-jre-bin-1.6.0.11/jre/lib/jsse.jar:/opt/sun-jre-bin-1.6.0.11/jre/lib/jce.jar:/opt/sun-jre-bin-1.6.0.11/jre/lib/charsets.jar"
GENTOO_VM="sun-jre-bin-1.6"
JAVACFLAGS="" ??
COMPILER="" ??

---- Emerge Infos: -------
emerge --info && java-check-environment
Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-glibc2.0
Timestamp of tree: Wed, 28 Jan 2009 06:00:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-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/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.bytemark.co.uk/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mirror.jamit.de/gentoo/ http://gentoo.ynet.sk/pub"
LANG="de_DE.utf8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en en_GB en_US"
MAKEOPTS="-j7"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/desktop-effects /usr/local/portage/my_ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3ds 7zip X Xaw3d a52 aac aalib accessibility acl acpi addbookmarks adns adplug afs aio alias alisp alsa amd amr amrnb amrr amrwb ao apache2 apm ares arts async audiofile automount autoreplace avahi badval bash-completion bcmath berkdb bidi big-tables binfilter bittorrent bl bluetooth boehm-gc branding bzip2 cairo calendar caps carbone_theme cardbus catalogs ccache cdb cdda cddb cdf cdparanoia cdr cdrom cdsound cgi chardet chipcard chroot cjk clearcase cli cmdsubmenu connectionstatus contactnotes corba courier cpio cpudetection cracklib crypt css ctype cups curl curlwrappers cvs daap dbase dbus dc1394 de_tvtoday deprecated device-mapper dga dhcp directfb disk-partition diskio divx djbfft djvu dmi dri dts dv dvb dvbplayer dvd dvdr dvdread dvi dynamic eap-tls eds ee elf emboss emerald enca encode escreen evo exif expat fam fame fastbuild fat fax fbcon fbcondecor fbdev fbsplash ffmpeg fftw filter firefox flac flash flatfile fltk font-server fontconfig foomaticdb fortran fping fpx freetds ftp gadu gd gdbm geoip ggi gif gimp glade glib glitz glut gmedia gmp gnokii gnutls gphoto2 gpm graphviz groupwise gs gsl gsm gstreamer gtk gtkhtml gtkspell guile h323 hal hash haskell hbci hddtemp hfs highlight history howl-compat ical iconv id3 idea idn ieee1394 ifp ilbc imagemagick imap imlib inifile iodbc ipod ipsec ipv6 ipw3945 irc irda irmc isdnlog it jack jack-tmpfs jad jai java java5 javacomm javascript jbig jce jfs jikes jingle john joystick jpeg jpeg2k json kde kdepim kdm kerberos kipi krb4 ladspa lame laptop lcd lcms ldap libcaca libgda libnotify libsamplerate libssh2 linux-smp-stats lirc live lm_sensors lua lzo math matroska matrox max-idx-128 mbox mbrola mcve md5sum mdb mdnsresponder-compat meanwhile memlimit metalink mfd-rewrites mhash midi mikmod mjpeg mmap mmkeys mmx mmxext mng modplug mono motif mouse mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mpi mpi_njtree mplayer msn mssql mtp mudflap multiprocess multiuser musepack music musicbrainz mysql mysqli nas nautilus ncurses nemesi net netjack netmeeting network networking nis njb nls nowlistening nptl nptlonly nsplugin nss ntfs ntlm ntp nvidia obex objc objc++ objc-gc ocaml odbc odk ofx ogg old-daemons openal openexr opengl openmp openntpd openssh optimisememory pam parse-clocks pascal pci pcmcia pcntl pcre pda pdf pdo perforce perl php physfs player pmu png portaudio postgres povray ppds pppd print pulseaudio python qt3 qt3support qt4 quicktime radio rar readline realmedia reflection reiser4 reiserfs replytolist rle rpm rrdtool rss rtc rtsp ruby samba sametime sasl scanner screen script sdl sdl-image sensord serial server session sftp sharedext shout sid skins slp smartcard smp sms sndfile snmp soap sockets softfax sound soundex sounds soundtouch speedo speex spell spl sql srp srt sse sse2 sse3 ssl ssse3 startup-notification statistics stats stream submenu subtitles subversion suhosin svg svga svgz swig sysfs szip tcl tcp tcpd teletext templates test-programs texteffect textures tga themes theora threads thumbnail thunderbird tiff timidity tivo tk tokenizer tools trace transcode translator transmitter truetype tta tv_check tv_combiner tv_pick_cgi type1 unicode unzip upnp ups urandom usb userlocales utempter utils v4l v4l2 vcd vdr videos vidix vim vim-pager vim-syntax vim-with-x visualization vlm vnc vorbis vorbis-psy wavpack webdav webkit webpresence wifi win32codecs winbind winpopup wireshark wma wmf wmp x264 x86 x86emu xanim xattr xcb xchatdccserver xcomposite xext xforms xfs xft xine xinerama xml xmldoclet xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsettings xsl xslt xterm xulrunner xv xvid xvmc yahoo yaz yv12 zip zlib zoran zvbi" ALSA_CARDS="hda-intel usb-audio" 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="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev joystick void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB en_US" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robert Holzknecht 2009-01-28 11:07:56 UTC
Created attachment 179936 [details]
build.log
Comment 2 Robert Holzknecht 2009-01-28 11:08:27 UTC
Created attachment 179937 [details]
eclass-debug.log
Comment 3 Robert Holzknecht 2009-01-28 11:08:54 UTC
Created attachment 179939 [details]
/var/tmp/portage/dev-util/astyle-1.22/temp/environment
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2009-01-28 12:14:11 UTC
the sed replacement may be ${JAVA_HOME} (set by java eclasses)
Comment 5 Steve Arnold archtester gentoo-dev 2009-02-09 02:25:35 UTC
It looks like your java environment isn't correct; what is the output of java-config -L ?  Try setting it to the newest sun-jdk, or whatever you have installed that you want to be the default, then emerge astyle again.
Comment 6 Robert Holzknecht 2009-02-09 17:38:27 UTC
Well i tried it with other VM's too:

Output of java-config -L:
-------------------------------
java-ndragon ~ # java-config -L
The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
3)      Sun JDK 1.5.0.16 [sun-jdk-1.5]
4)      Sun JDK 1.6.0.11 [sun-jdk-1.6]
*)      Sun JRE 1.6.0.11 [sun-jre-bin-1.6]
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2009-02-10 00:07:24 UTC
Created attachment 181501 [details, diff]
Patch for ebuild

(In reply to comment #5)
> It looks like your java environment isn't correct; what is the output of
> java-config -L ?  Try setting it to the newest sun-jdk, or whatever you have
> installed that you want to be the default, then emerge astyle again.
> 

At least the ebuild is buggy. To build stuff you need to DEPEND on virtual/jdk instead of virtual/jre. I would nuke pkg_setup as it doesn't do anything useful.
Comment 8 Steve Arnold archtester gentoo-dev 2009-02-18 03:05:34 UTC
Fixed in CVS...