From:             [EMAIL PROTECTED]
Operating system: NetBSD/Alpha 1.5W
PHP version:      4.0CVS-2001-08-06
PHP Bug Type:     *Compile Issues
Bug description:  undefined reference to gdImageGifCtx

# uname -a
NetBSD ns01 1.5W NetBSD 1.5W (ALPHA-$Revision: $) #5: Mon Jun 25
22:34:09 CDT 2001
tom@ns01:/usr/src/sys/arch/alpha/compile/ns01 alpha

rm config.cache 
export LIBS="-lm -lc -lintl -lX11" && \
export LDFLAGS="-Wl,-export-dynamic \
  -Wl,-R/usr/lib -L/usr/lib \
  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib \
  -Wl,-R/usr/local/lib -L/usr/local/lib \
  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib"

./configure \
--with-apxs \
--disable-pear \
--with-gd=/usr/pkg \
--with-png-dir=/usr/pkg \
--with-jpeg-dir=/usr/pkg \
--with-freetype-dir=/usr/pkg \
--with-xpm-dir=/usr/X11R6 \
--with-pgsql=/usr/local \
--with-mysql=/usr/local \
--enable-libgcc \
--with-gnu-ld \
--with-zlib \
--with-system-regex \
--with-config-file-path=/usr/local/etc \
--enable-track-vars \
--enable-force-cgi-redirect \
--enable-discard-path \
--enable-memory-limit \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--with-ttf=/usr/pkg \

configure status hangs at:
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no
checking whether to include GNU gettext support... no
checking for gmp support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
./configure: 23508: Syntax error: redirection unexpected

# tail -20 config.log
/home/staffs/t/tom/work/php/php4-current/php4/configure:22183: undefined
reference to `gdImageGif
/home/staffs/t/tom/work/php/php4-current/php4/configure:22183: undefined
reference to `gdImageGif
collect2: ld returned 1 exit status
configure: failed program was:
#line 22176 "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 gdImageGifCtx();

int main() {

; return 0; }
configure:22274: checking whether to include GNU gettext support
configure:22697: checking for gmp support
configure:22977: checking for Hyperwave support
configure:23146: checking for ICAP support
configure:23465: checking for iconv support
Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to