Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153750 - dev-libs/beecrypt-4.1.2-r1 failed
Summary: dev-libs/beecrypt-4.1.2-r1 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sandro Bonazzola (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 14:28 UTC by Sawk
Modified: 2006-11-13 11:06 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sawk 2006-11-01 14:28:37 UTC
In file included from javaglue.c:21:
javaglue.h:2:17: error: jni.h: No such file or directory
In file included from javaglue.c:21:
javaglue.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jbyteArray'
javaglue.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint'
javaglue.h:125: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:141: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:149: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:157: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:165: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:212: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:220: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jlong'
javaglue.h:228: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:236: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jint'
javaglue.h:244: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:252: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:260: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:268: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:276: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.h:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
javaglue.c:33: error: expected ')' before '*' token
javaglue.c:52: error: expected ')' before '*' token
javaglue.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeMessageDigest_freeParam'
javaglue.c:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeMessageDigest_reset'
javaglue.c:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeMessageDigest_update'
javaglue.c:123: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeMessageDigest_updateBlock'
javaglue.c:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:163: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:170: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:196: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:204: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeSecureRandom_freeParam'
javaglue.c:210: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeSecureRandom_setup'
javaglue.c:215: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeSecureRandom_setSeed'
javaglue.c:236: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeSecureRandom_nextBytes'
javaglue.c:256: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_security_NativeSecureRandom_generateSeed'
javaglue.c:292: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:306: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:318: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_freeParam'
javaglue.c:324: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JNICALL'
javaglue.c:329: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_setup'
javaglue.c:372: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_setIV'
javaglue.c:401: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_encryptECB'
javaglue.c:463: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_decryptECB'
javaglue.c:525: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_encryptCBC'
javaglue.c:587: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Java_beecrypt_crypto_NativeBlockCipher_decryptCBC'
make[2]: *** [javaglue.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/beecrypt-4.1.2-r1/work/beecrypt-4.1.2/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/beecrypt-4.1.2-r1/work/beecrypt-4.1.2'
make: *** [all] Error 2

!!! ERROR: dev-libs/beecrypt-4.1.2-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  beecrypt-4.1.2-r1.ebuild, line 56:   Called die
Comment 1 Sawk 2006-11-01 14:28:50 UTC
Portage 2.1.2_rc1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.12.5
Last Sync: Wed, 01 Nov 2006 20:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache digest distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/sawk/wmii /home/sawk/amule-cvs"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac alsa amarok amazon apm arts asf bash-completion berkdb bitmap-fonts cairo cdparanoia cli cracklib crypt cups curl custom-cflags dbus dga directfb divx dlloader dri dvb dvd dvdr dvdread eds elibc_glibc emboss encode esd fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif glitz gmedia gpm gstreamer gtk gtk2 hal i8x0 iconv imlib input_devices_joystick input_devices_keyboard input_devices_mouse ipod isdnlog java javascript jce jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ libsamplerate libwww linguas_it live lm_sensors logitech-mouse lzo mad matroska mikmod mmx motif moznocompose moznoirc moznomail moznoxft mp3 mpeg musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openssh oss pam pcre pdf perl png pop pppd print python qt3 qt4 quicktime readline real realmedia reflection rtc scanner sdl session sndfile speex spell spl sse sse2 ssl tcpd tga theora timidity truetype truetype-fonts type1-fonts udev usb userland_GNU v4l vcd video_cards_nvidia vorbis win32codecs wmp xml xorg xprint xscreensaver xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-11-02 10:28:55 UTC
Can't resolve this without more info. Can you attach the output of java-config -L ? It seems that the configure script doesn't find jni.h for your VM.
Comment 3 Sawk 2006-11-02 13:50:18 UTC
(In reply to comment #2)
> Can't resolve this without more info. Can you attach the output of java-config
> -L ? It seems that the configure script doesn't find jni.h for your VM.
> 


The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
*)      Sun JRE 1.5.0.08 [sun-jre-bin-1.5]

Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2006-11-11 02:49:24 UTC
to be more precise:
USE="-java" emerge =dev-libs/beecrypt-4.1.2-r1
works; dont know yet if system is stable and usable; but for now, it compiles fine :) Need to reboot to tell more; especially, I dont know why I needed this dep, so, I dont know what to test to check if it works. But at least, my emerge world works :D
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2006-11-11 05:31:58 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Can't resolve this without more info. Can you attach the output of java-config
> > -L ? It seems that the configure script doesn't find jni.h for your VM.
> > 
> 
> 
> The following VMs are available for generation-2:
> 1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
> *)      Sun JRE 1.5.0.08 [sun-jre-bin-1.5]
> 

You have set sun-jre-bin as the system VM. That means that you are not able to actually compile anything with it. You should set a jdk as the system VM if you want to emerge anything using java. Please re-open if the problem still exists after setting a jdk as the system VM. java-config should have given you warnings about this when you set sun-jre-bin-1.5 as the system VM.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-11-11 11:47:22 UTC
Looked at the beecrypt-4.1.2-r1 ebuild and it does not use our eclasses. It should be modified to use java-pkg-opt-2.eclass.
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2006-11-12 08:13:47 UTC
> You have set sun-jre-bin as the system VM. That means that you are not able to
> actually compile anything with it. You should set a jdk as the system VM if you
> want to emerge anything using java. Please re-open if the problem still exists
> after setting a jdk as the system VM. java-config should have given you
> warnings about this when you set sun-jre-bin-1.5 as the system VM.

if when usinf java use flag the ebuild requires some headers or compiler, it should say so ! accusing user choiser choices as cause of a compile error is not acceptable to me. What is acceptable to me is a "./configure" error in LFS or slakware. A Gentoo acceptable error is an "ebuild" error, something that should come out in ewarn or error: a portage message !

An ideal case should be a broken dep message.

That's why condital deps have been introduced in ebuild syntax.

from (bad) memory, something like
DEPEND="(java ? <JDK>)"

Thanks to the one who reopened it :)
Comment 8 Sandro Bonazzola (RETIRED) gentoo-dev 2006-11-13 09:57:20 UTC
(In reply to comment #7)
> from (bad) memory, something like
> DEPEND="(java ? <JDK>)"
> 
> Thanks to the one who reopened it :)

The one who reopened the bug was the same person who previously closed the bug. Yes, there are a few bugs in the beecrypt ebuild:
- A missing dependency on virtual/jdk, that is the easy part to fix
- A missing inherit java-pkg-opt-2 forcing the use of a jdk instead of a jre.

Please be patient, all of us are just human.

Comment 9 Sandro Bonazzola (RETIRED) gentoo-dev 2006-11-13 11:06:45 UTC
Fixed in CVS. 
Tested on ~amd64 and ~x86 using Sun JRE 1.5.0.08 as system vm.

Commit message:
Adding missing dependencies on virtual/jdk and virtual/jre. Inheriting java-pkg-opt-2 fixing bug# 153750. Thanks to Petteri R
Comment 10 Sandro Bonazzola (RETIRED) gentoo-dev 2006-11-13 11:06:45 UTC
Fixed in CVS. 
Tested on ~amd64 and ~x86 using Sun JRE 1.5.0.08 as system vm.

Commit message:
Adding missing dependencies on virtual/jdk and virtual/jre. Inheriting java-pkg-opt-2 fixing bug# 153750. Thanks to Petteri Räty for his help and Sawk for reporting.

Please reopen if it doesn't work for you.