-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 15 Sep 2003 17:12:02 +1000, Serg B. wrote: > 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 You're missing an entry for the java libraries in the linker search path. An argument similar to -L/usr/local/javasdk/somewhere in the linker command-line before -ljava. /etc/ld.so.conf is not for "ld", but for the dynamic linker. Unfortunately, you didn't quote the rest of the error, so maybe only your --with-java=/somewhere argument was wrong. - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/ZbP+0iMVcrivHFQRAj32AJ96hsR8jGkr77/qmXPMd8PCfL161ACfSB2s nHJOtmJtTx5JELXLBPCRIA0= =k6tV -----END PGP SIGNATURE----- -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list