Hi All, I am trying to enable java support in php (php-4.2.2-17.2.src.rpm) so I: install the src.rpm, add --with-java=/usr.local/javasdk to the php.spec file (java is installed in /usr/local/javasdk)
add:
/usr/local/javasdk/jre/lib/i386 /usr/local/javasdk/jre/lib/i386/server to ld.so.conf run ldconf run ldd /usr/local/javasdk/jre/lib/i386/libverify.so (that gives the correct output) add java to path in /etc/profile (also works correctly)
then run rpmbild -v -ba SPEC/php.spec
and get this error::
----------------------------------------------------------------------------
...
-lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lttf -lfreetype -lpng -ljpeg -lz -lnsl -lresolv -lcrypt
/usr/bin/ld: cannot find -ljava
collect2: ld returned 1 exit status
make[3]: *** [java.la] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.57827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.57827 (%build)
[prompt]$
----------------------------------------------------------------------------
i have no idea how to fix it, every doc i red seems to have different information or just plain wrong ... so any help would be greatly appreciated.
Thanx Serg
_________________________________________________________________
Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp
-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list