| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [1999-07-01 11:22 UTC] steinm at cvs dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
I noticed today following error when I was compiling Apache 1.36 with PHP (and other third party modules): gcc -DSOLARIS2=251 -DMOD_SSL=203105 -DMOD_PERL -DUSE_PERL_SSI -I/usr/local/incl ude -DUSE_HSREGEX -DEAPI `./apaci` -L/usr/local/lib \ -o httpd buildmark.o modules.o modules/ssl/libssl.a modules/perl/libperl.a modules/php3/libphp3.a modules/extra/libextra.a modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lsmbvalid -R/usr/l ocal/lib -R/usr/local/pgsql/lib -Lmodules/php3 -L../modules/php3 -L../../modules /php3 -lmodphp3 -lpcre -L/usr/local/lib -lz -L/usr/local/li b -lz -L/usr/local/lib -lpdf -lm -lsocket -lnsl -lresolv -lsocket -lnsl -lssl -lcrypto -L/usr/local/lib /usr/local/lib/perl5/5.00502/sun4-solaris/auto/Dyn aLoader/DynaLoader.a -L/usr/local/lib/perl5/5.00502/sun4-solaris/CORE -lperl -ls ocket -lnsl -ldl -lm -lc -lcrypt -ldb /usr/local/lib/c-client.a -L/usr/local/l ib -lgd -L/usr/local/pgsql/lib -lpq -lldap -llber modules/php3/libphp3.a(pdf.o): In function `_free_pdf_doc': pdf.o(.text+0xc): undefined reference to `PDF_close_fp' make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/export/home0/jdx/apache_1.3.6/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/export/home0/jdx/apache_1.3.6' make: *** [build] Error 2 File pdf.c from PHP sources contains following few lines: static void _free_pdf_doc(PDF *pdf) { #if HAVE_PDFLIB2 PDF_close_fp(pdf); PDF_delete(pdf); #else PDF_close(pdf); #endif } Header file pdflib.h (from PDFlib2.0) doesn't contain declaration of PDF_close_fp(). Simple change PDF_close_fp() for PDF_close() guard against that annoying error but it isn't, IMHO, good job. :-) Regards, Jan