php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16823 checking native iconv support failed on Solaris 8
Submitted: 2002-04-25 08:05 UTC Modified: 2002-04-27 21:40 UTC
From: mingyen_hsu at yahoo dot com Assigned:
Status: Closed Package: ICONV related
PHP Version: 4.2.0 OS: Solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mingyen_hsu at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-04-25 08:05 UTC] mingyen_hsu at yahoo dot com
./configure --with-iconv=/usr on Solaris 8 failed in PHP 4.2.0, it is ok in
PHP 4.1.2

4.2.0:
-----
checking for iconv support... yes
configure: error: Please reinstall the iconv library.

4.1.2:
-----
checking for iconv support... yes
checking for iconv_open in -lc... (cached) yes

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-25 21:39 UTC] sniper@php.net
Please check config.log for more information. This might be
totally unrelated to iconv.

 [2002-04-25 22:19 UTC] mingyen_hsu at yahoo dot com
The native iconv support on Solaris is in libc. I saw the configure will check /usr/include/iconv.h and iconv in libc, c_r, pthread in PHP 4.1.2, but doesn't
find the same code in the configure of 4.2.0.

It seems there is no libiconv.a on Solaris 8.
 [2002-04-25 22:28 UTC] sniper@php.net
This check was changed so that it's possible to link
with external library even if the iconv functions are
found in libc. Using --with-iconv (without any path)
should work fine.

--Jani

 [2002-04-25 23:36 UTC] mingyen_hsu at yahoo dot com
The configure works fine with --with-iconv only, however, the binary I made (cgi mode) will complain about "Fatal
error: Call to undefined function: iconv()...."

the phpinfo() doesn't show any information about iconv.
 [2002-04-26 11:24 UTC] sniper@php.net
What does 'php -m' output? No iconv extension?
Does any other iconv function work?

--Jani

 [2002-04-27 03:16 UTC] mingyen_hsu at yahoo dot com
I've used native iconv with PHP 4.1.2 on Solaris 8 for monthes without any problem. (--with-iconv=/usr)

Also, the perl iconv module works fine on my solaris 8 too.

my config.log
---------------
  $ ./configure --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --en
able-libgcc --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/
local --with-iconv --with-zlib-dir=/usr/local

php -m
----------
Running PHP 4.2.0
Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies

[PHP Modules]
xml
standard
session
posix
pcre
openssl
mysql
gd
ctype
zlib

[Zend Modules]

php -m (4.1.2)
---------------
aurora:<~/temp/php-4.1.2>-myhsu- ./php -m
Running PHP 4.1.2
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies

[PHP Modules]
xml
standard
session
posix
pcre
openssl
mysql
iconv
gd
zlib

[Zend Modules]
Not Implemented
 [2002-04-27 21:40 UTC] sniper@php.net
There indeed was a bug in this. Fixed now for PHP 4.2.1.
(4.3.0-dev didn't have this bug)

--Jani

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 12:01:28 2020 UTC