Problem compiling --with-java
| From: | Tuomas Hiukkanen | Date: | Thu, 23 Nov 2000 14:30:59 +0000 |
| Subject: | Problem compiling --with-java | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-900@lists.php.net to get a copy of this message | ||
I'm having a problem configuring and compiling PHP 4.0.3pl1 with Sun JDK 1.3.0.
The lines indicating the error from debug.log:
CONFIGURE: './configure' '--with-apache=../apache_1.3.14' '--with-mysql=/usr/local/mysql' '--with-ftp' '--enable-track-vars' '--enable-safe-mode' '--with-config-file-path=/usr/local/apache/conf' '--with-xml' '--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' '--with-zlib=/usr' '--with-config-file-path=/usr/local/apache/conf' '--with-gd' '--with-ttf' '--with-imap-ssl=../imap' '--with-java=/usr/jdk1.3.0'
CC: gcc CFLAGS: -g -O2CPPFLAGS: CXX: CXXFLAGS:
INCLUDES: -I/usr/src/apache_1.3.14/src/include -I/usr/src/apache_1.3.14/src/os/unix -I$(top_builddir)/Zend -I$(top_srcdir) -I/usr/local/include -I/usr/local/include/freetype -I/usr/local/mysql/include/mysql LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/jdk1.3.0/jre/lib/i386/classic -L/usr/jdk1.3.0/jre/lib/i386/classic -Wl,-rpath,/usr/jdk1.3.0/jre/lib/i386/native_threads -L/usr/jdk1.3.0/jre/lib/i386/native_threads -Wl,-rpath,/usr/jdk1.3.0/jre/lib/i386 -L/usr/jdk1.3.0/jre/lib/i386 -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql LIBS: -lmysqlclient -lttf -ljpeg -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib -ljpegDLIBS:
SAPI: apache PHP_RPATHS: /usr/local/lib /usr/jdk1.3.0/jre/lib/i386/classic /usr/jdk1.3.0/jre/lib/i386/native_threads /usr/jdk1.3.0/jre/lib/i386 /usr/local/mysql/lib/mysql uname -a: Linux unix 2.2.17 #11 SMP Thu Sep 28 08:22:33 EEST 2000 i686 unknowngcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/jdk1.3.0/jre/lib/i386/classic -L/usr/jdk1.3.0/jre/lib/i386/classic -Wl,-rpath,/usr/jdk1.3.0/jre/lib/i386/native_threads -L/usr/jdk1.3.0/jre/lib/i386/native_threads -Wl,-rpath,/usr/jdk1.3.0/jre/lib/i386 -L/usr/jdk1.3.0/jre/lib/i386 -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -lmysqlclient -lttf -ljpeg -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/lib -ljpeg 1>&5 /usr/jdk1.3.0/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_post' /usr/jdk1.3.0/jre/lib/i386/libjava.so: undefined reference to `jdk_waitpid' /usr/jdk1.3.0/jre/lib/i386/libjava.so: undefined reference to `jdk_pthread_sigmask' /usr/jdk1.3.0/jre/lib/i386/libjava.so: undefined reference to `fork1' /usr/jdk1.3.0/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_wait' /usr/jdk1.3.0/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_init' collect2: ld returned 1 exit status The setup compiles and runs fine without JDK. Any help, tips and experiences about the subject are very much appreciated :). Regards, Tuomas Hiukkanen <th@synidex.fi>