Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177693 - dev-php5/php-java-bridge-4.3.0 (version bump)
Summary: dev-php5/php-java-bridge-4.3.0 (version bump)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 170111
  Show dependency tree
 
Reported: 2007-05-08 18:52 UTC by Bruno Lustosa
Modified: 2007-11-29 13:50 UTC (History)
4 users (show)

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


Attachments
php-java-bridge-4.3.0.ebuild (php-java-bridge-4.3.0.ebuild,1.41 KB, text/plain)
2007-11-07 23:05 UTC, Perolo Silantico
Details
Errors using php-java-bridge-4.3.0 (php-java-bridge-4.0.1.ebuild,1.32 KB, text/plain)
2007-11-29 12:38 UTC, pedro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Lustosa 2007-05-08 18:52:03 UTC
Hello.
I was having problems with current php-java-bridge-2.0.8 in portage, as it doesn't compile properly due to API changes.
I grabbed the latest (4.0.8a) from sourceforge, created an overlay for it, and renamed the ebuild. I also commented out the patches (didn't test with it though, sorry).
I'll start testing this version now, and will post any bugs I find. This package is particularly important for me, because we have a closed source java library that we must use from PHP, so I don't see any other way around.
I tried getting the 3.0.7 from the overlay mentioned in bug 126213, but I couldn't open (connection reset by peer).
I can post the ebuild that I am using, if anyone wishes.
Thanks
Comment 1 Rafał Mużyło 2007-07-25 13:36:51 UTC
As a sidenote: I took today ebuild from overlay, renamed it to 3.2.1, added 3.2.1a patch and it seems to work (well, at least build), however it seems to suffer from parallel make issues (I've got a strange error first:
../php/java/bridge/ThreadPool.java:58: error: Class ‘php.java.bridge.ThreadPool$D
elegate’ already defined in php/java/bridge/ThreadPool$Delegate.java:0.
    final class Delegate extends BaseThreadPool.Delegate {
but at the retry it built fine).

Latest 4.X.X doesn't build for me, due to some threading issue mentioned at php-java-bridge Sourceforge mailing list.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-08-12 12:48:35 UTC
java folks, could you please play a bit with the ebuild for 3.1.8 from PHP overlay [1] and see if we can get it working with 4.2.2 (latest devel version) or at least 3.2.1 (latest upstream stable). Basically no clue how to test this properly wrt the stuff in Comment #1 etc. The version is the tree doesn't compile any more, we need to get this updated.

Thanks!

[1] http://overlays.gentoo.org/proj/php/browser/testing/dev-php5/php-java-bridge

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-29 15:21:05 UTC
Well, unless we get some help from java team, java-external flag is going to be removed from PHP and this will end up p.masked.
Comment 4 Perolo Silantico 2007-11-07 23:05:26 UTC
Created attachment 135460 [details]
php-java-bridge-4.3.0.ebuild


a new ebuild for newest stable version of php-java-bridge.
Works like a charm for me but testing is still in progress ...
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-11-09 14:31:04 UTC
(In reply to comment #4)
> a new ebuild for newest stable version of php-java-bridge.
> Works like a charm for me but testing is still in progress ...

Thanks, added to http://overlays.gentoo.org/proj/php/browser/testing/migration/dev-php5/php-java-bridge
Comment 6 Dan Davis 2007-11-09 17:16:31 UTC
Ebuild built and installed properly. I'm unable to test operation of the bridge, but it at least built.

>>> Emerging (1 of 1) dev-php5/php-java-bridge-4.3.0 to /
 * php-java-bridge_4.3.0.tar.gz MD5 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                 [ ok ]
 * checking php-java-bridge_4.3.0.tar.gz ;-) ...                                                                                                                                       [ ok ]
 *
 * Using dev-lang/php-5.2.4_pre200708051230-r2
 *
 * Checking for required PHP feature(s) ...
>>> Unpacking source...
>>> Unpacking php-java-bridge_4.3.0.tar.gz to /var/tmp/portage/dev-php5/php-java-bridge-4.3.0/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-php5/php-java-bridge-4.3.0/work/php-java-bridge-4.3.0 ...
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519


~ # emerge --info
Portage 2.1.3.19 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-gentoo-r8 i686)
=================================================================
System uname: 2.6.20-gentoo-r8 i686 AMD Athlon(tm) XP 3000+
Timestamp of tree: Fri, 09 Nov 2007 01:47:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -mtune=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://gentoo.mirrors.pair.com/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirror.datapipe.net/gentoo"
MAKEOPTS="-j1 -s"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/local/portage /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnow2 3dnowext X a52 aac alsa apache2 apm arts audiofile avi berkdb bitmap-fonts browserplugin bzip2 cairo cdr cracklib crypt css ctype cups dba dbus dri dvd dvdr dvdread encode esd ethereal exif expat fam firefox flac foomaticdb ftp gdbm gif gimp glitz glut glx gmail gmailtimestamps gmp gstreamer gtalk gtk gtk2 gtkhtml guile hal hpn iconv idn ieee1394 imlib iproute2 ipv6 isdnlog java jpeg kde keyring lcms libg++ libwww mad md5sum memlimit midi mikmod mmx mmx2 mng mozilla mp3 mpeg mudflap mysql ncurses nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp openssh openssl oss pam pcre pdf pdflib perl png posix ppds pppd python qt qt3 qt4 quicktime rdesktop readline real reflection samba scanner sdl session simplexml slang soap sockets spell spl sse sse2 ssl subversion svg syslog tcltk tcpd theora threads tiff tk tokenizer transcode truetype truetype-fonts type1-fonts udev unicode usb vcd visualization vorbis win32codecs x86 xcb xml xml2 xorg xsl xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-11-15 19:22:24 UTC
4.3.0 InCVS, please test. Thanks.
Comment 8 pedro 2007-11-29 12:38:43 UTC
Created attachment 137306 [details]
Errors using php-java-bridge-4.3.0

I use the php-java-bridge to communicate php with a jboss deployed ejb.
With php-java-bridge (ebuild attached) it works perfectly but with the new ebuild, the php code is unable to communicate with the ejb.

I don't know if it is an error of the ebuild or an error of the bridge.
I am using jboss-4.2.1, php version is 5.2.4_p20070914-r2

This bug is mainly for informative purposes
Comment 9 @4u 2007-11-29 13:34:28 UTC
Looks like php crashes on 64bit with php-java-bridge-4.3.0.ebuild. I already tried to find the problem with strace and ltrace, but can't get hold of any errornous instruction so far.

I'll test the 4.0.1 ebuild
Comment 10 @4u 2007-11-29 13:34:49 UTC
Opps - I forgot the output - sry

*** glibc detected *** php: munmap_chunk(): invalid pointer: 0x00000000005a587c ***
======= Backtrace: =========
/lib/libc.so.6(cfree+0x1ac)[0x398d67535c]
/usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613/java.so(java_clone_cfg+0x4f)[0x2b4978813f75]
/usr/lib64/php5/lib/php/extensions/no-debug-zts-20060613/java.so(zm_startup_java+0x121)[0x2b49788148db]
php(zend_startup_module_ex+0x122)[0x5e5f85]
php(zend_hash_apply+0x46)[0x5eb0d3]
php(zend_startup_modules+0x39)[0x5e4870]
php(php_module_startup+0x6af)[0x59cf99]
php[0x65c918]
php(main+0x2e9)[0x65d079]
/lib/libc.so.6(__libc_start_main+0xf4)[0x398d61db74]
php[0x4510a9]
======= Memory map: ========
00400000-00759000 r-xp 00000000 08:02 1163194                            /usr/lib64/php5/bin/php
00958000-00974000 r--p 00358000 08:02 1163194                            /usr/lib64/php5/bin/php
00974000-009a6000 rw-p 00374000 08:02 1163194                            /usr/lib64/php5/bin/php
009a6000-009ae000 rw-p 009a6000 00:00 0
00ba5000-00bbd000 rw-p 003a5000 08:02 1163194                            /usr/lib64/php5/bin/php
00bbd000-00d28000 rw-p 00bbd000 00:00 0                                  [heap]
398c600000-398c61d000 r-xp 00000000 08:02 1368401                        /lib64/ld-2.6.1.so
398c81c000-398c81d000 r--p 0001c000 08:02 1368401                        /lib64/ld-2.6.1.so
398c81d000-398c81e000 rw-p 0001d000 08:02 1368401                        /lib64/ld-2.6.1.so
398ca00000-398ca12000 r-xp 00000000 08:02 1368755                        /lib64/libresolv-2.6.1.so
398ca12000-398cc11000 ---p 00012000 08:02 1368755                        /lib64/libresolv-2.6.1.so
398cc11000-398cc12000 r--p 00011000 08:02 1368755                        /lib64/libresolv-2.6.1.so
398cc12000-398cc13000 rw-p 00012000 08:02 1368755                        /lib64/libresolv-2.6.1.so
398cc13000-398cc15000 rw-p 398cc13000 00:00 0
398ce00000-398ce33000 r-xp 00000000 08:02 1368758                        /lib64/libreadline.so.5.2
398ce33000-398cf33000 ---p 00033000 08:02 1368758                        /lib64/libreadline.so.5.2
398cf33000-398cf3b000 rw-p 00033000 08:02 1368758                        /lib64/libreadline.so.5.2
398cf3b000-398cf3c000 rw-p 398cf3b000 00:00 0
398d000000-398d007000 r-xp 00000000 08:02 1368414                        /lib64/libhistory.so.5.2
398d007000-398d107000 ---p 00007000 08:02 1368414                        /lib64/libhistory.so.5.2
398d107000-398d108000 rw-p 00007000 08:02 1368414                        /lib64/libhistory.so.5.2
398d200000-398d32a000 r-xp 00000000 08:02 935879                         /usr/lib64/libcrypto.so.0.9.8
398d32a000-398d52a000 ---p 0012a000 08:02 935879                         /usr/lib64/libcrypto.so.0.9.8
398d52a000-398d535000 r--p 0012a000 08:02 935879                         /usr/lib64/libcrypto.so.0.9.8
398d535000-398d54b000 rw-p 00135000 08:02 935879                         /usr/lib64/libcrypto.so.0.9.8
398d54b000-398d54e000 rw-p 398d54b000 00:00 0
398d600000-398d74c000 r-xp 00000000 08:02 1368504                        /lib64/libc-2.6.1.so
398d74c000-398d94c000 ---p 0014c000 08:02 1368504                        /lib64/libc-2.6.1.so
398d94c000-398d950000 r--p 0014c000 08:02 1368504                        /lib64/libc-2.6.1.so
398d950000-398d951000 rw-p 00150000 08:02 1368504                        /lib64/libc-2.6.1.so
398d951000-398d956000 rw-p 398d951000 00:00 0
398da00000-398da02000 r-xp 00000000 08:02 1368752                        /lib64/libdl-2.6.1.so
398da02000-398dc02000 ---p 00002000 08:02 1368752                        /lib64/libdl-2.6.1.so
398dc02000-398dc03000 r--p 00002000 08:02 1368752                        /lib64/libdl-2.6.1.so
398dc03000-398dc04000 rw-p 00003000 08:02 1368752                        /lib64/libdl-2.6.1.so
398de00000-398de82000 r-xp 00000000 08:02 1368751                        /lib64/libm-2.6.1.so
398de82000-398e081000 ---p 00082000 08:02 1368751                        /lib64/libm-2.6.1.so
398e081000-398e082000 r--p 00081000 08:02 1368751                        /lib64/libm-2.6.1.so
398e082000-398e083000 rw-p 00082000 08:02 1368751                        /lib64/libm-2.6.1.so
398e200000-398e216000 r-xp 00000000 08:02 1368753                        /lib64/libpthread-2.6.1.so
398e216000-398e415000 ---p 00016000 08:02 1368753                        /lib64/libpthread-2.6.1.so
398e415000-398e416000 r--p 00015000 08:02 1368753                        /lib64/libpthread-2.6.1.so
398e416000-398e417000 rw-p 00016000 08:02 1368753                        /lib64/libpthread-2.6.1.so
398e417000-398e41b000 rw-p 398e417000 00:00 0
398e600000-398e614000 r-xp 00000000 08:02 1368750                        /lib64/libz.so.1.2.3
398e614000-398e713000 ---p 00014000 08:02 1368750                        /lib64/libz.so.1.2.3
398e713000-398e714000 rw-p 00013000 08:02 1368750                        /lib64/libz.so.1.2.3
398e800000-398e805000 r-xp 00000000 08:02 935858                         /usr/lib64/libXdmcp.so.6.0.0
398e805000-398e904000 ---p 00005000 08:02 935858                         /usr/lib64/libXdmcp.so.6.0.0
398e904000-398e905000 rw-p 00004000 08:02 935858                         /usr/lib64/libXdmcp.so.6.0.0
398ea00000-398eafb000 r-xp 00000000 08:02 935859                         /usr/lib64/libX11.so.6.2.0
398eafb000-398ebfa000 ---p 000fb000 08:02 935859                         /usr/lib64/libX11.so.6.2.0
398ebfa000-398ec01000 rw-p 000fa000 08:02 935859                         /usr/lib64/libX11.so.6.2.0
398ee00000-398ee02000 r-xp 00000000 08:02 935857                         /usr/lib64/libXau.so.6.0.0
398ee02000-398ef01000 ---p 00002000 08:02 935857                         /usr/lib64/libXau.so.6.0.0
398ef01000-398ef02000 rw-p 00001000 08:02 935857                         /usr/lib64/libXau.so.6.0.0
398f000000-398f12a000 r-xp 00000000 08:02 935868                         /usr/lib64/libxml2.so.2.6.30
398f12a000-398f329000 ---p 0012a000 08:02 935868                         /usr/lib64/libxml2.so.2.6.30
398f329000-398f331000 r--p 00129000 08:02 935868                         /usr/lib64/libxml2.so.2.6.30
398f331000-398f333000 rw-p 00131000 08:02 935868                         /usr/lib64/libxml2.so.2.6.30
398f333000-398f334000 rw-p 398f333000 00:00 0
398f400000-398f47f000 r-xp 00000000 08:02 935867                         /usr/lib64/libfreetype.so.6.3.15
398f47f000-398f57f000 ---p 0007f000 08:02 935867                         /usr/lib64/libfreetype.so.6.3.15
398f57f000-398f584000 rw-p 0007f000 08:02 935867                         /usr/lib64/libfreetype.so.6.3.15
398f600000-398f654000 r-xp 00000000 08:02 935548                         /usr/lib64/libsqlite.so.0.8.6
398f654000-398f754000 ---p 00054000 08:02 935548                         /usr/lib64/libsqlite.so.0.8.6
398f754000-398f758000 rw-p 00054000 08:02 935548                         /usr/lib64/libsqlite.so.0.8.6
398fa00000-398fa3e000 r-xp 00000000 08:02 1449674                        /usr/lib64/libt1.so.5.0.2
398fa3e000-398fb3d000 ---p 0003e000 08:02 1449674                        /usr/lib64/libt1.so.5.0.2
398fb3d000-398fb42000 rw-p 0003d000 08:02 1449674                        /usr/lib64/libt1.so.5.0.2
398fb42000-398fb57000 rw-p 398fb42000 00:00 0
398fe00000-398fe22000 r-xp 00000000 08:02 935856                         /usr/lib64/libpng12.so.0.22.0
398fe22000-3990022000 ---p 00022000 08:02 935856                         /usr/lib64/libpng12.so.0.22.0
3990022000-3990023000 r--p 00022000 08:02 935856                         /usr/lib64/libpng12.so.0.22.0
3990023000-3990024000 rw-p 00023000 08:02 935856                         /usr/lib64/libpng12.so.0.22.0
3991800000-3991821000 r-xp 00000000 08:02 934623                         /usr/lib64/libjpeg.so.62.0.0
3991821000-3991920000 ---p 00021000 08:02 9346Abgebrochen
Comment 11 @4u 2007-11-29 13:50:51 UTC
php-java-bridge-4.0.1 works for me with:

PHP 5.2.5-pl0-gentoo (cli) (built: Nov 25 2007 01:08:33)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

and only the java extension in "/etc/ext-active".