On 05/06/11 07:55, Jan Hnatek wrote:
Hi Gerard,
Solaris iconv in build 134b (and later) does not support the
//TRANSLIT and //IGNORE flags, therefore you're getting the
error. If you need these particular flags, you can probably
compile GNU libiconv from source, since that is not available
as a repository package. The compilation as such is easy, but
I'm not sure how much effort it takes to make php work with
that instead of the default iconv.
My notes to myself for building libiconv (both 32 and 64bit):
=================================================================================
Downloading:
1. download libiconv from http://www.gnu.org/software/libiconv/#downloading
Compiling (as user):
1. set the following environment variables and paths
setenv CC cc
setenv CXX CC
setenv CFLAGS "-m64" (only for 64 bit build)
set path=(/opt/SUNWspro/bin $path)
unsetenv LD_RUN_PATH
unsetenv LD_LIBRARY_PATH
unsetenv LIBS
unsetenv LDFLAGS
2. configure it
sparcv9/sparc
./configure --libdir=/usr/local/lib/sparcv9 --bindir=/usr/local/bin/sparcv9
./configure --bindir=/usr/local/bin/sparcv7
/x64/i86
./configure --libdir=/usr/local/lib/amd64 --bindir=/usr/local/bin/amd64
./configure --bindir=/usr/local/bin/i86
3. make
=================================================================================
My notes to myself for building php 5.2.17 (64bit):
=================================================================================
1. set the following environment variables
setenv LD_RUN_PATH /usr/lib/64:/usr/sfw/lib/64:/usr/local/lib/64
setenv LD_LIBRARY_PATH /usr/lib/64:/usr/sfw/lib/64:/usr/local/lib/64
setenv LDFLAGS "-L/usr/lib/64 -L/usr/sfw/lib/64 -L/usr/local/lib/64
-R/usr/lib/64 -R/usr/sfw/lib/64 -R/usr/local/lib/64"
setenv LIBS "-liconv"
setenv CC cc
setenv CXX cc
setenv CFLAGS "-m64"
2. configure the mess. Note the --with-openssl=/usr/local/apache2 to force use
of the ssl compiled
for apache
cd /files/source/apache/apache2.2/php-5.2.17_sol10-sparcv9
cd /files/source/apache/apache2.2/php-5.2.17_sol10-x64
configure --with-mysql=/opt/mysql/mysql
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-inline-optimization --enable-ftp --with-zlib-dir --enable-soap
--with-openssl=/usr/local/apache2 \
--enable-sockets --enable-mbstring --with-gettext --with-pdo-mysql
--with-pdo-odbc=ibm-db2,/opt/IBM/db2/V9.5 \
--enable-calendar
3. edit (with vim) the Makefile and change all
-L/usr/local/lib to -L/usr/local/lib/64
and all
-R/usr/local/lib to -R/usr/local/lib/64
This is needed so the 64bit libiconv under /usr/local/lib/64 is used
instead of the 32bit under /usr/local/lib
4. make
=================================================================================
Regards,
hnhn
On 05/ 4/11 02:05 PM, gerard henry wrote:
hello all,
my web server is b134, apache22, php 5.2:
# pkg search -l /usr/php/5.2/modules/iconv.so
INDEX ACTION VALUE PACKAGE
path file usr/php/5.2/modules/iconv.so
pkg:/web/php-52@5.2.12-0.134.0.2
i'm trying the first example given here:
http://www.php.net/manual/en/function.iconv.php
and it fails with the message:
PHP Notice: iconv() [<a href='function.iconv'>function.iconv</a>]:
Unknown error (22) in ...
Does it mean that i forgot to configure something, or is it a problem
with the current php lib?
thanks in advance fo help,
gerard
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: ra...@greatplainsmfg.com
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org