PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #39045 Compilation of libphp5.la fails (UW-IMAP libc-client.a related)
Submitted:5 Oct 2006 9:34am UTC Modified: 8 Jan 2007 1:00am UTC
From:bnies at bluewin dot ch Assigned to:
Status:No Feedback Category:Compile Failure
Version:5.2.0 OS:SunOS adnpool02 5.9 Generic_1122
Votes:15 Avg. Score:4.4 ± 0.9 Reproduced:14 of 15 (93.3%)
Same Version:10 (71.4%) Same OS:12 (85.7%)
View/Vote Add Comment Developer Edit Submission

Welcome! If you don't have a SVN 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.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: bnies at bluewin dot ch
New email:
Version: OS:
New/Additional Comment:

[5 Oct 2006 9:34am UTC] bnies at bluewin dot ch
Description:
------------
Compilation fails at php_imap.ch due to too many assignment mismatch
errors, mostly pointer to char and unsigned char.

Operating System
----------------
SunOS adnpool02 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V240

Compiler
--------
Sun Studio 11 Compiler, cc: Sun C 5.8 2005/10/13

Compilation Options
-------------------

PATH="/share/app/sun/studio/11/bin:/share/app/gnu/bin:/bin:/sbin:/usr/bi
n:/usr/sbin:/usr/ccs/bin"
CC=cc
CFLAGS=-O
CXX=CC
CXXFLAGS=-O2
CPPFLAGS="-I/opt/adnwebmail/include"
LDFLAGS="-R/opt/adnwebmail/lib -L/opt/adnwebmail/lib"
LD_OPTIONS=$LDFLAGS

unset LD_LIBRARY_PATH
export PATH CC CFLAGS CXX CXXFLAGS LDFLAGS CPPFLAGS LD_OPTIONS
alias make=gmake

mkdir /opt/adnwebmail
mkdir /etc/opt/adnwebmail
mkdir /var/opt/adnwebmail

### OPENSSL
gtar -C /tmp -xvpzf openssl-0.9.8d.tar.gz 
cd /tmp/openssl-0.9.8d
./config --prefix=/opt/adnwebmail \
         --openssldir=/opt/adnwebmail/openssl shared \
         -R/opt/adnwebmail/lib -L/opt/adnwebmail/lib
gmake
gmake install
cd -

### OPENLDAP
gtar -C /tmp -xvpzf openldap-2.3.27.tgz
cd /tmp/openldap-2.3.27
./configure --prefix=/opt/adnwebmail \
            --sysconfdir=/etc/opt/adnwebmail \
            --disable-slapd --disable-slurpd \
            --localstatedir=/var/opt/adnwebmail \
            --with-tls
gmake depend
gmake
gmake install
cd -

### APACHE
gtar -C /tmp -xvzf httpd-2.2.3.tar.gz
cd /tmp/httpd-2.2.3
./configure --prefix=/var/opt/adnwebmail \
            --exec-prefix=/opt/adnwebmail \
            --includedir=/opt/adnwebmail/include \
            --infodir=/opt/adnwebmail/info \
            --mandir=/opt/adnwebmail/man \
            --sysconfdir=/etc/opt/adnwebmail \
            --datadir=/var/opt/adnwebmail \
            --enable-ssl --with-ssl=/opt/adnwebmail \
            --enable-so
gmake
gmake install
cd -

