php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2982 'make' fails at compiling imap.c (fix included)
Submitted: 1999-12-15 21:42 UTC Modified: 2000-08-01 15:58 UTC
From: spamtrap1 at lightrealm dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS (15/12/1999) OS: Solaris 5.7 i86pc
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spamtrap1 at lightrealm dot net
New email:
PHP Version: OS:

 

 [1999-12-15 21:42 UTC] spamtrap1 at lightrealm dot net
  ==The Build Environment==

SunOS 2.7 i86pc
gcc version 2.95 19990728 (release)
GNU Make version 3.78.1
GNU Bison version 1.28
flex version 2.5.4


  ==The Failure==

 bash-2.03$ ./configure --with-mysql=../mysql-3.22.27 --with-apache=../apache_1.3.9 --enable-track-vars --enable-versioning --with-imap=../imap-4.7
[...]
 bash-2.03$ make
[...]
gcc -g -O2 -O2   -I. -I.   -I../apache_1.3.9/src/include
-I../apache_1.3.9/src/os/unix
-I/export/home/ssimpson/php3/../imap-4.7/include
-I/export/home/ssimpson/php3/../mysql-3.22.27/include    -c functions/imap.c
-o functions/imap.o
functions/imap.c: In function `imap_init':
functions/imap.c:429: `unixdriver' undeclared (first use in this function)
functions/imap.c:429: (Each undeclared identifier is reported only once
functions/imap.c:429: for each function it appears in.)
functions/imap.c:435: `mhdriver' undeclared (first use in this function)
functions/imap.c:436: `mxdriver' undeclared (first use in this function)
functions/imap.c:438: `mbxdriver' undeclared (first use in this function)
functions/imap.c:439: `tenexdriver' undeclared (first use in this function)
functions/imap.c:440: `mtxdriver' undeclared (first use in this function)
functions/imap.c:442: `mmdfdriver' undeclared (first use in this function)
functions/imap.c:443: `newsdriver' undeclared (first use in this function)
functions/imap.c:444: `philedriver' undeclared (first use in this function)
make: *** [functions/imap.o] Error 1


  ==The Fix==

A friend far wiser than I regarding C matters recommended the following change to functions/imap.c:

87,98d86
< /* Addition by Andrea Fiedler <ala@phocat.com> */
< 
< extern DRIVER unixdriver;
< extern DRIVER mhdriver;
< extern DRIVER mxdriver;
< extern DRIVER mbxdriver;
< extern DRIVER tenexdriver;
< extern DRIVER mtxdriver;
< extern DRIVER mmdfdriver;
< extern DRIVER newsdriver;
< extern DRIVER philedriver;
< 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-09 14:58 UTC] hholzgra at cvs dot php dot net
theese extern declarations are in a file linkage.h 
in the imap-4.7 include dir

this file will be included by mail.h in the same
dir which itself gets included by phps imap source files

may it be that on your system there are other files
by the names mail.h and/or linkage.h that get included
instead of those in imap-4.7 because they appear
earlyer on in the include path ?
 [2000-08-01 15:58 UTC] hholzgra@php.net
no feedback, noone else seems to have theese problems,
a lot has changed in imap ext and esp. imap configure,
so i'll close it
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 06:01:31 2024 UTC