Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170111 - dev-php5/php-java-bridge-2.0.8 fails compiling
Summary: dev-php5/php-java-bridge-2.0.8 fails compiling
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on: 177693
Blocks:
  Show dependency tree
 
Reported: 2007-03-09 13:56 UTC by Andre Hinrichs
Modified: 2007-11-09 14:32 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,3.85 KB, text/plain)
2007-03-09 13:57 UTC, Andre Hinrichs
Details
same error, but in English (php-java-bridge-2.0.8_log.txt,3.35 KB, text/plain)
2007-03-11 01:08 UTC, Ivan Vasin
Details
emerge --info (emerge_info.txt,4.47 KB, text/plain)
2007-03-11 01:11 UTC, Ivan Vasin
Details
emerge --info (emerge--info,3.20 KB, text/plain)
2007-03-16 12:46 UTC, Alejandro Carvajal
Details
emerge --info (dev-emerge-info.txt,3.14 KB, text/plain)
2007-03-20 18:04 UTC, Dan Davis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Hinrichs 2007-03-09 13:56:08 UTC
emerge --info follows in an attachment.
Error message is as follows...



/bin/sh /var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/libtool --mode=compile i686-pc-linux-gnu-gcc -DEXTENSION_DIR="\"/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613\"" -I. -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/include -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/main -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/lib/php5/include/php/ext/date/lib -I/opt/sun-jdk-1.5.0.10/include -I/opt/sun-jdk-1.5.0.10/include/linux  -D_REENTRANT -DHAVE_CONFIG_H  -O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe   -c /var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java_bridge.c -o java_bridge.lo
 i686-pc-linux-gnu-gcc -DEXTENSION_DIR=\"/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613\" -I. -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/include -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/main -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/lib/php5/include/php/ext/date/lib -I/opt/sun-jdk-1.5.0.10/include -I/opt/sun-jdk-1.5.0.10/include/linux -D_REENTRANT -DHAVE_CONFIG_H -O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe -c /var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c  -fPIC -DPIC -o .libs/java.o
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c: In function 'create_exception_object':
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1054: error: too few arguments to function 'zend_exception_get_default'
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1055: error: too few arguments to function 'zend_exception_get_default'
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1056: error: too few arguments to function 'zend_exception_get_default'
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c: In function 'zm_startup_java':
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1429: error: 'zif_java___call' undeclared (first use in this function)
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1429: error: (Each undeclared identifier is reported only once
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1429: error: for each function it appears in.)
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1430: error: 'zif_java___get' undeclared (first use in this function)
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1431: error: 'zif_java___set' undeclared (first use in this function)
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1441: warning: assignment from incompatible pointer type
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1445: warning: assignment from incompatible pointer type
/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java.c:1455: error: too few arguments to function 'zend_exception_get_default'
make: *** [java.lo] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
 i686-pc-linux-gnu-gcc -DEXTENSION_DIR=\"/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613\" -I. -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/include -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/main -I/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/lib/php5/include/php/ext/date/lib -I/opt/sun-jdk-1.5.0.10/include -I/opt/sun-jdk-1.5.0.10/include/linux -D_REENTRANT -DHAVE_CONFIG_H -O3 -march=pentium3 -mfpmath=sse -mmmx -msse -maccumulate-outgoing-args -fomit-frame-pointer -pipe -c /var/tmp/portage/dev-php5/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8/java_bridge.c  -fPIC -DPIC -o .libs/java_bridge.o

!!! ERROR: dev-php5/php-java-bridge-2.0.8 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4272:   Called src_compile
  php-java-bridge-2.0.8.ebuild, line 49:   Called php-ext-source-r1_src_compile
  php-ext-source-r1.eclass, line 49:   Called die

!!! Unable to make code
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-php5/php-java-bridge-2.0.8/temp/build.log'.
Comment 1 Andre Hinrichs 2007-03-09 13:57:25 UTC
Created attachment 112706 [details]
emerge --info
Comment 2 Ivan Vasin 2007-03-11 01:08:50 UTC
Created attachment 112881 [details]
same error, but in English
Comment 3 Ivan Vasin 2007-03-11 01:11:03 UTC
Created attachment 112882 [details]
emerge --info
Comment 4 Alejandro Carvajal 2007-03-16 12:46:05 UTC
Created attachment 113473 [details]
emerge --info
Comment 5 Alejandro Carvajal 2007-03-16 12:48:01 UTC
Comment on attachment 113473 [details]
emerge --info

Get the same error, I also checked the previous bug at  http://bugs.gentoo.org/show_bug.cgi?id=140744 and tried WANT_AUTOCONF=2.5 emerge dev-php5/php-java-bridge but still no luck.
Comment 6 @4u 2007-03-17 12:29:53 UTC
Same here ... working on a patch - this version should be masked - at least for dev-lang/php-5.2.1-r3 and newer
Comment 7 @4u 2007-03-17 13:13:30 UTC
Here is the result:

error: too few arguments to function 'zend_exception_get_default' is easily fixable - seems libe Zend changed the API a bit.

error: 'zif_java___get' undeclared (first use in this function) is NOT fixable so easily.

