Bug #2982: 'make' fails at compiling imap.c (fix included)

From: Date: Thu, 16 Dec 1999 02:42:03 +0000
Subject: Bug #2982: 'make' fails at compiling imap.c (fix included)
Groups: php.dev 
Request: Send a blank email to php-dev+get-13747@lists.php.net to get a copy of this message
From: spamtrap1@lightrealm.net Operating system: Solaris 5.7 i86pc PHP version: 3.0 Latest CVS (15/12/1999) PHP Bug Type: Compile Failure Bug description: 'make' fails at compiling imap.c (fix included) ==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; <

« previous php.dev (#13747) next »