Solaris 8
Gcc 3.0.3
pdflib 4.0.2
java j2sdk1_3_1_03
php 4.1.2
This make will the config shown will fail
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/httpd/conf \
--enable-track-vars \
--with-java=/usr/j2sdk1_3_1_03 \
--enable-bcmath=yes \
--enable-sockets \
--disable-debug \
--enable-memory-limit=yes \
--enable-calendar \
--enable-magic quotes \
--with openssl=/usr/local/ssl \
--with-png-dir=/usr/local \
--with-pdflib=/usr/local \
--with-zlib
/bin/sh /usr/local/build/php-4.1.2/libtool --silent --mode=compile gcc -I. -I/usr/local/build/php-4.1.2/ext/java -I/usr/local/build/php-4.1.2/main -I/usr/local/build/php-4.1.2 -I/usr/local/apache/include -I/usr/local/build/php-4.1.2/Zend -I/usr/local/ssl/include -I/usr/local/build/php-4.1.2/ext/mysql/libmysql -I/usr/local/include -I/usr/local/build/php-4.1.2/ext/xml/expat -I/usr/j2sdk1_3_1_03/include -I/usr/j2sdk1_3_1_03/include/solaris -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208108 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT -DSHARED_CORE -I/usr/local/build/php-4.1.2/TSRM -g -O2 -prefer-pic -DJNI_12 -D_REENTRANT '-DJAVALIB="/usr/j2sdk1_3_1_03/jre/lib/sparc/libjava.so"' -c java.c && touch java.slo
java.c: In function jvm_create':
java.c:160: parse error before '*' token
java.c:192:JNI_CreateVM' undeclared (first use in this function)
java.c:192: (Each undeclared identifier is reported only once
java.c:192: for each function it appears in.)
java.c:192: parse error before "JNICALL"
java.c:193: type name' declared as function returning a function
java.c:193: cast specifies function type
java.c: At top level:
java.c:650: syntax error before "void"
java.c:664: syntax error before "void"
java.c:672: syntax error before "void"
java.c:680: syntax error before "void"
java.c:688: syntax error before "void"
java.c:711: syntax error before "void"
java.c:717: syntax error before "jlong"
java.c:727: syntax error before "jlong"
java.c:738: syntax error before "jlong"
java.c:751: syntax error before "void"
java.c:759: syntax error before "void"
make[3]: *** [java.slo] Error 1
make[3]: Leaving directory/usr/local/build/php-4.1.2/ext/java'
make[2]: [all-recursive] Error 1
make[2]: Leaving directory /usr/local/build/php-4.1.2/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/usr/local/build/php-4.1.2/ext'
make: *** [all-recursive] Error 1
If I take --with-pdflib=/usr/local out
it will make
I built pdflib with
./configure --enable-cxx --without-java -with-java=no --enable-shared-pdflib
For your convenience, here's a summary of configure's results:
Support for shared libraries: yes
C++ language binding for PDFlib: yes
Java language binding for PDFlib: no
Perl language binding for PDFlib: yes
Python language binding for PDFlib: yes
Tcl language binding for PDFlib: yes
PHP language binding for PDFlib: yes (see bind/php/readme.txt for details)
PDF import library (PDI): no
Any help ?
Thanks
-pete