Re: longopts in basic_functions.c:1521
| From: | Melvyn Sopacua | Date: | Mon, 21 Oct 2002 19:26:13 +0000 |
| Subject: | Re: longopts in basic_functions.c:1521 | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89836@lists.php.net to get a copy of this message | ||
At 04:04 10/22/2002 +0900, Moriyoshi Koizumi wrote:
./buildconf needed? msopacua@trinity.webteckies.org ~/cvs/php4 $ history [...] 513 export MAKE=gmake 514 ./buildconf 515 ./configure-cmd.sh 516 gmake 517 vi ext/standard/basic_functions.c Look at the code: #ifdef HAVE_GETOPT_LONG
struct option *longopts = NULL;
int longindex = 0;
#endif
struct only defined, when HAVE_GETOPT_LONG is defined.
line 1521 is the only reference to struct longopts that is not protected.
Don't see how buildconf could help, and I even did that.
Moriyoshi Melvyn Sopacua <msopacua@idg.nl> wrote: Hi, Current CVS doesn't compile for me, cause longopts isn't protected with an #ifdef HAVE_GETOPT_LONG and an alternate approach. /home/msopacua/cvs/php4/ext/standard/basic_functions.c: In function `zif_getopt': /home/msopacua/cvs/php4/ext/standard/basic_functions.c:1521: `longopts' undeclared (first use in this function) /home/msopacua/cvs/php4/ext/standard/basic_functions.c:1521: (Each undeclared identifier is reported only once /home/msopacua/cvs/php4/ext/standard/basic_functions.c:1521: for each function it appears in.) /home/msopacua/cvs/php4/ext/standard/basic_functions.c:1521: `longindex' undeclared (first use in this function) gmake: *** [ext/standard/basic_functions.lo] Error 1 Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacua <@Logan> I spent a minute looking at my own code by accident. <@Logan> I was thinking "What the hell is this guy doing?" -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.phpMet vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacua <@Logan> I spent a minute looking at my own code by accident. <@Logan> I was thinking "What the hell is this guy doing?"