mlrpc/xmlrpc_introspection.lo ext/xmlrpc/libxmlrpc/encodings.lo ext/xmlrpc/libxmlrpc/system_methods.lo ext/xmlrpc/libxmlrpc/xml_to_xmlrpc.lo ext/xmlrpc/libxmlrpc/queue.lo ext/xmlrpc/libxmlrpc/xml_element.lo ext/xmlrpc/libxmlrpc/xmlrpc.lo ext/xmlrpc/libxmlrpc/xml_to_soap.lo ext/xslt/xslt.lo ext/xslt/sablot.lo ext/yp/yp.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo ext/ncurses/ncurses.lo ext/ncurses/ncurses_fe.lo ext/ncurses/ncurses_functions.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lc-client -lssl -lcrypto -lnsl -lsablot -lexpat -lexpat -lswf -lhistory -lreadline -lncurses -lpanel -lncurses -lmysqlclient -lming -lm -lmhash -lmcrypt -lltdl -lcrypt -lpam -lgd -lX11 -lXpm -lpng -lz -ldb-4.1 -lndbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lxmlparse -lxmltok -lcrypt -o sapi/cli/php /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libc-client.a(osdep.o)(.text+0x9d9f): In function `ssl_onceonlyinit': : warning: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libswf.a(swfimage.o)(.text+0x672): In function `swf_definebitmap': : warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/gd/gd.o(.text+0x8228): In function `zm_deactivate_gd': : undefined reference to `gdFontCacheShutdown' collect2: ld returned 1
bash-2.05b# emerge info Portage 2.0.50-r1 (hardened-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-rc2) ================================================================= System uname: 2.6.4-rc2 i686 AMD Athlon(TM) XP 2600+ Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apache2 berkdb crypt dvd flash gd gd-external gtk imap libwww mozilla mysql nls opengl oss pam perl php pic python readline ssl tcltk tcpd tiff x86 xml zlib"
The error was: ine/readline.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lc-client -lssl -lcrypto -lnsl -lsablot -lexpat -lexpat -lswf -lhistory -lreadline -lncurses -lpanel -lncurses -lmysqlclient -lming -lm -lmhash -lmcrypt -lltdl -lcrypt -lpam -lgd -lX11 -lXpm -lpng -lz -ldb-4.1 -lndbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lxmlparse -lxmltok -lcrypt -o sapi/cli/php /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libc-client.a(osdep.o)(.text+0x9d9f): In function `ssl_onceonlyinit': : warning: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libswf.a(swfimage.o)(.text+0x672): In function `swf_definebitmap': : warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/gd/gd.o(.text+0x8228): In function `zm_deactivate_gd': : undefined reference to `gdFontCacheShutdown' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 !!! ERROR: dev-php/php-4.3.4-r4 failed. !!! Function php-sapi_src_compile, Line 453, Exitcode 2 !!! compile problem
try commenting out this line of php-sapi.eclass: "sed -i 's:gdFreeFontCache:gdFontCacheShutdown:' ${S}/ext/gd/gd.c" and please report your version of gd.
if I comment that line: xt/ncurses/ncurses_functions.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/readline/readline.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lc-client -lssl -lcrypto -lnsl -lsablot -lexpat -lexpat -lswf -lhistory -lreadline -lncurses -lpanel -lncurses -lmysqlclient -lming -lm -lmhash -lmcrypt -lltdl -lcrypt -lpam -lgd -lX11 -lXpm -lpng -lz -ldb-4.1 -lndbm -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lxmlparse -lxmltok -lcrypt -o sapi/cli/php /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libc-client.a(osdep.o)(.text+0x9d9f): In function `ssl_onceonlyinit': : warning: the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libswf.a(swfimage.o)(.text+0x672): In function `swf_definebitmap': : warning: the use of `mktemp' is dangerous, better use `mkstemp' ext/gd/gd.o(.text+0x8228): In function `zm_deactivate_gd': : undefined reference to `gdFreeFontCache' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 !!! ERROR: dev-php/php-4.3.4-r4 failed. !!! Function php-sapi_src_compile, Line 453, Exitcode 2 !!! compile problem bash-2.05b# gdlib-config --version 2.0.22 bash-2.05b#
wtf? have GD changed the symbol yet again?? please include the output from: strings /usr/lib/libgd.so.2.0.0 |grep FontCache gdlib-config --all
no, it has no changed func names again i suspect something else is going on seeing as how i'm running libgd-2.0.22 on all my boxes and i rebuilt php against it w/out any breakage what does `ls -l /usr/lib/libgd.*` show ?
************************** bash-2.05b$ strings /usr/lib/libgd.so.2.0.0 | grep FontCache bash-2.05b$ ************************** bash-2.05b$ gdlib-config --all GD library 2.0.22 includedir: /usr/include/gd-2 cflags: -I/usr/include/gd-2 ldflags: -L/usr/X11R6/lib libs: -lXpm -lX11 -lz -lm libdir: /usr/lib ************************** bash-2.05b$ ls -l /usr/lib/libgd.* lrwxrwxrwx 1 root root 8 mar 10 02:40 /usr/lib/libgd.a -> libgd2.a -rwxr-xr-x 1 root root 724 mar 10 02:40 /usr/lib/libgd.la lrwxrwxrwx 1 root root 14 mar 10 02:40 /usr/lib/libgd.so -> libgd.so.2.0.0 lrwxrwxrwx 1 root root 14 mar 10 02:40 /usr/lib/libgd.so.2 -> libgd.so.2.0.0 -rwxr-xr-x 1 root root 217728 mar 10 02:40 /usr/lib/libgd.so.2.0.0 *** Thanksss
i'm gonna go ahead and say it's because you dont have truetype in USE if you put truetype into USE, re-emerge libgd, and then emerge php this should 'go away'
Hello, I put truetype in my USE and the php compile, thaks!!
vapier: you wanna throw together something for the php.eclass that checks that libgd was compiled with the correct flags and die otherwise?
robbat2: would putting `use_enable truetype gd-native-ttf` into the 'use gd-external' work you think ? if not, we'd have to update the php.eclass to look something like: if use gd-external; then ! use truetype && die "you need to build GD with truetype" or something similarly-ghetto
i moved 'use_enable truetype gd-native-ttf' to a better place and changed it to kick in with gd-external as well. fix is now in cvs (not bumping php for this).