Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in ubuntu 24.04 #10

Open
thaamaraiselvan opened this issue Jul 11, 2024 · 1 comment
Open

error in ubuntu 24.04 #10

thaamaraiselvan opened this issue Jul 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@thaamaraiselvan
Copy link

thaamaraiselvan commented Jul 11, 2024

When I integrated this plugin with ubuntu 24.04 I got the below error.

/usr/local/src/imap-1.0.0/php_imap.h:50:32: error: expected declaration specifiers or ‘...’ before string constant
   50 |  ZEND_DIAGNOSTIC_IGNORED_START("-Wstrict-prototypes")
      |                                ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c-client/c-client.h:41,
                 from /usr/local/src/imap-1.0.0/php_imap.h:51:
/usr/include/c-client/mail.h:636:13: error: field ‘text’ has incomplete type
  636 |   SIZEDTEXT text;               /* string text */
      |             ^~~~
/usr/include/c-client/mail.h:750:13: error: field ‘text’ has incomplete type
  750 |   SIZEDTEXT text;               /* text */
      |             ^~~~
/usr/include/c-client/mail.h:914:13: error: field ‘line’ has incomplete type
  914 |   SIZEDTEXT line;               /* header line */
      |             ^~~~
/usr/include/c-client/mail.h:915:13: error: field ‘text’ has incomplete type
  915 |   SIZEDTEXT text;               /* text in header */
      |             ^~~~
/usr/include/c-client/mail.h:1133:13: error: field ‘text’ has incomplete type
 1133 |   SIZEDTEXT text;               /* scratch buffer for text */
      |             ^~~~
/usr/local/src/imap-1.0.0/php_imap.h:52:29: error: expected ‘;’ before ‘typedef’
   52 |  ZEND_DIAGNOSTIC_IGNORED_END
      |                             ^
      |                             ;
/usr/local/src/imap-1.0.0/php_imap.h:91:19: error: field ‘text’ has incomplete type
   91 |         SIZEDTEXT text;
      |                   ^~~~
/usr/local/src/imap-1.0.0/php_imap.h:98:19: error: field ‘text’ has incomplete type
   98 |         SIZEDTEXT text;
      |                   ^~~~
/usr/local/src/imap-1.0.0/php_imap.c: In function ‘zif_imap_utf8’:
/usr/local/src/imap-1.0.0/php_imap.c:2219:19: error: storage size of ‘src’ isn’t known
 2219 |         SIZEDTEXT src, dest;
      |                   ^~~
/usr/local/src/imap-1.0.0/php_imap.c:2219:24: error: storage size of ‘dest’ isn’t known
 2219 |         SIZEDTEXT src, dest;
      |                        ^~~~
/usr/local/src/imap-1.0.0/php_imap.c: In function ‘zif_imap_mail_compose’:
/usr/local/src/imap-1.0.0/php_imap.c:3329:41: warning: implicit declaration of function ‘zend_zval_value_name’; did you mean ‘zend_zval_type_name’? [-Wimplicit-function-declaration]
 3329 |                                         zend_zval_value_name(data));
      |                                         ^~~~~~~~~~~~~~~~~~~~
      |                                         zend_zval_type_name
make: *** [Makefile:210: php_imap.lo] Error 1
cmb69 added a commit that referenced this issue Sep 12, 2024
@cmb69
Copy link
Member

cmb69 commented Sep 12, 2024

Are you trying to build ext/imap for PHP 8.2 or older? That is not supported, since you can (and should) use the bundled ext/imap prior to PHP 8.4.0.

@cmb69 cmb69 added the question Further information is requested label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants