php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21466 configure bug in XSLT/Sablotron and Zip options
Submitted: 2003-01-06 11:25 UTC Modified: 2003-01-07 17:40 UTC
From: kopec at kopec dot sk Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 4.3.0 OS: RedHat Linux
Private report: No CVE-ID: None
 [2003-01-06 11:25 UTC] kopec at kopec dot sk
Hi guys,
I perhaps found a "mystery" bug in ./configure process...
check out when I try:

CFLAGS='-O2 -I/usr/local/ssl/include/openssl/' \
./configure \
--with-apache=../apache_1.3.27 \
--with-mysql \
--enable-track-vars \
--enable-ftp \
--with-gettext \
--with-imap=/usr/lib \
--with-pdflib=/usr/local \
--enable-static-pdflib \
--with-gd \
--with-tiff-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/include \
--enable-xslt \
--with-xslt-sablot \
--with-zip

I got an error message:
configure: error: zziplib module requires zzlib >= 0.10.6.

zzlib version 0.10.66 I has installed on my system in path:
/usr/local/lib

when I kick out options: --enable-xslt AND --with-xslt-sablot then the configure process done OK.

When kick out --with-zip AND leave there both --enable-xslt AND --with-xslt-sablot then the configure done OK again.

The problem is when together:
--enable-xslt \
--with-xslt-sablot \
--with-zip

On my home server RedHat 8.0 everything OK, on the production server RedHat 7.1 + upgrades I found this "bug".

Feedback please.

Regards

Lubo Kopacek, Slovakia

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 16:25 UTC] iliaa@php.net
When you get 'configure: error: zziplib module requires zzlib >= 0.10.6'
Open the file called config.log and look at the text at the very bottom of the file. There should be a reason indicating why test for zzlib had failed, please include that text in your reply.
 [2003-01-07 06:23 UTC] kopec at kopec dot sk
here is last 11 lines from config.log:

configure: failed program was:
#line 75949 "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 zzip_open();

int main() {
zzip_open()
; return 0; }
 [2003-01-07 08:46 UTC] iliaa@php.net
Could you please include 10 more lines or so that appear above the lines you've already pasted.
 [2003-01-07 13:28 UTC] kopec at kopec dot sk
I paste more then last 21 lines 'cause there's lot of noticies about libpdf.so

int main() {
SablotGetOptions()
; return 0; }
configure:74894: checking for YAZ support
configure:75407: checking whether to include YP support
configure:75875: checking for ZIP support
configure:75941: checking for zzip_open in -lzzip
configure:75960: gcc -o conftest -O2 -I/usr/local/ssl/include/openssl/
    -L/usr/lib
    -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lzzip  -lsablot -liconv -lexpat -lpdf -lz -ltiff -lpng -ljpeg -lcrypt -lpam -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl  -lcrypt 1>&5
/usr/lib/libpdf.so: undefined reference to `atexit@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fgetc@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `__strtod_internal@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `ldiv@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `vsprintf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strchr@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `feof@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `ungetc@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `localtime@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strcmp@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fprintf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `getenv@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fflush@@GLIBC_2.0'
/usr/local/lib/libsablot.so: undefined reference to `__rtti_user'
/usr/lib/libpdf.so: undefined reference to `memchr@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `ftell@@GLIBC_2.0'
/usr/local/lib/libsablot.so: undefined reference to `__rtti_si'
/usr/lib/libpdf.so: undefined reference to `___brk_addr@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `malloc@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fread@@GLIBC_2.0'
/usr/local/lib/libsablot.so: undefined reference to `__throw'
/usr/lib/libpdf.so: undefined reference to `strpbrk@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `stdout@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `stderr@@GLIBC_2.0'
/usr/local/lib/libsablot.so: undefined reference to `terminate(void)'
/usr/lib/libpdf.so: undefined reference to `__sigsetjmp@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `vfprintf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fseek@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `setbuf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `time@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fgets@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strstr@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `longjmp@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `__strtol_internal@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `qsort@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `__ctype_toupper@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strncmp@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `realloc@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strcat@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `__environ@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `memcpy@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fclose@@GLIBC_2.1'
/usr/local/lib/libsablot.so: undefined reference to `__eh_pc'
/usr/lib/libpdf.so: undefined reference to `__curbrk@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `exit@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `calloc@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `sscanf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `free@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `memset@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `__ctype_b@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strncpy@@GLIBC_2.0'
/usr/local/lib/libsablot.so: undefined reference to `__rtti_class'
/usr/lib/libpdf.so: undefined reference to `fopen@@GLIBC_2.1'
/usr/lib/libpdf.so: undefined reference to `sprintf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `fwrite@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `_IO_getc@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `modf@@GLIBC_2.0'
/usr/lib/libpdf.so: undefined reference to `strcpy@@GLIBC_2.0'
configure: failed program was:
#line 75949 "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 zzip_open();

int main() {
zzip_open()
; return 0; }
 [2003-01-07 17:40 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Looks like you pdf library /usr/lib/libpdf.so is the cause of the problem, removing '--with-pdflib=/usr/local' from the configure line should solve the problem.
Given the provided information I must say that this is not a PHP bug but rather a problem with you library.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC