Hi,

I'm trying PHP5 to get compiled with the imap2006b client libraries. The compiler options are:

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

[EMAIL PROTECTED]:/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

[EMAIL PROTECTED]:/tmp/php5.2-200610161030> ld -v
GNU ld version 2.14 20030612

[EMAIL PROTECTED]:/tmp/php5.2-200610161030> uname -a
SunOS adnpool02 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V240

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

### PHP
gtar -C /tmp -xvzf phpphp5.2-200610161030.tar.gz
cd /tmp/phpphp5.2-200610161030
./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


The linker errors are:

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


I already posted this to PHP Bugzilla but they forwarded me to the developers of the IMAP c-client library.

http://bugs.php.net/bug.php?id=39045

Any hints or bugfixes would be appreciated. Thanks in advance.

Regards,
Bernd
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to