php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18672 configure fails to report correct problem
Submitted: 2002-07-31 11:10 UTC Modified: 2002-07-31 18:34 UTC
From: niklas dot fondberg at i3micro dot com Assigned:
Status: Closed Package: ICONV related
PHP Version: 4.2.2 OS: debian unstable
Private report: No CVE-ID: None
 [2002-07-31 11:10 UTC] niklas dot fondberg at i3micro dot com
When configuring --with-iconv or --with-xslt-sablot the following error is resieved:
-----
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: iconv not found, in order to build sablotron you need the iconv library
-----
config.log shows this:

configure:66574: checking for libiconv
configure:66602: gcc -o conftest -g -O2   -Wl,-rpath,/lib -L/lib conftest.c -lexpat -lmm -lcrypt -lgd -lexslt -lxsltbreakpoint -lxml
2 -lxslt -lz -lxml2 -lcurl -ldl -lcrypto -lssl -lcurl -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt -lg
ssapi_krb5 -lkrb5 -lk5crypto -lcom_err 1>&5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 66579 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char libiconv(); 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 libiconv();

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_libiconv) || defined (__stub___libiconv)
choke me
#else
libiconv();
#endif

; return 0; }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 18:34 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 12:01:28 2020 UTC