### UW-IMAP
gtar -C /tmp -xvzf imap-2006a.tar.Z
cd /tmp/imap-2006a
gmake soc SSLDIR=/opt/adnwebmail
cp c-client/*.h /opt/adnwebmail/include
cp c-client/c-client.a /opt/adnwebmail/lib/libc-client.a
cd -

### LIBXML
gtar -C /tmp -xvzf libxml2-2.6.26.tar.gz
cd /tmp/libxml2-2.6.26
./configure --prefix=/opt/adnwebmail \
            --datadir=/var/opt/adnwebmail \
            --sysconfdir=/etc/opt/adnwebmail
gmake
gmake install
cd -

### PHP
gtar -C /tmp -xvzf php-5.1.6.tar.gz 
cd /tmp/php-5.1.6
./configure --prefix=/opt/adnwebmail \
            --with-apxs2=/opt/adnwebmail/bin/apxs \
            --with-ldap=/opt/adnwebmail \
            --with-imap=/opt/adnwebmail \
            --with-imap-ssl=/opt/adnwebmail \
            --with-ssl=/opt/adnwebmail \
            --with-libxml-dir=/opt/adnwebmail \
            --with-config-file-path=/etc/opt/adnwebmail \
            --enable-safe-mode
gmake

Actual result:
--------------
bernd@adnpool02:/tmp/php-5.1.6> gmake
/bin/sh /tmp/php-5.1.6/libtool --silent --preserve-dup-deps
--mode=compile cc  -Iext/imap/ -I/tmp/php-5.1.6/ext/imap/ -DPHP_ATOM_INC
-I/tmp/php-5.1.6/include -I/tmp/php-5.1.6/main -I/tmp/php-5.1.6
-I/opt/adnwebmail/include/libxml2 -I/tmp/php-5.1.6/ext/date/lib
-I/opt/adnwebmail/include -I/tmp/php-5.1.6/TSRM -I/tmp/php-5.1.6/Zend 
-I/opt/adnwebmail/include -D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -O 
 -c /tmp/php-5.1.6/ext/imap/php_imap.c -o ext/imap/php_imap.lo
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 78: identifier redeclared:
utf8_mime2text
        current : function(pointer to struct mail_sizedtext {pointer to
unsigned char data, unsigned long size}, pointer to struct
mail_sizedtext {pointer to unsigned char data, unsigned long size})
returning long
        previous: function(pointer to struct mail_sizedtext {pointer to
unsigned char data, unsigned long size}, pointer to struct
mail_sizedtext {pointer to unsigned char data, unsigned long size},
long) returning long : "/opt/adnwebmail/include/utf8.h", line 548
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 1002: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 1358: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 322
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 1401: warning: argument #4 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 342
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 1446: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 322
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 1683: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 322
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 1725: warning: argument #4 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 342
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2013: warning: assignment
type mismatch:
        pointer to char "=" pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2179: warning: assignment
type mismatch:
        pointer to char "=" pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2179: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2343: warning: assignment
type mismatch:
        pointer to char "=" pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2462: warning: assignment
type mismatch:
        pointer to char "=" pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2731: warning: argument #3 is
incompatible with prototype:
        prototype: pointer to unsigned char :
"/opt/adnwebmail/include/mail.h", line 1668
        argument : pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2849: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to unsigned char :
"/opt/adnwebmail/include/mail.h", line 1739
        argument : pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2850: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to unsigned char :
"/opt/adnwebmail/include/mail.h", line 1738
        argument : pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2878: warning: argument #4 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 342
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 2946: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3076: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3080: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3189: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3193: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3291: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3304: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3462: warning: statement not
reached
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3606: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 322
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3633: warning: argument #2 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 322
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3659: warning: assignment
type mismatch:
        pointer to char "=" pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3868: warning: argument #4 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 342
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 3869: warning: argument #4 is
incompatible with prototype:
        prototype: pointer to char : "/tmp/php-5.1.6/Zend/zend_API.h",
line 342
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4315: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4315: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4324: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4324: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4341: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4341: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4350: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4350: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4362: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4362: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4369: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4369: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4388: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4388: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4397: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4397: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4407: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4407: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4414: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4414: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4452: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4452: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4462: warning: assignment
type mismatch:
        pointer to unsigned char "=" pointer to char
"/tmp/php-5.1.6/ext/imap/php_imap.c", line 4462: warning: argument #1 is
incompatible with prototype:
        prototype: pointer to const char :
"/usr/include/iso/string_iso.h", line 70
        argument : pointer to unsigned char
cc: acomp failed for /tmp/php-5.1.6/ext/imap/php_imap.c
gmake: *** [ext/imap/php_imap.lo] Error 1

[5 Oct 2006 9:37am UTC] tony2001@php.net
Please use GNU utils (gcc, GNU ld, GNU binutils etc.).
[5 Oct 2006 12:49pm UTC] bnies at bluewin dot ch
Whole stuff compiled with GCC 3.4.1 and GNU stuff:

PATH="/share/app/gnu/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin"
CC=gcc
CFLAGS=-O3 -fPIC -Wall
CXX=g++
CXXFLAGS=-O3 -fPIC -Wall
CPPFLAGS="-I/opt/adnwebmail/include"
LDFLAGS="-R/opt/adnwebmail/lib -L/opt/adnwebmail/lib
-R/opt/adnwebmail/lib/sparcv9 -L/opt/adnwebmail/lib/sparcv9"
LD_OPTIONS=$LDFLAGS

bernd@adnpool02:/tmp/php-5.1.6> gmake
/bin/sh /tmp/php-5.1.6/libtool --silent --preserve-dup-deps
--mode=compile gcc  -Iext/imap/ -I/tmp/php-5.1.6/ext/imap/
-DPHP_ATOM_INC -I/tmp/php-5.1.6/include -I/tmp/php-5.1.6/main
-I/tmp/php-5.1.6 -I/opt/adnwebmail/include/libxml2
-I/tmp/php-5.1.6/ext/date/lib -I/opt/adnwebmail/include
-I/tmp/php-5.1.6/TSRM -I/tmp/php-5.1.6/Zend  -I/opt/adnwebmail/include
-D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -O   -c
/tmp/php-5.1.6/ext/imap/php_imap.c -o ext/imap/php_imap.lo
/tmp/php-5.1.6/ext/imap/php_imap.c:78: error: conflicting types for
'utf8_mime2text'
/opt/adnwebmail/include/utf8.h:548: error: previous declaration of
'utf8_mime2text' was here
/tmp/php-5.1.6/ext/imap/php_imap.c:78: error: conflicting types for
'utf8_mime2text'
/opt/adnwebmail/include/utf8.h:548: error: previous declaration of
'utf8_mime2text' was here
gmake: *** [ext/imap/php_imap.lo] Error 1

Obviously the compiler ist not the problem, its the code with improper
declarations and typecasts.
[5 Oct 2006 12:56pm UTC] derick@php.net
This has been fixed in CVS... try the latest snapshot.
[5 Oct 2006 2:08pm UTC] bnies at bluewin dot ch
Downloaded and tried php5.2-200610051230:

gtar -C /tmp -xvzf php5.2-200610051230.tar.gz
cd /tmp/php5.2-200610051230
./configure --prefix=/opt/adnwebmail \
            --with-apxs2=/opt/adnwebmail/bin/apxs \
            --with-ldap=/opt/adnwebmail \
            --with-imap=/opt/adnwebmail \
            --with-imap-ssl=/opt/adnwebmail \
            --with-ssl=/opt/adnwebmail \
            --with-libxml-dir=/opt/adnwebmail \
            --with-config-file-path=/etc/opt/adnwebmail \
            --enable-safe-mode

gmake
[...]
/bin/sh /tmp/php5.2-200610051230/libtool --silent --preserve-dup-deps
--mode=compile gcc  -Iext/imap/ -I/tmp/php5.2-200610051230/ext/imap/
-DPHP_ATOM_INC -I/tmp/php5.2-200610051230/include
-I/tmp/php5.2-200610051230/main -I/tmp/php5.2-200610051230
-I/opt/adnwebmail/include/libxml2
-I/tmp/php5.2-200610051230/ext/date/lib -I/opt/adnwebmail/include
-I/tmp/php5.2-200610051230/TSRM -I/tmp/php5.2-200610051230/Zend 
-I/opt/adnwebmail/include -D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -O 
 -c /tmp/php5.2-200610051230/ext/imap/php_imap.c -o
ext/imap/php_imap.lo
/tmp/php5.2-200610051230/ext/imap/php_imap.c: In function
`zif_imap_utf8':
/tmp/php5.2-200610051230/ext/imap/php_imap.c:2184: error: too few
arguments to function `utf8_mime2text'
gmake: *** [ext/imap/php_imap.lo] Error 1
[5 Oct 2006 2:26pm UTC] tony2001@php.net
Please try next snapshot (will be available in a couple of hours) or
apply this patch: 
http://news.php.net/php.cvs/40930
[13 Oct 2006 1:00am UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[16 Oct 2006 11:57am UTC] bnies at bluewin dot ch
Tried snapshot php5.2-200610161030. Compilation goes one step further
but fails when linking against libc-client.a:

==CUT==
/bin/sh /tmp/php5.2-200610161030/libtool --silent --preserve-dup-deps
--mode=link gcc -I/usr/include -g -O2  -rpath
/tmp/php5.2-200610161030/libs
-avoid-version -module -L/usr/ucblib
-L/share/app/gnu/gcc/3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1
-L/opt/adnwebmail/lib -R/opt/adnwebmail/lib -L/opt/adnwebmail/lib
-R/opt/adnwebmail/lib/sparcv9 -L/opt/adnwebmail/lib/sparcv9 -R
/usr/ucblib -R
/share/app/gnu/gcc/3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1 -R
/opt/adnwebmail/lib ext/libxml/libxml.lo
ext/pcre/pcrelib/pcre_chartables.lo
ext/pcre/pcrelib/pcre_ucp_searchfuncs.lo
ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo
ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo
ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo
ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo
ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo
ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo
ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo
ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo
ext/pcre/php_pcre.lo ext/ctype/ctype.lo ext/date/php_date.lo
ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo
ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo
ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo
ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo
ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo
ext/dom/domexception.lo ext/dom/namelist.lo
ext/dom/processinginstruction.lo ext/dom/cdatasection.lo
ext/dom/documentfragment.lo ext/dom/domimplementation.lo
ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo
ext/dom/characterdata.lo ext/dom/documenttype.lo
ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo
ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo
ext/dom/domimplementationsource.lo ext/dom/entityreference.lo
ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo
ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo
ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/filter/filter.lo
ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo
ext/filter/callback_filter.lo
ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo
ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo
ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo
ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/iconv/iconv.lo
ext/imap/php_imap.lo ext/json/json.lo ext/json/utf8_to_utf16.lo
ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/ldap/ldap.lo
ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo
ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo
ext/pdo_sqlite/pdo_sqlite.lo ext/pdo_sqlite/sqlite_driver.lo
ext/pdo_sqlite/sqlite_statement.lo ext/pdo_sqlite/sqlite/src/attach.lo
ext/pdo_sqlite/sqlite/src/auth.lo ext/pdo_sqlite/sqlite/src/btree.lo
ext/pdo_sqlite/sqlite/src/build.lo ext/pdo_sqlite/sqlite/src/callback.lo
ext/pdo_sqlite/sqlite/src/date.lo ext/pdo_sqlite/sqlite/src/delete.lo
ext/pdo_sqlite/sqlite/src/expr.lo ext/pdo_sqlite/sqlite/src/func.lo
ext/pdo_sqlite/sqlite/src/hash.lo ext/pdo_sqlite/sqlite/src/insert.lo
ext/pdo_sqlite/sqlite/src/legacy.lo ext/pdo_sqlite/sqlite/src/main.lo
ext/pdo_sqlite/sqlite/src/os_unix.lo ext/pdo_sqlite/sqlite/src/os_win.lo
ext/pdo_sqlite/sqlite/src/os.lo ext/pdo_sqlite/sqlite/src/pager.lo
ext/pdo_sqlite/sqlite/src/pragma.lo ext/pdo_sqlite/sqlite/src/prepare.lo
ext/pdo_sqlite/sqlite/src/printf.lo ext/pdo_sqlite/sqlite/src/random.lo
ext/pdo_sqlite/sqlite/src/select.lo ext/pdo_sqlite/sqlite/src/table.lo
ext/pdo_sqlite/sqlite/src/tokenize.lo
ext/pdo_sqlite/sqlite/src/analyze.lo
ext/pdo_sqlite/sqlite/src/complete.lo
ext/pdo_sqlite/sqlite/src/trigger.lo ext/pdo_sqlite/sqlite/src/update.lo
ext/pdo_sqlite/sqlite/src/utf.lo ext/pdo_sqlite/sqlite/src/util.lo
ext/pdo_sqlite/sqlite/src/vacuum.lo ext/pdo_sqlite/sqlite/src/vdbeapi.lo
ext/pdo_sqlite/sqlite/src/vdbeaux.lo ext/pdo_sqlite/sqlite/src/vdbe.lo
ext/pdo_sqlite/sqlite/src/vdbemem.lo ext/pdo_sqlite/sqlite/src/where.lo
ext/pdo_sqlite/sqlite/src/parse.lo ext/pdo_sqlite/sqlite/src/opcodes.lo
ext/pdo_sqlite/sqlite/src/alter.lo ext/pdo_sqlite/sqlite/src/vdbefifo.lo
ext/pdo_sqlite/sqlite/src/vtab.lo ext/pdo_sqlite/sqlite/src/loadext.lo
ext/posix/posix.lo ext/reflection/php_reflection.lo
ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo
ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/spl/php_spl.lo
ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo
ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_sxe.lo
ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/sqlite/sqlite.lo
ext/sqlite/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo
ext/sqlite/libsqlite/src/opcodes.lo ext/sqlite/libsqlite/src/parse.lo
ext/sqlite/libsqlite/src/encode.lo ext/sqlite/libsqlite/src/auth.lo
ext/sqlite/libsqlite/src/btree.lo ext/sqlite/libsqlite/src/build.lo
ext/sqlite/libsqlite/src/delete.lo ext/sqlite/libsqlite/src/expr.lo
ext/sqlite/libsqlite/src/func.lo ext/sqlite/libsqlite/src/hash.lo
ext/sqlite/libsqlite/src/insert.lo ext/sqlite/libsqlite/src/main.lo
ext/sqlite/libsqlite/src/os.lo ext/sqlite/libsqlite/src/pager.lo
ext/sqlite/libsqlite/src/printf.lo ext/sqlite/libsqlite/src/random.lo
ext/sqlite/libsqlite/src/select.lo ext/sqlite/libsqlite/src/table.lo
ext/sqlite/libsqlite/src/tokenize.lo ext/sqlite/libsqlite/src/update.lo
ext/sqlite/libsqlite/src/util.lo ext/sqlite/libsqlite/src/vdbe.lo
ext/sqlite/libsqlite/src/attach.lo ext/sqlite/libsqlite/src/btree_rb.lo
ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo
ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo
ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo
ext/sqlite/libsqlite/src/trigger.lo regex/regcomp.lo regex/regexec.lo
regex/regerror.lo regex/regfree.lo ext/standard/array.lo
ext/standard/base64.lo ext/standard/basic_functions.lo
ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo
ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo
ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo
ext/standard/file.lo ext/standard/filestat.lo
ext/standard/flock_compat.lo ext/standard/formatted_print.lo
ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo
ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo
ext/standard/lcg.lo ext/standard/link.lo
ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo
ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo
ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo
ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo
ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo
ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo
ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo
ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo
ext/standard/uuencode.lo
ext/standard/filters.lo ext/standard/proc_open.lo
ext/standard/streamsfuncs.lo ext/standard/http.lo
ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/compat.lo
ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.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/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/streams/streams.lo main/streams/cast.lo  main/streams/memory.lo
main/streams/filter.lo main/streams/plain_wrapper.lo
main/streams/userspace.lo main/streams/transports.lo
main/streams/xp_socket.lo main/streams/mmap.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_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo
Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo
Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo
Zend/zend_execute.lo sapi/apache2handler/mod_php5.lo
sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo
sapi/apache2handler/php_functions.lo main/internal_functions.lo -lcrypt
-lc-client -lrt -lldap -llber -lssl -lcrypto -lcrypt -lpam -lresolv -lm
-ldl -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm
-lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket
-lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl
-lcrypt  -o libphp5.la
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x2730     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
<unknown>                           0x2734     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
<unknown>                           0x2738     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
<unknown>                           0x273c     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
<unknown>                           0x2740     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
<unknown>                           0x2744     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
[...]
time                                0x8e0      
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x9d0      
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x117c     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x12bc     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x1654     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x1e14     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x1f34     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x1fc0     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x23ac     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x2e28     
/opt/adnwebmail/lib/libc-client.a(mtx.o)
time                                0x22d4     
/opt/adnwebmail/lib/libc-client.a(mh.o)
time                                0x1c8      
/opt/adnwebmail/lib/libc-client.a(netmsg.o)
realloc                             0xcc       
/opt/adnwebmail/lib/libc-client.a(osdep.o)
printf                              0x54d4     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
gmake: *** [libphp5.la] Error 1
==CUT==

bernd@adnpool02:/tmp/php5.2-200610161030> gcc -v
Reading specs from
/share/app/gnu/gcc/3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1/specs
Configured with: ../configure --prefix=/share/app/gnu/gcc/3.4.1
Thread model: posix
gcc version 3.4.1

bernd@adnpool02:/tmp/php5.2-200610161030> ld -v
GNU ld version 2.14 20030612

bernd@adnpool02:/tmp/php5.2-200610161030> uname -a
SunOS adnpool02 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V240
[16 Oct 2006 1:04pm UTC] tony2001@php.net
Please report this problem to c-client developers.
Thank you.
[17 Oct 2006 10:56am UTC] bnies at bluewin dot ch
Answer from Rene Berber at imap-uw@u.washington.edu list:

==CUT==
Not much help from those guys at php's bugzilla...

The interesting part is the actual compile command which you included in
your
bug report, it is wrong but not your fault.

The compilation is wrong because you are using dynamic and at least one
static
library, c-client, so unless things have changed lately with gcc and
they made
it much smarter the link should specify explicitly the static library. 
This is
done in one of two ways, you can link the whole library by including
just its
name (whithout the -l<name>) or you surround the link command (-static
-lc-client -dynamic).

I haven't tested this but the only easy way seems to do the linking part
by hand
(store the output of the build process with 'gmake | tee make.log', then
copy
that long command and execute it in the directory it is being executed
with one
of the changes).

BTW I'm not an imap developer and I don't speak for them; this is a
user's list.
I hope my comments are useful.
-- René Berber
==CUT==
[16 Nov 2006 2:34pm UTC] bnies at bluewin dot ch
Compilation problem persists with PHP 5.2.0. I am doing nothing very
exotic - just trying to compile PHP for Apache with IMAP support on
Solaris with GNU compiler.

==CUT==
/bin/sh /tmp/php-5.2.0/libtool --silent --preserve-dup-deps --mode=link
gcc -I/usr/include -g -O2  -rpath /tmp/php-5.2.0/libs -avoid-version
-module -L/usr/ucblib
-L/share/app/gnu/gcc/3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1
-L/opt/adnwebmail/lib -R/opt/adnwebmail/lib -L/opt/adnwebmail/lib
-R/opt/adnwebmail/lib/sparcv9 -L/opt/adnwebmail/lib/sparcv9 -R
/usr/ucblib -R
/share/app/gnu/gcc/3.4.1/lib/gcc/sparc-sun-solaris2.8/3.4.1 -R
/opt/adnwebmail/lib ext/libxml/libxml.lo
ext/pcre/pcrelib/pcre_chartables.lo
ext/pcre/pcrelib/pcre_ucp_searchfuncs.lo
ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo
ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo
ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo
ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo
ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo
ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo
ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo
ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo
ext/pcre/php_pcre.lo ext/ctype/ctype.lo ext/date/php_date.lo
ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo
ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo
ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo
ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo
ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo
ext/dom/domexception.lo ext/dom/namelist.lo
ext/dom/processinginstruction.lo ext/dom/cdatasection.lo
ext/dom/documentfragment.lo ext/dom/domimplementation.lo
ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo
ext/dom/characterdata.lo ext/dom/documenttype.lo
ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo
ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo
ext/dom/domimplementationsource.lo ext/dom/entityreference.lo
ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo
ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo
ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/filter/filter.lo
ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo
ext/filter/callback_filter.lo ext/hash/hash.lo ext/hash/hash_md.lo
ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo
ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo
ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo
ext/hash/hash_crc32.lo ext/iconv/iconv.lo ext/imap/php_imap.lo
ext/json/json.lo ext/json/utf8_to_utf16.lo ext/json/utf8_decode.lo
ext/json/JSON_parser.lo ext/ldap/ldap.lo ext/pdo/pdo.lo
ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo
ext/pdo/pdo_sqlstate.lo ext/pdo_sqlite/pdo_sqlite.lo
ext/pdo_sqlite/sqlite_driver.lo ext/pdo_sqlite/sqlite_statement.lo
ext/pdo_sqlite/sqlite/src/attach.lo ext/pdo_sqlite/sqlite/src/auth.lo
ext/pdo_sqlite/sqlite/src/btree.lo ext/pdo_sqlite/sqlite/src/build.lo
ext/pdo_sqlite/sqlite/src/callback.lo ext/pdo_sqlite/sqlite/src/date.lo
ext/pdo_sqlite/sqlite/src/delete.lo ext/pdo_sqlite/sqlite/src/expr.lo
ext/pdo_sqlite/sqlite/src/func.lo ext/pdo_sqlite/sqlite/src/hash.lo
ext/pdo_sqlite/sqlite/src/insert.lo ext/pdo_sqlite/sqlite/src/legacy.lo
ext/pdo_sqlite/sqlite/src/main.lo ext/pdo_sqlite/sqlite/src/os_unix.lo
ext/pdo_sqlite/sqlite/src/os_win.lo ext/pdo_sqlite/sqlite/src/os.lo
ext/pdo_sqlite/sqlite/src/pager.lo ext/pdo_sqlite/sqlite/src/pragma.lo
ext/pdo_sqlite/sqlite/src/prepare.lo ext/pdo_sqlite/sqlite/src/printf.lo
ext/pdo_sqlite/sqlite/src/random.lo ext/pdo_sqlite/sqlite/src/select.lo
ext/pdo_sqlite/sqlite/src/table.lo ext/pdo_sqlite/sqlite/src/tokenize.lo
ext/pdo_sqlite/sqlite/src/analyze.lo
ext/pdo_sqlite/sqlite/src/complete.lo
ext/pdo_sqlite/sqlite/src/trigger.lo ext/pdo_sqlite/sqlite/src/update.lo
ext/pdo_sqlite/sqlite/src/utf.lo ext/pdo_sqlite/sqlite/src/util.lo
ext/pdo_sqlite/sqlite/src/vacuum.lo ext/pdo_sqlite/sqlite/src/vdbeapi.lo
ext/pdo_sqlite/sqlite/src/vdbeaux.lo ext/pdo_sqlite/sqlite/src/vdbe.lo
ext/pdo_sqlite/sqlite/src/vdbemem.lo ext/pdo_sqlite/sqlite/src/where.lo
ext/pdo_sqlite/sqlite/src/parse.lo ext/pdo_sqlite/sqlite/src/opcodes.lo
ext/pdo_sqlite/sqlite/src/alter.lo ext/pdo_sqlite/sqlite/src/vdbefifo.lo
ext/pdo_sqlite/sqlite/src/vtab.lo ext/pdo_sqlite/sqlite/src/loadext.lo
ext/posix/posix.lo ext/reflection/php_reflection.lo
ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo
ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/spl/php_spl.lo
ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo
ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_sxe.lo
ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/sqlite/sqlite.lo
ext/sqlite/sess_sqlite.lo ext/sqlite/pdo_sqlite2.lo
ext/sqlite/libsqlite/src/opcodes.lo ext/sqlite/libsqlite/src/parse.lo
ext/sqlite/libsqlite/src/encode.lo ext/sqlite/libsqlite/src/auth.lo
ext/sqlite/libsqlite/src/btree.lo ext/sqlite/libsqlite/src/build.lo
ext/sqlite/libsqlite/src/delete.lo ext/sqlite/libsqlite/src/expr.lo
ext/sqlite/libsqlite/src/func.lo ext/sqlite/libsqlite/src/hash.lo
ext/sqlite/libsqlite/src/insert.lo ext/sqlite/libsqlite/src/main.lo
ext/sqlite/libsqlite/src/os.lo ext/sqlite/libsqlite/src/pager.lo
ext/sqlite/libsqlite/src/printf.lo ext/sqlite/libsqlite/src/random.lo
ext/sqlite/libsqlite/src/select.lo ext/sqlite/libsqlite/src/table.lo
ext/sqlite/libsqlite/src/tokenize.lo ext/sqlite/libsqlite/src/update.lo
ext/sqlite/libsqlite/src/util.lo ext/sqlite/libsqlite/src/vdbe.lo
ext/sqlite/libsqlite/src/attach.lo ext/sqlite/libsqlite/src/btree_rb.lo
ext/sqlite/libsqlite/src/pragma.lo ext/sqlite/libsqlite/src/vacuum.lo
ext/sqlite/libsqlite/src/copy.lo ext/sqlite/libsqlite/src/vdbeaux.lo
ext/sqlite/libsqlite/src/date.lo ext/sqlite/libsqlite/src/where.lo
ext/sqlite/libsqlite/src/trigger.lo regex/regcomp.lo regex/regexec.lo
regex/regerror.lo regex/regfree.lo ext/standard/array.lo
ext/standard/base64.lo ext/standard/basic_functions.lo
ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo
ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo
ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo
ext/standard/file.lo ext/standard/filestat.lo
ext/standard/flock_compat.lo ext/standard/formatted_print.lo
ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo
ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo
ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo
ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo
ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo
ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo
ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo
ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo
ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo
ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo
ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo
ext/standard/uuencode.lo ext/standard/filters.lo
ext/standard/proc_open.lo ext/standard/streamsfuncs.lo
ext/standard/http.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo
ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo
ext/xmlwriter/php_xmlwriter.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/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo
main/streams/filter.lo main/streams/plain_wrapper.lo
main/streams/userspace.lo main/streams/transports.lo
main/streams/xp_socket.lo main/streams/mmap.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_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo
Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo
Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo
Zend/zend_execute.lo sapi/apache2handler/mod_php5.lo
sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo
sapi/apache2handler/php_functions.lo main/internal_functions.lo -lcrypt
-lc-client -lrt -lldap -llber -lssl -lcrypto -lcrypt -lpam -lresolv -lm
-ldl -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm
-lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket
-lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl
-lcrypt  -o libphp5.la

Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x2730     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
...
<unknown>                           0x6198     
/opt/adnwebmail/lib/libc-client.a(mail.o)
...
<unknown>                           0x25bc     
/opt/adnwebmail/lib/libc-client.a(utf8.o)
...
<unknown>                           0x2ec      
/opt/adnwebmail/lib/libc-client.a(utf8aux.o)
...
<unknown>                           0x74       
/opt/adnwebmail/lib/libc-client.a(rfc822.o)
...
<unknown>                           0x2fe4     
/opt/adnwebmail/lib/libc-client.a(nntp.o)
...
<unknown>                           0x80       
/opt/adnwebmail/lib/libc-client.a(smtp.o)
...
<unknown>                           0x84e4     
/opt/adnwebmail/lib/libc-client.a(imap4r1.o)
...
<unknown>                           0xf8       
/opt/adnwebmail/lib/libc-client.a(pop3.o)
...
<unknown>                           0x25d8     
/opt/adnwebmail/lib/libc-client.a(unix.o)
...
<unknown>                           0x57c8     
/opt/adnwebmail/lib/libc-client.a(mmdf.o)
...
<unknown>                           0x3cc      
/opt/adnwebmail/lib/libc-client.a(phile.o)
...
<unknown>                           0x81c      
/opt/adnwebmail/lib/libc-client.a(mh.o)
...
net_getbuffer                       0xd28      
/opt/adnwebmail/lib/libc-client.a(imap4r1.o)
...
[and much more]
time                                0x1c8      
/opt/adnwebmail/lib/libc-client.a(netmsg.o)
realloc                             0xcc       
/opt/adnwebmail/lib/libc-client.a(osdep.o)
printf                              0x54d4     
/opt/adnwebmail/lib/libc-client.a(osdep.o)
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
gmake: *** [libphp5.la] Error 1
==CUT==
[16 Nov 2006 2:41pm UTC] tony2001@php.net
Why do you think that missing symbols in
/opt/adnwebmail/lib/libc-client.a is some PHP problem?
[16 Nov 2006 3:07pm UTC] bnies at bluewin dot ch
Because I compiled it according

http://ch2.php.net/manual/en/ref.imap.php

and the UW-IMAP stuff compiles fine and the symbols are not found due to
an improper makefile command. See posting from [17 Oct 10:56am UTC].
When I compile it with

-static -lc-client -dynamic

then libphp5.la is compiled fine. The makefile is generated by the
configure script of your package.

Regards,
Bernd
[31 Dec 2006 9:21pm UTC] iliaa@php.net
-static and -dynamic flags will have no effect. Because c-
client is a static lib it'll always be linked statically to 
PHP. 

Can you see if the PHP compiles without those two flags?
[8 Jan 2007 1:00am UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[16 Jan 2007 11:23pm UTC] phpbug at clez dot net
I can confirm the problem on SunOS 5.10 Generic_118833-20 sun4u with gcc
version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

c-client and tidy as well lead to linker errors unless I add -static and
-dynamic around -lc-client and -ltidy in the generated Makefile.
[5 Feb 2007 5:15pm UTC] goudal at enseirb dot fr
Same problem Solaris10 gcc
: when linking with -lc-client
With gcc 3.4.6
Tons of such errors :
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x3df98    
/net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o)
<unknown>                           0x3dfb0    
/net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o)
<unknown>                           0x3dfc8    
/net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o)
<unknown>                           0x3dfd8    
/net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o)
<unknown>                           0x3dfe8    
/net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o)
<unknown>                           0x3dff0    
/net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o)
<
Adding -static -lc-client -dynamic allows the buiding of libphp5.la

But... when trying to install install complains about missing libphp5.a
Installing PHP SAPI module:       apache2handler
/opt/http-2.0.59//build/instdso.sh
SH_LIBTOOL='/opt/http-2.0.59//build/libtool' libphp5.la
/opt/http-2.0.59//modules
/opt/http-2.0.59//build/libtool --mode=install cp libphp5.la
/opt/http-2.0.59//modules/
cp .libs/libphp5.lai /opt/http-2.0.59//modules/libphp5.la
cp .libs/libphp5.a /opt/http-2.0.59//modules/libphp5.a
cp: cannot stat `.libs/libphp5.a': No such file or directory
apxs:Error: Command failed with rc=65536
.
*** Error code 1
The following command caused the error:
/a/big/s0/opt10/src/enseirb/php-5.2.0/build/shtool mkdir -p
'/opt/http-2.0.59//modules' &&
/a/big/s0/opt10/src/enseirb/php-5.2.0/build/shtool mkdir -p
'/opt/http-2.0.59//conf' && /opt/http-2.0.59/bin/apxs -S
LIBEXECDIR='/opt/http-2.0.59//modules' -S
SYSCONFDIR='/opt/http-2.0.59//conf' -i -a -n php5 libphp5.la
make: Fatal error: Command failed for target `install-sapi'
[26 May 2008 7:22am UTC] tuupola at appelsiini dot net
Adding EXTRACFLAGS='-fPIC' when compiling c-client helps with Solaris.
Atleast fixed problem for me on old Sparc Solaris 8 box.
[22 Mar 2009 2:49am UTC] mgt at stellarcore dot net
I confirm that adding Adding EXTRACFLAGS='-fPIC' when you compile
c-client under Solaris 10 also allows it to link.

-Mike

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC