Re: Make fails when building with gd on Mac OS 10.4

From: Date: Thu, 05 Jul 2007 20:37:46 +0000
Subject: Re: Make fails when building with gd on Mac OS 10.4
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-18110@lists.php.net to get a copy of this message
Paul Blondé wrote:
Looks like a missing header file, or one that does not match the rest of the package, at first glance. I'm getting the same errors using the included gd. Is this a problem with the php distribution, or the php dist + Mac OS 10.4?
config: ---------
       ./configure \
       --with-gd \
       --with-png-dir=/opt/local \
       --with-jpeg-dir=/opt/local \
       --with-freetype-dir=/opt/local \
       --enable-gd-native-ttf \
       --enable-ftp \
       --with-apxs=/usr/local/apache/bin/apxs \
       --with-pgsql \
       --with-xml \
       --enable-mbstring \
       --enable-mbregex \
       --enable-exif \
       --with-openssl \
       --with-openssl-dir=/usr/local/ssl \
       --with-pear --with-curl=/usr/local/lib \
       --with-mysql=/usr/local/mysql \
       --enable-imap \
       --with-imap=/usr/local/imap-2004a \
       --with-imap-ssl=/usr/local/imap-2004a \
       --with-zlib \
       --with-zlib-dir=/opt/local/lib
lxml2 -lz -liconv -lm -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so /usr/bin/ld: Undefined symbols: _gdFontCacheShutdown _gdImageAlphaBlending _gdImageColorAllocateAlpha _gdImageColorClosestAlpha _gdImageColorExactAlpha _gdImageColorResolveAlpha _gdImageCopyResampled _gdImageCreateFromGif _gdImageCreateFromGifCtx _gdImageCreateTrueColor _gdImageFilledArc _gdImageFilledEllipse _gdImageGifCtx _gdImagePngCtxEx _gdImageSaveAlpha _gdImageSetThickness _gdImageStringFTEx _gdImageTrueColorToPalette _gdNewDynamicCtxEx collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1
-----Original Message----- From: Randall Perry [mailto:listsub@systame.com] Sent: Saturday, June 23, 2007 1:54 PM To: php-install@lists.php.net Subject: [PHP-INSTALL] Make fails when building with gd on Mac OS 10.4 I've installed gd 2.0.34 via macports. Config goes ok with php 5.2.3, but make fails with these errors: /usr/bin/ld: Undefined symbols: _gdFontCacheShutdown _gdImageAlphaBlending _gdImageColorAllocateAlpha _gdImageColorClosestAlpha _gdImageColorExactAlpha _gdImageColorResolveAlpha _gdImageCopyResampled _gdImageCreateFromGif _gdImageCreateFromGifCtx _gdImageCreateTrueColor _gdImageFilledArc _gdImageFilledEllipse _gdImageGifCtx _gdImagePngCtxEx _gdImageSaveAlpha _gdImageSetThickness _gdImageStringFTEx _gdImageTrueColorToPalette _gdNewDynamicCtxEx collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 Anyone know what the problem is? Below is my config command:
        ./configure \
        --with-gd=/opt/local \
        --with-png-dir=/opt/local \
        --with-jpeg-dir=/opt/local \
        --with-freetype-dir=/opt/local \
        --enable-ftp \
        --with-apxs=/usr/local/apache/bin/apxs \
        --with-pgsql \
        --with-xml \
        --enable-mbstring \
        --enable-mbregex \
        --enable-exif \
        --with-openssl \
        --with-openssl-dir=/usr/local/ssl \
        --with-pear --with-curl=/usr/local/lib \
        --with-mysql=/usr/local/mysql \
        --enable-imap \
        --with-imap=/usr/local/imap-2004a \
        --with-imap-ssl=/usr/local/imap-2004a \
        --with-zlib \
        --with-zlib-dir=/opt/local/lib
-- Randall Perry sysTame Xserve Web Hosting/Co-location/Leasing QuickTime Streaming Mac Consulting/Sales http://www.systame.com/

« previous php.install (#18110) next »