Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60572

Summary: php doesn't compile. error with fdf toolkit
Product: Gentoo Linux Reporter: Lionel Montrieux <lionel.montrieux>
Component: [OLD] DevelopmentAssignee: PHP Bugs <php-bugs>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: postmaster
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log
emerge php output

Description Lionel Montrieux 2004-08-16 10:36:22 UTC
When I try to emerge php5, I get this error :

checking for FDF support... yes
configure: error: FdfTk.h or fdftk.h not found. Please reinstall the fdf toolkit.

!!! ERROR: dev-php/php-5.0.1 failed.
!!! Function econf, Line 362, Exitcode 1
!!! econf failed

I reinstalled fdf toolkit. Same problem.

Reproducible: Always
Steps to Reproduce:
1. EXPORT USE="-mysqli dba"
2. emerge -u php

Actual Results:  
checking for FDF support... yes
configure: error: FdfTk.h or fdftk.h not found. Please reinstall the fdf toolkit.

!!! ERROR: dev-php/php-5.0.1 failed.
!!! Function econf, Line 362, Exitcode 1
!!! econf failed




Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.6
)
=================================================================
System uname: 2.6.6 i686 Intel(R) Pentium(R) M processor 1300MHz
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla
/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/tex
mf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/plate
x/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/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="X aalib acpi adns alsa apache2 apm arts avi berkdb bonobo cdb cdr cpdflib c
rypt cups dba dga directfb divx4linux doc dvb dvd emacs emacs-w3 encode esd ethe
real evo fbcon fdftk flash foomaticdb ftp gb gd gdbm ggi gif gnome gpm gtk gtk2 
gtkhtml guile icq imagemagick imap imlib jabber jpeg lcms leim libg++ libwww mad
 maildir mbox mcal mikmod ming mmx motif mozilla mpeg msn mysql mysqli nas ncurs
es nls oggvorbis opengl oscar oss pam pcmcia pda pdflib perl png pnp posix postg
res ppds python quicktime readline ruby samba sdl session slang slp speex spell 
spl sqlite sse ssl svg svga szip tcltk tcpd tetex theora tiff tokenizer truetype
 usb videos x86 xml xml2 xmms xv xvid zlib"
Comment 1 Lionel Montrieux 2004-08-16 10:48:55 UTC
It compiles with EXPORT USE="-fdftk".

But I'd like to compile it WITH fdftk ;)
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2004-08-16 14:38:13 UTC
I can't fix this - the Adobe website doesn't work with my browser, so I can't download a copy of fdfkit to test it.

Robin - are you able to take a look at this?

Thanks,
Stu
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-21 16:27:11 UTC
Lionel:
please include output from 'emerge -pv fdftk' as well as the config.log from php.
Comment 4 Lionel Montrieux 2004-08-22 00:20:46 UTC
root@popstitute /home/lionel # emerge -pv fdftk

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   RF  ] app-text/fdftk-6.0-r1   0 kB 

Total size of downloads: 0 kB



PHP configure command : 
'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-apxs2=/usr/sbin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--without-pear' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--with-jpeg-dir=/usr' '--with-cpdflib' '--disable-ctype' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-dio' '--disable-exif' '--without-fam' '--without-fbsql' '--without-fdftk' '--disable-filepro' '--enable-ftp' '--with-gettext' '--without-gmp' '--without-hwapi' '--without-iconv' '--without-informix' '--without-ingres' '--without-interbase' '--enable-mbstring' '--with-mcrypt' '--without-openssl-dir' '--without-mcve' '--disable-memory-limit' '--without-mhash' '--without-mime-magic' '--with-ming' '--without-mnogosearch' '--without-msql' '--without-mssql' '--with-ncurses' '--without-oci8' '--without-oracle' '--with-openssl' '--without-ovrimos' '--disable-pcntl' '--without-pcre-regx' '--without-pfpro' '--with-pgsql' '--with-pspell' '--without-recode' '--disable-simplexml' '--disable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-wddx' '--without-xsl' '--without-xmlrpc' '--disable-yp' '--with-zlib' '--with-cdb' '--with-db4' '--without-dbm' '--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--enable-gd-jis-conf' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mm' '--without-msession' '--enable-sqlite-utf8' '--enable-dba' '--with-readline' '--without-libedit'
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-22 00:31:23 UTC
i need the config.log from php as well.
Comment 6 Lionel Montrieux 2004-08-22 00:36:08 UTC
Huh... where is it ?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-22 00:58:20 UTC
/var/tmp/portage/dev-php/php-5.0.1/php*/config.log
Comment 8 Lionel Montrieux 2004-08-22 01:13:27 UTC
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:1631: checking host system type
configure:1719: checking for gcc
configure:1832: checking whether the C compiler (gcc -O2 -march=pentium4 -fomit-frame-pointer ) works
configure:1848: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
configure:1874: checking whether the C compiler (gcc -O2 -march=pentium4 -fomit-frame-pointer ) is a cross-compiler
configure:1879: checking whether we are using GNU C
configure:1888: gcc -E conftest.c
configure:1907: checking whether gcc accepts -g
configure:1940: checking whether gcc and cc understand -c and -o together
configure:1955: gcc -c conftest.c -o conftest.o 1>&5
configure:1956: gcc -c conftest.c -o conftest.o 1>&5
configure:1961: cc -c conftest.c 1>&5
configure:1963: cc -c conftest.c -o conftest.o 1>&5
configure:1964: cc -c conftest.c -o conftest.o 1>&5
configure:1991: checking how to run the C preprocessor
configure:2012: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2072: checking for AIX
configure:2099: checking if compiler supports -R
configure:2114: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 2107 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2132: checking if compiler supports -Wl,-rpath,
configure:2147: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -Wl,-rpath,/usr/lib  1>&5
configure:2173: checking for re2c
configure:2204: checking for ranlib
configure:2232: checking whether ln -s works
configure:2257: checking for mawk
configure:2257: checking for gawk
configure:2291: checking for bison
configure:2325: checking bison version
configure:2335: checking for flex
configure:2369: checking for yywrap in -lfl
configure:2388: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lfl   1>&5
configure:2412: checking lex output file root
configure:2433: checking whether yytext is a pointer
configure:2452: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  -lfl 1>&5
configure:2476: checking for working const
configure:2530: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:2555: checking flex version
configure:2683: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
/var/tmp/portage/php-5.0.1/temp/ccaCsiaK.o(.text+0x1c): In function `main':
: undefined reference to `pthread_mutexattr_init'
/var/tmp/portage/php-5.0.1/temp/ccaCsiaK.o(.text+0x3e): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2665 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
} 
configure:2703: checking for pthreads_cflags
configure:2736: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer -kthread   conftest.c  1>&5
gcc: unrecognized option `-kthread'
/var/tmp/portage/php-5.0.1/temp/cceeLZLp.o(.text+0x1c): In function `main':
: undefined reference to `pthread_mutexattr_init'
/var/tmp/portage/php-5.0.1/temp/cceeLZLp.o(.text+0x3e): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2718 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
} 
configure:2736: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer -pthread   conftest.c  1>&5
configure:2766: checking for pthreads_lib
configure:2892: checking for AOLserver support
configure:3114: checking for Apache 1.x module support via DSO through APXS
configure:3399: checking for Apache 1.x module support
configure:4188: checking for member fd in BUFF *
configure:4207: gcc -c -O2 -march=pentium4 -fomit-frame-pointer   conftest.c 1>&5
configure:4201:19: httpd.h: No such file or directory
configure: In function `main':
configure:4203: error: `conn_rec' undeclared (first use in this function)
configure:4203: error: (Each undeclared identifier is reported only once
configure:4203: error: for each function it appears in.)
configure:4203: error: `c' undeclared (first use in this function)
configure: failed program was:
#line 4200 "configure"
#include "confdefs.h"
#include <httpd.h>
int main() {
conn_rec *c; int fd = c->client->fd;
; return 0; }
configure:4231: checking for mod_charset compatibility option
configure:4298: checking for Apache 2.0 filter-module support via DSO through APXS
configure:5042: checking for Apache 2.0 handler-module support via DSO through APXS
configure:5786: checking for Apache 1.x (hooks) module support via DSO through APXS
configure:6358: checking for Apache 1.x (hooks) module support
configure:7144: checking for mod_charset compatibility option
configure:7212: checking for Caudium support
configure:7524: checking for CLI build
configure:7580: checking for Continuity support
configure:7807: checking for embedded SAPI library support
configure:7992: checking for Zeus ISAPI support
configure:8204: checking for Milter support
configure:8459: checking for NSAPI support
configure:8782: checking for PHTTPD support
configure:8993: checking for Pi3Web support
configure:9304: checking for Roxen/Pike support
configure:9775: checking for thttpd
configure:9983: checking for TUX
configure:10199: checking for webjames
configure:10599: checking for chosen SAPI module
configure:11504: checking for missing declarations of reentrant functions
configure:11513: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:11538: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:11563: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:11588: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:11613: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:11637: checking for sendmail
configure:11678: checking whether system uses EBCDIC
configure:11697: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
configure: failed program was:
#line 11689 "configure"
#include "confdefs.h"

int main(void) { 
  return (unsigned char)'A' != (unsigned char)0xC1; 
} 

configure:11771: checking for socket
configure:11799: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
configure:12028: checking for htonl
configure:12056: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
configure:12285: checking for gethostname
configure:12313: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
configure:12542: checking for gethostbyaddr
configure:12570: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
configure:12799: checking for yp_get_default_domain
configure:12827: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
/var/tmp/portage/php-5.0.1/temp/cccC1wXl.o(.text+0xa): In function `main':
: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12804 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char yp_get_default_domain(); below.  */
#include <assert.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 yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
choke me
#else
yp_get_default_domain();
#endif

; return 0; }
configure:12845: checking for __yp_get_default_domain
configure:12873: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  1>&5
/var/tmp/portage/php-5.0.1/temp/ccOY6vYw.o(.text+0xa): In function `main':
: undefined reference to `__yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 12850 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __yp_get_default_domain(); below.  */
#include <assert.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 __yp_get_default_domain();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___yp_get_default_domain) || defined (__stub_____yp_get_default_domain)
choke me
#else
__yp_get_default_domain();
#endif

; return 0; }
configure:12911: checking for yp_get_default_domain in -lnsl
configure:12930: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lnsl   1>&5
configure:13005: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c  -lnsl 1>&5
configure:13057: checking for dlopen
configure:13085: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccyfV6lr.o(.text+0xa): In function `main':
: undefined reference to `dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 13062 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen(); below.  */
#include <assert.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 dlopen();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me
#else
dlopen();
#endif

; return 0; }
configure:13103: checking for __dlopen
configure:13131: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/cc6fUpqF.o(.text+0xa): In function `main':
: undefined reference to `__dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 13108 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __dlopen(); below.  */
#include <assert.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 __dlopen();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___dlopen) || defined (__stub_____dlopen)
choke me
#else
__dlopen();
#endif

; return 0; }
configure:13169: checking for dlopen in -ldl
configure:13188: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -ldl  -lnsl  1>&5
configure:13263: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lnsl  -ldl 1>&5
configure:13315: checking for sin in -lm
configure:13334: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lm  -ldl -lnsl  1>&5
configure:13327: warning: conflicting types for built-in function `sin'
configure:13368: checking for res_search
configure:13396: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccysjOqg.o(.text+0xa): In function `main':
: undefined reference to `res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 13373 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char res_search(); below.  */
#include <assert.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 res_search();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_res_search) || defined (__stub___res_search)
choke me
#else
res_search();
#endif

; return 0; }
configure:13414: checking for __res_search
configure:13442: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/cc6uCsPv.o(.text+0xa): In function `main':
: undefined reference to `__res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 13419 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char __res_search(); below.  */
#include <assert.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 __res_search();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub___res_search) || defined (__stub_____res_search)
choke me
#else
__res_search();
#endif

; return 0; }
configure:13480: checking for res_search in -lresolv
configure:13499: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv  -lm -ldl -lnsl  1>&5
configure:13574: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lm -ldl -lnsl  -lresolv 1>&5
configure:13904: checking for inet_aton
configure:13932: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:14300: checking for dn_skipname
configure:14328: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccWv4UwQ.o(.text+0xa): In function `main':
: undefined reference to `dn_skipname'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14305 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dn_skipname(); below.  */
#include <assert.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 dn_skipname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dn_skipname) || defined (__stub___dn_skipname)
choke me
#else
dn_skipname();
#endif

; return 0; }
configure:14346: checking for __dn_skipname
configure:14374: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:14694: checking for ANSI C header files
configure:14707: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:14774: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:14802: checking for dirent.h that defines DIR
configure:14815: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:14840: checking for opendir in -ldir
configure:14859: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -ldir  -lresolv -lm -ldl -lnsl  1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ldir
collect2: ld returned 1 exit status
configure: failed program was:
#line 14848 "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 opendir();

int main() {
opendir()
; return 0; }
configure:14925: checking for fclose declaration
configure:14934: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15012: checking for dirent.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for ApplicationServices/ApplicationServices.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15018:53: ApplicationServices/ApplicationServices.h: No such file or directory
configure: failed program was:
#line 15017 "configure"
#include "confdefs.h"
#include <ApplicationServices/ApplicationServices.h>
configure:15012: checking for sys/param.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/types.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/time.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for netinet/in.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for alloca.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for arpa/inet.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for arpa/nameser.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for assert.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for crypt.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for fcntl.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for grp.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for ieeefp.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15018:20: ieeefp.h: No such file or directory
configure: failed program was:
#line 15017 "configure"
#include "confdefs.h"
#include <ieeefp.h>
configure:15012: checking for langinfo.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for limits.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for locale.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for monetary.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for mach-o/dyld.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15018:25: mach-o/dyld.h: No such file or directory
configure: failed program was:
#line 15017 "configure"
#include "confdefs.h"
#include <mach-o/dyld.h>
configure:15012: checking for netdb.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for pwd.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for resolv.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for signal.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for stdarg.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for stdlib.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for string.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for syslog.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sysexits.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/ioctl.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/file.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/mman.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/mount.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/poll.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/resource.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/select.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/socket.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/statfs.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/statvfs.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/vfs.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/sysexits.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15018:26: sys/sysexits.h: No such file or directory
configure: failed program was:
#line 15017 "configure"
#include "confdefs.h"
#include <sys/sysexits.h>
configure:15012: checking for sys/varargs.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15018:25: sys/varargs.h: No such file or directory
configure: failed program was:
#line 15017 "configure"
#include "confdefs.h"
#include <sys/varargs.h>
configure:15012: checking for sys/wait.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for termios.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for unistd.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for unix.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15018:18: unix.h: No such file or directory
configure: failed program was:
#line 15017 "configure"
#include "confdefs.h"
#include <unix.h>
configure:15012: checking for utime.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/utsname.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for sys/ipc.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for dlfcn.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15012: checking for inttypes.h
configure:15022: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15051: checking for fopencookie
configure:15079: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15110: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15162: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15223: checking for broken getcwd
configure:15238: checking for broken libc stdio
configure:15299: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15327: checking whether struct tm is in sys/time.h or time.h
configure:15340: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15361: checking for tm_zone in struct tm
configure:15374: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15433: checking for tm_gmtoff in struct tm
configure:15446: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15469: checking for struct flock
configure:15484: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15511: checking for socklen_t
configure:15528: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15554: checking size of intmax_t
configure:15573: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:15568: error: `intmax_t' undeclared (first use in this function)
configure:15568: error: (Each undeclared identifier is reported only once
configure:15568: error: for each function it appears in.)
configure: failed program was:
#line 15562 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(intmax_t));
  exit(0);
}
configure:15593: checking size of size_t
configure:15612: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15632: checking size of ssize_t
configure:15651: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:15646: error: `ssize_t' undeclared (first use in this function)
configure:15646: error: (Each undeclared identifier is reported only once
configure:15646: error: for each function it appears in.)
configure: failed program was:
#line 15640 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(ssize_t));
  exit(0);
}
configure:15671: checking size of ptrdiff_t
configure:15690: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:15685: error: `ptrdiff_t' undeclared (first use in this function)
configure:15685: error: (Each undeclared identifier is reported only once
configure:15685: error: for each function it appears in.)
configure: failed program was:
#line 15679 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(ptrdiff_t));
  exit(0);
}
configure:15710: checking size of long long
configure:15729: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15749: checking size of long long int
configure:15768: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15788: checking size of long
configure:15807: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15827: checking size of int
configure:15846: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15867: checking for st_blksize in struct stat
configure:15880: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15902: checking for st_blocks in struct stat
configure:15915: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15942: checking for st_rdev in struct stat
configure:15955: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:15977: checking for size_t
configure:16010: checking for uid_t in sys/types.h
configure:16045: checking for struct sockaddr_storage
configure:16058: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:16090: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure: In function `main':
configure:16086: error: structure has no member named `sa_len'
configure: failed program was:
#line 16080 "configure"
#include "confdefs.h"

#include <sys/types.h>
#include <sys/socket.h>

int main() {
static struct sockaddr sa; int n = (int) sa.sa_len; return n
; return 0; }
configure:16103: checking for IPv6 support
configure:16117: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16135: checking for vprintf
configure:16163: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16147: warning: conflicting types for built-in function `vprintf'
configure:16315: checking for alphasort
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for asctime_r
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for chroot
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for ctime_r
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for cuserid
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for crypt
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccYklrbd.o(.text+0xa): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 16320 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt(); below.  */
#include <assert.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 crypt();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_crypt) || defined (__stub___crypt)
choke me
#else
crypt();
#endif

; return 0; }
configure:16315: checking for flock
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for ftok
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for funopen
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccWnM7jx.o(.text+0xa): In function `main':
: undefined reference to `funopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 16320 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char funopen(); below.  */
#include <assert.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 funopen();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_funopen) || defined (__stub___funopen)
choke me
#else
funopen();
#endif

; return 0; }
configure:16315: checking for gai_strerror
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for gcvt
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for getlogin
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for getprotobyname
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for getprotobynumber
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for getservbyname
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for getservbyport
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for getrusage
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for gettimeofday
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for gmtime_r
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for grantpt
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for inet_ntoa
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for inet_ntop
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for inet_pton
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for isascii
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for link
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for localtime_r
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for lockf
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for lrand48
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for memcpy
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16327: warning: conflicting types for built-in function `memcpy'
configure:16315: checking for memmove
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16327: warning: conflicting types for built-in function `memmove'
configure:16315: checking for mkstemp
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for mmap
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for nl_langinfo
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for perror
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for poll
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for ptsname
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for putenv
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for realpath
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for random
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for rand_r
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for regcomp
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for res_search
configure:16315: checking for scandir
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for setitimer
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for setlocale
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for localeconv
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for setpgid
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for setsockopt
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for setvbuf
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for shutdown
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for sin
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16327: warning: conflicting types for built-in function `sin'
configure:16315: checking for snprintf
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16327: warning: conflicting types for built-in function `snprintf'
configure:16315: checking for srand48
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for srandom
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for statfs
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for statvfs
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for std_syslog
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/cciit6zP.o(.text+0xa): In function `main':
: undefined reference to `std_syslog'
collect2: ld returned 1 exit status
configure: failed program was:
#line 16320 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char std_syslog(); below.  */
#include <assert.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 std_syslog();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_std_syslog) || defined (__stub___std_syslog)
choke me
#else
std_syslog();
#endif

; return 0; }
configure:16315: checking for strcasecmp
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for strcoll
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for strdup
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for strerror
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for strftime
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for strstr
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16327: warning: conflicting types for built-in function `strstr'
configure:16315: checking for strtok_r
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for symlink
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for tempnam
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/cc0YJ4pC.o(.text+0xa): In function `main':
: warning: the use of `tempnam' is dangerous, better use `mkstemp'
configure:16315: checking for tzset
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for unlockpt
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for unsetenv
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for usleep
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for nanosleep
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for utime
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16315: checking for vsnprintf
configure:16343: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16327: warning: conflicting types for built-in function `vsnprintf'
configure:16369: checking for getaddrinfo
configure:16381: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16424: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16456: checking for strlcat
configure:16484: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccYx3neH.o(.text+0xa): In function `main':
: undefined reference to `strlcat'
collect2: ld returned 1 exit status
configure: failed program was:
#line 16461 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcat(); below.  */
#include <assert.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 strlcat();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcat) || defined (__stub___strlcat)
choke me
#else
strlcat();
#endif

; return 0; }
configure:16456: checking for strlcpy
configure:16484: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/var/tmp/portage/php-5.0.1/temp/ccarDunS.o(.text+0xa): In function `main':
: undefined reference to `strlcpy'
collect2: ld returned 1 exit status
configure: failed program was:
#line 16461 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strlcpy(); below.  */
#include <assert.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 strlcpy();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
choke me
#else
strlcpy();
#endif

; return 0; }
configure:16456: checking for getopt
configure:16484: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16511: checking whether utime accepts a null argument
configure:16532: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16558: checking for working alloca.h
configure:16591: checking for alloca
configure:16624: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16791: checking whether sprintf is broken
configure:16806: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16840: checking whether snprintf is broken
configure:16870: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16904: checking for declared timezone
configure:16925: gcc -c -O2 -march=pentium4 -fomit-frame-pointer  conftest.c 1>&5
configure:16951: checking for type of reentrant time-related functions
configure:16980: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:16972: warning: assignment makes integer from pointer without a cast
configure:16973: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 16962 "configure"
#include "confdefs.h"

#include <time.h>

main() {
char buf[27];
struct tm t;
time_t old = 0;
int r, s;

s = gmtime_r(&old, &t);
r = (int) asctime_r(&t, buf, 26);
if (r == s && s == 0) return (0);
return (1);
}

configure:17010: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:17003: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 16994 "configure"
#include "confdefs.h"

#include <time.h>
main() {
  struct tm t, *s;
  time_t old = 0;
  char buf[27], *p;
  
  s = gmtime_r(&old, &t);
  p = asctime_r(&t, buf, 26);
  if (p == buf && s == &t) return (0);
  return (1);
}
  
configure:17048: checking for readdir_r
configure:17076: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17098: checking for type of readdir_r
configure:17134: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17252: checking whether to include debugging symbols
configure:17285: checking layout of installed files
configure:17319: checking path to configuration file
configure:17355: checking directory to be scanned for configuration files
configure:17385: checking whether to enable safe mode by default
configure:17420: checking for safe mode exec dir
configure:17461: checking whether to enable PHP's own SIGCHLD handler
configure:17498: checking whether to enable magic quotes by default
configure:17535: checking whether to enable runpaths
configure:17560: checking whether to explicitly link against libgcc
configure:17639: checking whether to enable short tags by default
configure:17676: checking whether to enable dmalloc
configure:17764: checking whether to enable IPv6 support
configure:17794: checking whether to enable versioning
configure:17846: checking whether to enable LIBXML support
configure:17893: checking libxml2 install dir
configure:18053: checking whether libxml build works
configure:18080: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c 
          
         -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm 1>&5
configure:18351: checking for OpenSSL support
configure:18404: checking for pkg-config
configure:19248: checking for ZLIB support
configure:19294: checking if the location of ZLIB install directory is defined
configure:19648: checking for gzgets in -lz
configure:19667: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lz  -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl 1>&5
configure:19805: checking whether to enable bc style precision math functions
configure:20095: checking for BZip2 support
configure:20649: checking whether to enable calendar conversion support
configure:20924: checking for cpdflib support
configure:21283: checking for jpeg_read_header in -ljpeg
configure:21302: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -ljpeg  -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl 1>&5
configure:21530: checking for TIFFOpen in -ltiff
configure:21549: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -ltiff  -ljpeg -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl 1>&5
configure:21768: checking for cpdf_open in -lcpdf
configure:21787: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lcpdf  -ltiff -ljpeg -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl 1>&5
configure:21964: checking whether to enable ctype functions
configure:22235: checking for CURL support
configure:22281: checking if we should use CURL for url streams
configure:23065: checking whether to enable DBA
configure:23395: checking for QDBM support
configure:23529: checking for gdbm_open in -lgdbm
configure:23548: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer   conftest.c -lgdbm  -lcpdf -ltiff -ljpeg -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl 1>&5
configure:23715: checking for GDBM support
configure:24020: checking for NDBM support
configure:24086: gcc -o conftest -O2 -march=pentium4 -fomit-frame-pointer  -L/usr/lib -ldb-4.2  conftest.c -lgdbm -lcpdf -ltiff -ljpeg -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -ldl 1>&5
configure:24127: checking for db4 minor version and patch level
configure:24319: checking for Berkeley DB4 support
configure:24639: checking for Berkeley DB3 support
configure:24959: checking for Berkeley DB2 support
configure:25302: checking for DBM support
configure:25643: checking for CDB support
configure:25697: checking for INI File support
configure:25751: checking for FlatFile support
configure:25766: checking whether to enable DBA interface
configure:26017: checking whether to enable dbase support
configure:26288: checking whether to enable dbx support
configure:26555: checking whether to enable direct I/O support
configure:26822: checking whether to enable DOM support
configure:27027: checking whether libxml build works
configure:27364: checking whether to enable EXIF (metadata from images) support
configure:27637: checking for fam support
configure:28200: checking for FrontBase SQL92 (fbsql) support
configure:28630: checking for FDF support
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-22 02:43:28 UTC
are you sure that is the entire file?
there seems to be a chunk missing at the bottom, that explains the FDFTK error.
attach it for good measure.
Comment 10 Lionel Montrieux 2004-08-22 02:50:27 UTC
Created attachment 37922 [details]
config.log

Found in /var/tmp/portage/php-5.0.1/work/php-5.0.1/
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-22 12:55:36 UTC
please include output of:
'find /opt | grep -i fdftk'
Comment 12 Lionel Montrieux 2004-08-22 13:19:30 UTC
root@popstitute /home/lionel # find /opt | grep -i fdftk
/opt/fdftk-6.0
/opt/fdftk-6.0/lib
/opt/fdftk-6.0/lib/libFdfTk.so
/opt/fdftk-6.0/include
/opt/fdftk-6.0/include/FdfTk.h
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-22 13:31:19 UTC
that makes no sense, that's exactly how it should be, and I don't see why it isn't finding it.

could you attach the ENTIRE output of 'emerge php' (including both stderr and stdout together).
Comment 14 Lionel Montrieux 2004-08-23 13:41:56 UTC
Created attachment 38045 [details]
emerge php output
Comment 15 Lionel Montrieux 2004-08-23 13:42:23 UTC
Is it enought ? (emerge php &> php.txt )
Comment 16 tuXXer 2004-08-23 14:27:55 UTC
Same problem here.

It seems that "/opt/fdftk-6.0/include/FdfTk.h" couldn't be found, because of an environment problem.

A manual symlink fixes this:

ln -sf /opt/fdftk-6.0/include/FdfTk.h /usr/include/FdfTk.h

Then you get the error message:

configure: error: no usable fdf library found

Therefore you must make another symlink:

ln -sf /opt/fdftk-6.0/lib/libFdfTk.so /usr/lib/libFdfTk.so

This fixes this error.

I think an adopted environment for the include path of Fdftk should fix this php bug.
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-23 15:02:21 UTC
that should never be done.
binary packages in /opt should NOT present in binaries in /usr, it causes problems with prelink.

could you delete your symlinks you created, run env-update, start a new shell and then try the emerge?
Comment 18 tuXXer 2004-08-23 15:24:20 UTC
I know that binaries in opt shouldn't be in usr, but there is no way to compile php without this hack.

Removing the symlinks and new shell leads to the error, again.

Both file in /opt/fdftk-6.0/lib and /opt/fdftk-6.0/include wouldn't be found with php-5.0.1, it seems.
Comment 19 tuXXer 2004-08-23 15:26:04 UTC
Sure it did env-update && source /etc/profile after removing the symlinks
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-23 15:44:37 UTC
please provide the contents of your /etc/ld.so.conf
for some reason it doesn't seem to be containing the /opt/fdfdk-6.0/lib entry.
Comment 21 tuXXer 2004-08-23 15:45:43 UTC
Well, it does!

# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.1
/usr/lib/opengl/xorg-x11/lib
/usr/X11R6/lib
/opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/
/opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/native_threads/
/opt/blackdown-jdk-1.4.2_rc1/jre/lib/i386/classic/
/usr/qt/3/lib
/opt/fdftk-6.0/lib
/usr/lib/libstdc++-v3/
Comment 22 tuXXer 2004-08-23 15:50:09 UTC
Content of /etc/env.d/55fdftk-6.0

LDPATH=/opt/fdftk-6.0/lib
Comment 23 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-23 15:58:33 UTC
what version of the php5-sapi.eclass are you using?
do you have an old version in your overlay or something?
it's passing the incorrect parameter to configure
Comment 24 tuXXer 2004-08-23 16:00:50 UTC
Using following version:

 Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/php5-sapi.eclass,v 1.26 2004/08/22 00:49:11 robbat2 Exp $
Comment 25 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-23 16:05:20 UTC
could you please include
grep fdftk php5-sapi.eclass

for some reason your system is passing
--with-fdftk
instead of
--with-fdftk=/opt/fdftk-6.0 (which is specified by the php5-sapi eclass).
Comment 26 tuXXer 2004-08-24 01:42:56 UTC
Here the output of "grep fdftk php5-sapi.eclass":

IUSE="${IUSE} adabas bcmath berkdb birdstep bzlib calendar cdb cpdflib crypt ctype curl curlwrappers db2 dba dbase dbm dbmaker dbx dio empress empress-bcs esoob exif fam frontbase fdftk flatfile filepro ftp gd gd-external gdbm gmp hyperwave-api imap inifile iconv informix ingres interbase iodbc jpeg ldap libedit mcve memlimit mhash mime ming mnogosearch msession msql mssql mysql mysqli ncurses nls nis oci8 odbc oracle7 ovrimos pcntl pcre pfpro png postgres posix qdbm readline recode sapdb sasl session shared sharedmem simplexml snmp soap sockets solid spell spl sqlite ssl sybase sybase-ct sysvipc tidy tiff tokenizer truetype wddx xsl xml2 xmlrpc xpm zlib"
	fdftk? ( app-text/fdftk )
	enable_extension_with		"fdftk"			"fdftk"			1 "/opt/fdftk-6.0"
Comment 27 tuXXer 2004-08-24 01:48:47 UTC
In addition here the function in confutils.eclass

# ========================================================================
# enable_extension_with ()
#
# This function is a replacement for use_with.  It supports building
# extensions as shared libraries,

# $1	- extension name
# $2	- USE flag
# $3	- 1 = support shared, 0 = never support shared
# $4	- additional setting for configure

enable_extension_with () {
	local my_shared

	if [ "$3" == "1" ]; then
		if [ "$shared+" != "+" ]; then
			my_shared="${shared}"
			if [ "$4+" != "+" ]; then
				my_shared="${my_shared},$4"
			fi
		fi
	else
		if [ "$4+" != "+" ]; then
			my_shared="=$4"
		fi
	fi

	if useq $2 ; then
		my_conf="${my_conf} --with-$1$my_shared"
	else
		my_conf="${my_conf} --without-$1"
	fi
}
Comment 28 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-24 03:58:01 UTC
stuart: can you make heads or tails out of why your confutils doesn't seem to be behaving for this?
Comment 29 tuXXer 2004-08-24 08:50:58 UTC
Heads or tails from what?
Comment 30 tuXXer 2004-08-24 10:16:44 UTC
Sorry,

I hadn't read "stuart".
Comment 31 Stuart Herbert (RETIRED) gentoo-dev 2004-08-24 13:58:51 UTC
Fixed in CVS.  The confutils functions were missing an else clause.  Only shows up when USE=-shared.

It'll take about an hour for the fix to reach your local rsync server.  Please resync, test our fix, and let us know how you get on.

Many thanks,
Stu
Comment 32 tuXXer 2004-08-25 02:52:14 UTC
Today it works without hack.

Thanks to all which were involved.
Comment 33 Lionel Montrieux 2004-08-25 09:23:52 UTC
It works now.

Thanks to all.
Comment 34 Stuart Herbert (RETIRED) gentoo-dev 2004-08-25 13:44:57 UTC
Closing bug.  Thanks for your patience whilst we got to the bottom of this problem.

Best regards,
Stu
Comment 35 Guillaume Hilt 2010-06-30 13:04:03 UTC
I got the same error with php-5.2.10 :
configure:34545: error: no usable fdf library found

ERROR: compile
ERROR: dev-lang/php-5.2.10 failed:
  configure failed

Call stack:
    ebuild.sh, line   54:  Called src_compile
  environment, line 4942:  Called src_compile_normal
  environment, line 5061:  Called php5_2-sapi_src_compile
  environment, line 3957:  Called die
The specific snippet of code:
      ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed";


I'm using Gentoo 20100 AMD64.
fdftk is emerged.

Here's some info :

# emerge -pv fdftk
[ebuild   Rf  ] app-text/fdftk-6.0-r1  0 kB

# find /opt | grep -i fdftk
/opt/fdftk-6.0
/opt/fdftk-6.0/lib64
/opt/fdftk-6.0/lib64/libFdfTk.so
/opt/fdftk-6.0/include
/opt/fdftk-6.0/include/FdfTk.h

I tried a env-update && source /etc/profile before emerging php without success.

I checked the config.log and it's looking in the right directory :
INCLUDES=' -I/var/tmp/portage/dev-lang/php-5.2.10/work/php-5.2.10/ext/date/lib -I/usr/include/libxml2 -I/opt/fdftk-6.0/include'
$ ./configure ... --with-fdftk=/opt/fdftk-6.0 ...

Here's my ld.so.conf :
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
include ld.so.conf.d/*.conf
//usr/lib32/opengl/xorg-x11/lib
//usr/lib64/opengl/xorg-x11/lib
/lib
/usr/lib
/lib64
/usr/lib64
/usr/local/lib64
/lib32
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32
/opt/fdftk-6.0/lib

Regarding sapi, I use version 1.33 :
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/php5_2-sapi.eclass,v 1.33 2010/03/16 14:06:11 yngwin Exp $