From: <php...@li...> - 2006-06-09 06:08:28
|
Hi, I've played with php-java-bridge on Linux (Ubuntu) and got everything working really quick. It's a nice piece of work. Now I have to get it working on Solaris... I tried to build php-java-bridge_3.0.8.3 on Solaris 10. I got all the required tools (versions below) and ./configure seemed to work ok. make proceeds for a while, then: ---make output start--- make[1]: Entering directory `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR="\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\"" -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD -MP -MF ".deps/natcJavaBridge.Tpo" -c -o natcJavaBridge.lo natcJavaBridge.c; \ then mv -f ".deps/natcJavaBridge.Tpo" ".deps/natcJavaBridge.Plo"; else rm -f ".deps/natcJavaBridge.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -fPIC -DPIC -o .libs/natcJavaBridge.o gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -o natcJavaBridge.o >/dev/null 2>&1 /bin/bash ./libtool --mode=link gcc -g -O2 -o libnatcJavaBridge.la -rpath /download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules -shared -avoid-version -prefer-pic natcJavaBridge.lo -lsocket -lrt gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o -lsocket -lrt -lc false cru .libs/libnatcJavaBridge.a natcJavaBridge.o make[1]: *** [libnatcJavaBridge.la] Error 1 make[1]: Leaving directory `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' make: *** [/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules/libnatcJavaBridge.la] Error 2 ---make output end--- Any idea how I can get this going? Here are my tool versions: ---versions start--- java version "1.5.0_06" gcc (GCC) 4.0.2 Server version: Apache/2.2.0 php-config 5.1.2 GNU Make 3.81 autoconf (GNU Autoconf) 2.59 automake (GNU automake) 1.8.3 ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) ---versions end--- Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-09 15:02:49
|
I should also mention, this is on Solaris 10 U1 x86. Cheers, Pat php...@li... wrote: > Hi, > > I've played with php-java-bridge on Linux (Ubuntu) and got everything > working really quick. It's a nice piece of work. Now I have to get it > working on Solaris... > > I tried to build php-java-bridge_3.0.8.3 on Solaris 10. I got all the > required tools (versions below) and ./configure seemed to work ok. make > proceeds for a while, then: > > ---make output start--- > > make[1]: Entering directory > `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' > if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. > -DEXTENSION_DIR="\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\"" > -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo > -MD -MP -MF ".deps/natcJavaBridge.Tpo" -c -o natcJavaBridge.lo > natcJavaBridge.c; \ > then mv -f ".deps/natcJavaBridge.Tpo" > ".deps/natcJavaBridge.Plo"; else rm -f ".deps/natcJavaBridge.Tpo"; exit > 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I. > -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" > -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD > -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -fPIC -DPIC -o > .libs/natcJavaBridge.o > gcc -DHAVE_CONFIG_H -I. -I. -I. > -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" > -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD > -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -o natcJavaBridge.o > >/dev/null 2>&1 > /bin/bash ./libtool --mode=link gcc -g -O2 -o libnatcJavaBridge.la > -rpath /download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules > -shared -avoid-version -prefer-pic natcJavaBridge.lo -lsocket -lrt > gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o > .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o -lsocket -lrt -lc > false cru .libs/libnatcJavaBridge.a natcJavaBridge.o > make[1]: *** [libnatcJavaBridge.la] Error 1 > make[1]: Leaving directory > `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' > make: *** > [/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules/libnatcJavaBridge.la] > Error 2 > > ---make output end--- > > Any idea how I can get this going? > > Here are my tool versions: > > ---versions start--- > > java version "1.5.0_06" > gcc (GCC) 4.0.2 > Server version: Apache/2.2.0 > php-config 5.1.2 > GNU Make 3.81 > autoconf (GNU Autoconf) 2.59 > automake (GNU automake) 1.8.3 > ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) > > ---versions end--- > > Cheers, > > Pat > -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-09 18:16:21
|
Hi, > > gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o > > .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o > -lsocket -lrt -lc > > false cru .libs/libnatcJavaBridge.a looks like "ar" is not installed or not in the path. -- If I remember correctly gnu gcc needs the gnu ar or a special flag, if you want to use the solaris ar. I think we should see the failure in the config.log (or config.status?). Can you please open a ticket and append the config.log at the end of the ticket? Please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 I will check this issue on monday. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-10 00:58:20
|
Hi Jost, Thanks for the quick reply. I had GNU ar, it just wasn't on my path. I pathed it and the make completed successfully. I've opened a ticket and attached config.log as requested. I also attached config.status in case that is useful. Cheers, Pat > Hi, > >>> gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o >>> .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o >>> >> -lsocket -lrt -lc >> >>> false cru .libs/libnatcJavaBridge.a >>> > > looks like "ar" is not installed or not in the path. > -- If I remember correctly gnu gcc needs the gnu ar or > a special flag, if you want to use the solaris ar. I > think we should see the failure in the config.log (or > config.status?). > > Can you please open a ticket and append the config.log > at the end of the ticket? Please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 > > I will check this issue on monday. > > > Regards, > Jost Boekemeier > -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |