php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3460 compile crash
Submitted: 2000-02-11 21:22 UTC Modified: 2000-02-23 09:18 UTC
From: mikel at ocsny dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.14 OS: freebsd 3.4
Private report: No CVE-ID: None
 [2000-02-11 21:22 UTC] mikel at ocsny dot com
during a build of apache13-php3 with gd
apache 1.3.11
php 3.0.14
gd 1.7.3
boms out with the follow dumped into the configure.rej file

any help is appreciated...would even be willing to give access to the server to clear this up...if necessary...

cheers,
mikel


***************
*** 5338,5343 ****
    echo "$ac_t""no" 1>&6
  fi
  
        echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
  echo "configure:5343: checking for gdImageGif in -lgd" >&5
  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
--- 5338,5458 ----
    echo "$ac_t""no" 1>&6
  fi
  
+         old_LIBS=$LIBS
+         LIBS="$LIBS -lpng -lz"
+         echo $ac_n "checking for gdImageCreateFromPng in -lgd""... $ac_c" 1>&6
+ echo "configure:5345: checking for gdImageCreateFromPng in -lgd" >&5
+ ac_lib_var=`echo gd'_'gdImageCreateFromPng | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lgd  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 5353 "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 gdImageCreateFromPng();
+ 
+ int main() {
+ gdImageCreateFromPng()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s
conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+   cat >> confdefs.h <<\EOF
+ #define HAVE_GD_PNG 1
+ EOF
+ 
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+       echo $ac_n "checking for gdImageColorResolve in -lgd""... $ac_c" 1>&6
+ echo "configure:5388: checking for gdImageColorResolve in -lgd" >&5
+ ac_lib_var=`echo gd'_'gdImageColorResolve | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lgd  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 5396 "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 gdImageColorResolve();
+ 
+ int main() {
+ gdImageColorResolve()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s
conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+    cat >> confdefs.h <<\EOF
+ #define HAVE_LIBGD162 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+         LIBS=$old_LIBS
+         if test "$ac_cv_lib_gd_gdImageCreateFromPng" = "yes"; then
+               
+   
+   unique=`echo $ac_n "png$ac_c" | tr -c -d a-zA-Z0-9`
+   cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+   if test -n "$unique" && test "`eval $cmd`" = "" ; then
+     eval "LIBRARY$unique=set"
+     
+     EXTRA_LIBS="$EXTRA_LIBS -lpng"
+   
+   fi
+ 
+ 
+               
+   
+   unique=`echo $ac_n "z$ac_c" | tr -c -d a-zA-Z0-9`
+   cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+   if test -n "$unique" && test "`eval $cmd`" = "" ; then
+     eval "LIBRARY$unique=set"
+     
+     EXTRA_LIBS="$EXTRA_LIBS -lz"
+   
+   fi
+ 
+ 
+         fi
        echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
  echo "configure:5343: checking for gdImageGif in -lgd" >&5
  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
***************
*** 5521,5526 ****
        ac_cv_lib_gd_gdImageLine=yes
        ;;
      *)
        test -f $withval/include/gd1.5/gd.h && GD_INCLUDE="$withval/include/gd1.5"
        test -f $withval/include/gd1.4/gd.h && GD_INCLUDE="$withval/include/gd1.4"
        test -f $withval/include/gd1.3/gd.h && GD_INCLUDE="$withval/include/gd1.3"
--- 5636,5643 ----
        ac_cv_lib_gd_gdImageLine=yes
        ;;
      *)
+       test -f $withval/include/gd1.7/gd.h && GD_INCLUDE="$withval/include/gd1.7"
+       test -f $withval/include/gd1.6/gd.h && GD_INCLUDE="$withval/include/gd1.6"
        test -f $withval/include/gd1.5/gd.h && GD_INCLUDE="$withval/include/gd1.5"
        test -f $withval/include/gd1.4/gd.h && GD_INCLUDE="$withval/include/gd1.4"
        test -f $withval/include/gd1.3/gd.h && GD_INCLUDE="$withval/include/gd1.3"
***************
*** 5535,5546 ****
  
        test -f $withval/lib/libgd.a && GD_LIB="$withval/lib"
        test -f $withval/lib/gd/libgd.a && GD_LIB="$withval/lib/gd"
        test -f $withval/lib/gd1.6/libgd.a && GD_LIB="$withval/lib/gd1.6"
        test -f $withval/lib/gd1.5/libgd.a && GD_LIB="$withval/lib/gd1.5"
        test -f $withval/lib/gd1.4/libgd.a && GD_LIB="$withval/lib/gd1.4"
        test -f $withval/lib/gd1.3/libgd.a && GD_LIB="$withval/lib/gd1.3"
        test -f $withval/libgd.a && GD_LIB="$withval"
        test -f $withval/gd/libgd.a && GD_LIB="$withval/gd"
        test -f $withval/gd1.6/libgd.a && GD_LIB="$withval/gd1.6"
        test -f $withval/gd1.5/libgd.a && GD_LIB="$withval/gd1.5"
        test -f $withval/gd1.4/libgd.a && GD_LIB="$withval/gd1.4"
--- 5652,5665 ----
  
        test -f $withval/lib/libgd.a && GD_LIB="$withval/lib"
        test -f $withval/lib/gd/libgd.a && GD_LIB="$withval/lib/gd"
+       test -f $withval/lib/gd1.7/libgd.a && GD_LIB="$withval/lib/gd1.7"
        test -f $withval/lib/gd1.6/libgd.a && GD_LIB="$withval/lib/gd1.6"
        test -f $withval/lib/gd1.5/libgd.a && GD_LIB="$withval/lib/gd1.5"
        test -f $withval/lib/gd1.4/libgd.a && GD_LIB="$withval/lib/gd1.4"
        test -f $withval/lib/gd1.3/libgd.a && GD_LIB="$withval/lib/gd1.3"
        test -f $withval/libgd.a && GD_LIB="$withval"
        test -f $withval/gd/libgd.a && GD_LIB="$withval/gd"
+       test -f $withval/gd1.7/libgd.a && GD_LIB="$withval/gd1.7"
        test -f $withval/gd1.6/libgd.a && GD_LIB="$withval/gd1.6"
        test -f $withval/gd1.5/libgd.a && GD_LIB="$withval/gd1.5"
        test -f $withval/gd1.4/libgd.a && GD_LIB="$withval/gd1.4"
***************
*** 5655,5660 ****
    echo "$ac_t""no" 1>&6
  fi
  
          echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
  echo "configure:5660: checking for gdImageGif in -lgd" >&5
  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
--- 5774,5894 ----
    echo "$ac_t""no" 1>&6
  fi
  
+         old_LIBS=$LIBS
+         LIBS="$LIBS -lpng -lz"
+               echo $ac_n "checking for gdImageCreateFromPng in -lgd""... $ac_c" 1>&6
+ echo "configure:5781: checking for gdImageCreateFromPng in -lgd" >&5
+ ac_lib_var=`echo gd'_'gdImageCreateFromPng | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lgd  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 5789 "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 gdImageCreateFromPng();
+ 
+ int main() {
+ gdImageCreateFromPng()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s
conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+   cat >> confdefs.h <<\EOF
+ #define HAVE_GD_PNG 1
+ EOF
+ 
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+         echo $ac_n "checking for gdImageColorResolve in -lgd""... $ac_c" 1>&6
+ echo "configure:5824: checking for gdImageColorResolve in -lgd" >&5
+ ac_lib_var=`echo gd'_'gdImageColorResolve | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lgd  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 5832 "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 gdImageColorResolve();
+ 
+ int main() {
+ gdImageColorResolve()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s
conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+    cat >> confdefs.h <<\EOF
+ #define HAVE_LIBGD162 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+         LIBS=$old_LIBS
+               if test "$ac_cv_lib_gd_gdImageCreateFromPng" = "yes"; then
+                 
+   
+   unique=`echo $ac_n "png$ac_c" | tr -c -d a-zA-Z0-9`
+   cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+   if test -n "$unique" && test "`eval $cmd`" = "" ; then
+     eval "LIBRARY$unique=set"
+     
+     EXTRA_LIBS="$EXTRA_LIBS -lpng"
+   
+   fi
+ 
+ 
+                 
+   
+   unique=`echo $ac_n "z$ac_c" | tr -c -d a-zA-Z0-9`
+   cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+   if test -n "$unique" && test "`eval $cmd`" = "" ; then
+     eval "LIBRARY$unique=set"
+     
+     EXTRA_LIBS="$EXTRA_LIBS -lz"
+   
+   fi
+ 
+ 
+               fi
          echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
  echo "configure:5660: checking for gdImageGif in -lgd" >&5
  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
***************
*** 5944,5949 ****
    echo "$ac_t""no" 1>&6
  fi
  
    echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
  echo "configure:5949: checking for gdImageGif in -lgd" >&5
  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
--- 6178,6298 ----
    echo "$ac_t""no" 1>&6
  fi
  
+   old_LIBS=$LIBS
+   LIBS="$LIBS -lpng -lz"
+   echo $ac_n "checking for gdImageCreateFromPng in -lgd""... $ac_c" 1>&6
+ echo "configure:6185: checking for gdImageCreateFromPng in -lgd" >&5
+ ac_lib_var=`echo gd'_'gdImageCreateFromPng | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lgd  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 6193 "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 gdImageCreateFromPng();
+ 
+ int main() {
+ gdImageCreateFromPng()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s
conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+   cat >> confdefs.h <<\EOF
+ #define HAVE_GD_PNG 1
+ EOF
+ 
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+   echo $ac_n "checking for gdImageColorResolve in -lgd""... $ac_c" 1>&6
+ echo "configure:6228: checking for gdImageColorResolve in -lgd" >&5
+ ac_lib_var=`echo gd'_'gdImageColorResolve | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+ LIBS="-lgd  $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 6236 "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 gdImageColorResolve();
+ 
+ int main() {
+ gdImageColorResolve()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s
conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_lib_$ac_lib_var=no"
+ fi
+ rm -f conftest*
+ LIBS="$ac_save_LIBS"
+ 
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+    cat >> confdefs.h <<\EOF
+ #define HAVE_LIBGD162 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+   LIBS=$old_LIBS
+   if test "$ac_cv_lib_gd_gdImageCreateFromPng" = "yes"; then
+       
+   
+   unique=`echo $ac_n "png$ac_c" | tr -c -d a-zA-Z0-9`
+   cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+   if test -n "$unique" && test "`eval $cmd`" = "" ; then
+     eval "LIBRARY$unique=set"
+     
+     EXTRA_LIBS="$EXTRA_LIBS -lpng"
+   
+   fi
+ 
+ 
+       
+   
+   unique=`echo $ac_n "z$ac_c" | tr -c -d a-zA-Z0-9`
+   cmd="echo $ac_n \"\$LIBRARY$unique$ac_c\""
+   if test -n "$unique" && test "`eval $cmd`" = "" ; then
+     eval "LIBRARY$unique=set"
+     
+     EXTRA_LIBS="$EXTRA_LIBS -lz"
+   
+   fi
+ 
+ 
+   fi
    echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
  echo "configure:5949: checking for gdImageGif in -lgd" >&5
  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-23 09:18 UTC] sas at cvs dot php dot net
This is not a PHP bug. You should report this bug to FreeBSD's ports team.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 14 00:00:02 2026 UTC