Instead of creating my own branch and rewriting the source code I strongly recommend to update to a newer release available at http://php-java-bridge.sourceforge.net/pjb/
Comment 8 Dan Davis 2007-03-20 18:04:50 UTC
Created attachment 113900 [details]
emerge --info
Comment 9 Luca Longinotti (RETIRED) gentoo-dev 2007-03-20 19:36:43 UTC
Hmm could someone please test dev-php5/php-java-bridge-3.1.8 from the PHP Overlay, testing branch? (layman -a php-testing for the layman users) and report back if that works? I don't have appropriate Java setups atm to test this... If it works I'll add it to Portage.
Best regards, CHTEKK.
Comment 10 Mark Gray 2007-03-21 04:05:18 UTC
I don't have any java either, but a simple

<?php phpinfo(); ?>

script will tell you if the extension is working. Look for:

java support 	Enabled
java bridge 	<version>

I don't have the time to test this myself for a day or two, but if no-one else has done it by then I'll gladly research the PHP overlay and ensure it at least compiles and loads.
Comment 11 Andy 2007-04-08 17:17:31 UTC
Thanks Luca for the concise advice to test the layman php-testing version.
It compiles and works fine for me (but I only tried:
 Example 1015. Java Example
 http://www.php.net/manual/en/ref.java.php
).


My versions:
ACCEPT_KEYWORDS="~x86" emerge -pv php dev-php5/php-java-bridge
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-5.2.1-r3  USE="apache2 cli ctype curl fastbuild ftp gd hash iconv java-external mysql nls pcre pdo pic reflection session simplexml sockets spl ssl tokenizer truetype xml xsl zip zlib -adabas -apache -bcmath -berkdb -birdstep -bzip2 -calendar -cdb -cgi -cjk -concurrentmodphp -crypt -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -gd-external -gdbm -gmp -imap -inifile -interbase -iodbc -ipv6 -json -kerberos -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -ncurses -oci8 -oci8-instant-client -odbc -pcntl -pdo-external -posix -postgres -qdbm -readline -recode -sapdb -sharedext -sharedmem -snmp -soap -solid -spell -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -unicode -wddx -xmlreader -xmlrpc -xmlwriter -xpm -yaz -zip-external" 0 kB [3] 
[ebuild   R   ] dev-php5/php-java-bridge-3.1.8  0 kB [3] 

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/portage/local/layman/sunrise
 [3] /usr/portage/local/layman/php-testing


The funny thing is that php-5.2.1-r3 in the overlay is still marked as ~x86 and if one tries to reemerge (without ~x86), emerge tries to downgrade (even though it is stable in the main branch).


Just to be complete, this is what phpinfo says:
java
java support   Enabled 
  java bridge   3.1.8 
  java.java_home   no value 
  java.java   java 
  java.log_file   <stderr> 
  java.log_level   no value (use back-end's default level) 
  java.persistent_connections   On 
  java.security_policy   Off 
  java command    LD_LIBRARY_PATH=/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613: java -Djava.library.path=/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613 -Djava.class.path=/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613 php.java.bridge.Standalone LOCAL:@java-bridge-3a63 1 
  java status   running 
  java server   @java-bridge-3a63
Comment 12 Andy 2007-04-08 18:17:35 UTC
I noticed an undesired behavior after a second restart of the apache, after I installed php-java-bridge (you need to call '/etc/init.d/apache2 restart' twice to get it properly restarted):
# /etc/init.d/apache2 restart
 * Stopping apache2 ...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName                                                      [ ok ]
 * Starting apache2 ...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs                                                      [ !! ]

 # /etc/init.d/apache2 restart
 * Starting apache2 ...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName                                                 [ ok ]


It seems to be caused by that extension since when 'extension=java.so' is commented out in /etc/php/apache2-php5/ext/java.ini, the restart proceeds without problems.
Comment 13 Ikar 2007-05-04 20:41:10 UTC
overlayed dev-php5/php-java-bridge-3.1.8 works fine for me even with more complicated apps.

But i have a similar problem, every second apache restart (with java extension enabled) gives me:

# /etc/init.d/apache2 restart
 * Service apache2 stopping
 * Service apache2 stopped
 * Service apache2 starting
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs                                                                                                     [ !! ]
 * ERROR:  apache2 failed to start

without java.so extension, there are no problems...

I'm not sure, but with older php-java-bridge, i used to have the same problem (maybe with different error code), but i haven't tried to disable java plugin with older php-java-bridge=(



(In reply to comment #12)
> I noticed an undesired behavior after a second restart of the apache, after I
> installed php-java-bridge (you need to call '/etc/init.d/apache2 restart' twice
> to get it properly restarted):
> # /etc/init.d/apache2 restart
>  * Stopping apache2 ...
> apache2: Could not determine the server's fully qualified domain name, using
> 127.0.0.1 for ServerName                                                      [
> ok ]
>  * Starting apache2 ...
> apache2: Could not determine the server's fully qualified domain name, using
> 127.0.0.1 for ServerName
> (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> Unable to open logs                                                      [ !! ]
> 
>  # /etc/init.d/apache2 restart
>  * Starting apache2 ...
> apache2: Could not determine the server's fully qualified domain name, using
> 127.0.0.1 for ServerName                                                 [ ok ]
> 
> 
> It seems to be caused by that extension since when 'extension=java.so' is
> commented out in /etc/php/apache2-php5/ext/java.ini, the restart proceeds
> without problems.
> 
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-11-09 14:32:38 UTC
Someone test the 4.3.0 ebuild in Bug 177693, please. If it works, we'll commit it. If noone volunteers, this thing is gonna get package.masked.

WONTFIX here.