ID: 24156
User updated by: barryn at baptisthealth dot net
Reported By: barryn at baptisthealth dot net
-Status: Feedback
+Status: Open
Bug Type: IMAP related
Operating System: Solaris 8
PHP Version: 4.3.2
New Comment:
I have no more time to assist with this. Here is the information you
requested. You fix this problem (which probably only occurs with
certain versions of the imap headers, maybe only on Solaris) by adding
the code I included, which will do nothing if T is already defined.
Or not...
It's up the powers that be that maintain this package.
Whatever.
Here's the error text:
/bin/sh /usr/share/src/php-4.3.2/libtool --silent --preserve-dup-deps
--mode=compile /usr/share/src/php-4.3.2/meta_ccld -Iext/imap/
-I/usr/share/src/php-4.3.2/ext/imap/ -DPHP_ATOM_INC
-I/usr/share/src/php-4.3.2/include -I/usr/share/src/php-4.3.2/main
-I/usr/share/src/php-4.3.2 -I/opt/netscape/plugins/include
-I/usr/share/src/php-4.3.2/Zend -I/opt/sfw/include
-I/opt/app/oracle/product/8.1.6/rdbms/public
-I/opt/app/oracle/product/8.1.6/rdbms/demo
-I/opt/app/oracle/product/8.1.6/network/public
-I/usr/share/src/php-4.3.2/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/share/src/php-4.3.2/TSRM
-DTHREAD=1 -O2 -I/opt/app/oracle/product/8.1.6/rdbms/demo
-I/opt/app/oracle/product/8.1.6/rdbms/public
-I/opt/app/oracle/product/8.1.6/network/public -pthreads -DZTS
-prefer-pic -c /usr/share/src/php-4.3.2/ext/imap/php_imap.c -o
ext/imap/php_imap.lo
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_mail_copy':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1117: `T' undeclared
(first use in this function)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1117: (Each undeclared
identifier is reported only once
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1117: for each function it
appears in.)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_mail_move':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1145: `T' undeclared
(first use in this function)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_createmailbox':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1168: `T' undeclared
(first use in this function)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_renamemailbox':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1192: `T' undeclared
(first use in this function)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_deletemailbox':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1215: `T' undeclared
(first use in this function)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_subscribe':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1648: `T' undeclared
(first use in this function)
/usr/share/src/php-4.3.2/ext/imap/php_imap.c: In function
`zif_imap_unsubscribe':
/usr/share/src/php-4.3.2/ext/imap/php_imap.c:1671: `T' undeclared
(first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `ext/imap/php_imap.lo'
Previous Comments:
[2003-06-12 13:28:35] [EMAIL PROTECTED]
I need the full *original* error, so remove your hack and recompile
again. It works fine here.
[2003-06-12 13:26:00] barryn at baptisthealth dot net
My source no longer generates this error. Please read the full bug
description. OBVIOUSLY the error was something to effect of:
`T' undeclared (first use in this function)
(Each undeclared identifier is reported only once
for each function it appears in.)
The line number in the source code was 1117
[2003-06-12 13:15:13] [EMAIL PROTECTED]
Please add the full error message here.
[2003-06-12 13:03:17] barryn at baptisthealth dot net
Description:
Compiling with these switches:
./configure --prefix=/opt/php --with-nsapi=/opt/netscape --with-oci8
--enable-dbase --enable-filepro --enable-ftp --enable-sysvsem
--enable-sysvshm --with-zlib --with-jpeg-dir=/opt/sfw
--with-png-dir=/opt/sfw --with-gdbm --with-gd --with-imap --with-mysql
--enable-sigchild --enable-libgcc --with-cpdflib --with-flatfile
on Solaris 8 resulted in T being undefined when compiling php_imap.c
Imap version info:
* Program: Interactive Mail Access Protocol 4rev1 (IMAP4R1)
routines
*
* Author: Mark Crispin
* Networks and Distributed Computing
* Computing & Communications
* University of Washington
* Administration Building, AG-44
* Seattle, WA 98195
* Internet: [EMAIL PROTECTED]
*
* Date:14 October 1988
* Last Edited: 14 November 2001
Reproduce code:
---
I fixed the problem by adding:
#ifndef T
#define T 1
#endif
a