php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20555 Compile failure
Submitted: 2002-11-21 20:00 UTC Modified: 2002-11-21 20:38 UTC
From: matt at haught dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2002-11-21 (dev) OS: FreeBSD 4.7-RELEASE
Private report: No CVE-ID: None
 [2002-11-21 20:00 UTC] matt at haught dot com
-- Snip from make output --
pto -lssl -lcrypt  -o sapi/cli/php
ext/gd/gdcache.lo: In function `gdCacheCreate':
ext/gd/gdcache.lo(.text+0x26): undefined reference to `pemalloc'
ext/gd/gdcache.lo: In function `gdCacheDelete':
ext/gd/gdcache.lo(.text+0x87): undefined reference to `pefree'
ext/gd/gdcache.lo(.text+0x99): undefined reference to `pefree'
ext/gd/gdcache.lo: In function `gdCacheGet':
ext/gd/gdcache.lo(.text+0x150): undefined reference to `pemalloc'
*** Error code 1

Stop in /home/matt/src/php4.

------ Config -----
'./configure' \
'--disable-all' \
'--enable-posix' \
'--enable-session' \
'--enable-xml' \
'--enable-inline-optimization' \
'--with-apxs2=/chroot/sbin/apxs' \
'--with-config-file-path=/etc' \
'--enable-versioning' \
'--with-regex=system' \
'--enable-track-vars' \
'--with-zlib' \
'--with-gd=/usr/local' \
'--enable-gd-native-ttf' \
'--with-pgsql=/usr/local' \
'--with-openssl=/usr' \
'--with-xml=/usr/local' \
'--with-expat-dir=/usr/local' \
'--enable-trans-sid' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr/local' \
'--with-freetype-dir=/usr/local' \
'--prefix=/chroot/www' \
'--with-pcre-regex' \
'--disable-tokenizer' \
'--disable-ctype' \
'--disable-mbstring' \
'--disable-mbregex' \
'--enable-cli' \
'--without-mysql' \
'--without-mm' \
'--with-msession=/usr/local/'

I am using gd-2.0.1_3.  I had no problems with a build from around a week ago.  Could this be caused by the recent patch to ext/gd/gdcache.c (1.6)? 

--Matt

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-21 20:07 UTC] iliaa@php.net
If you add the 
#include "php.h"

to gdcache.c does the problem go away?
 [2002-11-21 20:25 UTC] matt at haught dot org
With the bundled gd, no problems.

With 
#include "php.h" 
and using my "external" gd now works.
 [2002-11-21 20:38 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Feb 04 23:00:01 2026 UTC