#21644 [Fbk->Csd]: PHP compile fails with PDFLIB

From: Date: Sun, 19 Jan 2003 00:44:46 +0000
Subject: #21644 [Fbk->Csd]: PHP compile fails with PDFLIB
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30532@lists.php.net to get a copy of this message
ID: 21644 User updated by: ekonopka@konopka.org Reported By: ekonopka@konopka.org -Status: Feedback +Status: Closed Bug Type: PDF related Operating System: Slackware Linux 2.8 PHP Version: 4.3.0 New Comment: Seemed to do it. I'm surprised it worked, but it did. Previous Comments: ------------------------------------------------------------------------ [2003-01-15 03:26:20] sniper@php.net Did you try with clean, unmodified PHP 4.3.0 sources? And try adding the path, use --with-pdflib=/usr/local ------------------------------------------------------------------------ [2003-01-14 20:00:30] ekonopka@konopka.org Same error messages. ------------------------------------------------------------------------ [2003-01-14 19:28:17] sniper@php.net Try WITHOUT the patch. ------------------------------------------------------------------------ [2003-01-14 18:48:50] ekonopka@konopka.org Using PHP 4.3.0 and PDFLIB 4.0.3 with the PHP 4.3.0 patch (pdf.c) I can't compile PHP. I build PDFLIB from source, copied the pdf.c and config.php-406+.m4 to the php-4.3.0/ext/pdf directory (the config to config.m4). Configured PHP with: ./configure --prefix=/opt/php --exec-prefix=/opt/php --with-mysql --with-apache=../apache_1.3.27 --with-pdflib Since PDFLIB base directory is /usr/local I didn't specify a PDFLIB path. It configures fine, but during the make I get (last few lines of output): ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /root/source/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of tempnam' is dangerous, better use mkstemp' main/internal_functions_cli.o: In function `php_startup_internal_extensions': /root/source/php-4.3.0/main/internal_functions_cli.c:69: undefined reference to `pdf_module_entry' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 If you need more output, let me know. I have never successfully built PHP with PDFLIB on all sorts of different platforms. I'm surprised other people have been able to. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21644&edit=1

« previous php.bugs (#30532) next »