php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16977 Compiling Zend: parse error before `MAILSTREAM'
Submitted: 2002-05-02 17:10 UTC Modified: 2002-05-03 06:35 UTC
From: jparneodo at yahoo dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.0 OS: RedHat7.2
Private report: No CVE-ID: None
 [2002-05-02 17:10 UTC] jparneodo at yahoo dot fr
shell> make
Making all in Zend
make[1]: Entre dans le r?pertoire `/home/jpa/dev/php-4.2.0/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DLINUX=22 -DMOD_SSL=208108
 -DUSE_HSREGEX -DEAPI -I../TSRM  -g -O2 -prefer-pic -c -o zend_language_parser.lo `test -f zend_language_parse
r.c || echo './'`zend_language_parser.c
In file included from zend.h:55,
                 from zend_compile.h:24,
                 from zend_language_parser.c:147:
/usr/local/include/unix.h:182: parse error before `MAILSTREAM'
/usr/local/include/unix.h:182: warning: no semicolon at end of struct or union
/usr/local/include/unix.h:189: parse error before `}'
...

shell> more config.nice
#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs=/home/apachessl/bin/apxs' \
'--with-mysql' \
'--with-system-regex' \
'--enable-track-vars' \
'--enable-memory-limits' \
'--with-xml' \
'--with-imap' \
'--with-gd' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-bz2' \
'--with-zlib' \
'--with-mcrypt' \
'--enable-sockets' \
'--without-dom' \
'--enable-inline-optimization' \
'--with-curl' \
'--with-pcre' \
"$@"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-03 05:18 UTC] jparneodo at yahoo dot fr
Investigations:
* I've found the symbol MAILSTREAM in c-client (imap-2001a) in file /usr/local/include/mail.h
* minimal configuration tested:
   ./configure --with-apxs=/home/apachessl/bin/apxs
or ./configure --with-apxs=/home/apachessl/bin/apxs --with-imap=/usr/local

Same result.
 [2002-05-03 06:35 UTC] jparneodo at yahoo dot fr
Solved!
Not a 4.2.0 problem but a RedHat misconfiguration.

Makefile in imap package says:
  # lnp   Linux with Pluggable Authentication Modules (PAM)
  # lrh   RedHat Linux 7.2
you must choose lnp and not lrh on RedHat 7.2 with PAM

Files to copy to /usr/local/include:
c-client.h  
env.h       
ftl.h      
linkage.h  
nl.h    
osdep.h   
smtp.h
env_unix.h  
fs.h     
imap4r1.h  
mail.h     
misc.h    
nntp.h  
rfc822.h  
tcp.h
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC