phpbar.de logo

Mailinglisten-Archive

[php] PHP3.0.15 & PDFlib 3.0

[php] PHP3.0.15 & PDFlib 3.0

STYLIX | Glenn Kusardi gkmail_(at)_stylix.de
Sun, 9 Apr 2000 19:45:33 +0200


Hallo,

ich versuche PHP-3.0.15 mit PDFlib 3.0 aufzusetzen.

Dabei habe ich folgende Zeile gebraucht um PHP zu konfigurieren:
./configure \
    --with-mysql \
    --enable-track-vars \
    --with-pdflib=/usr/local \
    --with-zlib \
    --with-jpeg-dir \
    --with-tiff-dir \
    --with-apache=/usr/local/apache

Er gibt am Ende folgendes aus:
[...]
checking whether to include YP support... no
checking whether to include zlib support... yes
checking for gzgets in -lz... (cached) yes
checking whether to include pdflib support... yes
checking for libz needed by pdflib 2.0... already zlib support
checking for libjpeg (needed by pdflib 2.0)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for libtiff (needed by pdflib 2.0)... yes
checking for TIFFOpen in -ltiff... yes
checking for PDF_new in -lpdf... no
configure: error: Check if zlib libjpeg and libtiff has been found.  If not
specify --with-zlib-dir=<DIR> --with-jpeg-dir=<DIR>
and --with-tiff-dir=<DIR>.

Ich benütze --with-zlib weil bei einem --with-zlib-dir ein "checking whether
to include zlib support... no" kommt.

Ich kann mir die Fehlermeldungen irgendwie nicht erklären.. deswegen
config.log:

configure:11101: checking for PDF_new in -lpdf
configure:11120: gcc -o conftest -g -O2 \
     conftest.c -lpdf  -lpam -lm -ldl -lcr
/usr/local/lib/libpdf.so: undefined reference to `png_get_sBIT'
/usr/local/lib/libpdf.so: undefined reference to `png_set_strip_alpha'
/usr/local/lib/libpdf.so: undefined reference to `png_get_rowbytes'
/usr/local/lib/libpdf.so: undefined reference to `png_set_strip_16'
/usr/local/lib/libpdf.so: undefined reference to `png_create_read_struct'
/usr/local/lib/libpdf.so: undefined reference to `png_set_sig_bytes'
/usr/local/lib/libpdf.so: undefined reference to \
    `png_set_interlace_handling'
/usr/local/lib/libpdf.so: undefined reference to \
    `png_get_x_pixels_per_meter'
/usr/local/lib/libpdf.so: undefined reference to `png_get_valid'
/usr/local/lib/libpdf.so: undefined reference to `png_get_PLTE'
/usr/local/lib/libpdf.so: undefined reference to `png_get_IHDR'
/usr/local/lib/libpdf.so: undefined reference to `png_read_info'
/usr/local/lib/libpdf.so: undefined reference to `png_destroy_read_struct'
/usr/local/lib/libpdf.so: undefined reference to `png_check_sig'
/usr/local/lib/libpdf.so: undefined reference to `png_read_update_info'
/usr/local/lib/libpdf.so: undefined reference to `png_read_image'
/usr/local/lib/libpdf.so: undefined reference to `png_get_tRNS'
/usr/local/lib/libpdf.so: undefined reference to `png_create_info_struct'
/usr/local/lib/libpdf.so: undefined reference to \
    `png_get_y_pixels_per_meter'
/usr/local/lib/libpdf.so: undefined reference to \
    `png_get_pixel_aspect_ratio'
/usr/local/lib/libpdf.so: undefined reference to `png_set_shift'
/usr/local/lib/libpdf.so: undefined reference to `png_init_io'
collect2: ld returned 1 exit status
configure: failed program was:
#line 11109 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_new();

int main() {
PDF_new()
; return 0; }

Kennt jemand einen Tip?! Ich bin schon ein paar Mal auf das Problem
gestossen.. aber eine richtige Fehlerlösung habe ich dabei nicht gefunden.

Glenn Kusardi



php::bar PHP Wiki   -   Listenarchive