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

From: Date: Sat, 18 Dec 1999 21:31:35 +0000
Subject: Re: Bug #2982: 'make' fails at compiling imap.c (fix included)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-13841@lists.php.net to get a copy of this message
This fixes the symptom, not the problem. The real solution is to have a proper linkage.h file in /usr/local/bin/, as mentioned in the online docs. By removing all those lines, you are in essence removing a large majority of c-client drivers. Mark > > 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; > < > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#13841) next »