Sorry - still not compiling under solaris
| From: | Dirk Schmidt | Date: | Tue, 21 Sep 1999 13:15:35 +0000 |
| Subject: | Sorry - still not compiling under solaris | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4741@lists.php.net to get a copy of this message | ||
Thanks to Tibor and Sascha for the last two tips. I guess I'm a bit further,
but now i get the following error message. Please Help. Thanks - Dirk
re2c -b url_scanner.re > url_scanner.c
/bin/sh: re2c: not found
make[2]: *** [url_scanner.c] Error 1
make[2]: Leaving directory `/usr/local/php4/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/php4/ext'
make: *** [all-recursive] Error 1
So I downloaded the re2c - Tool, but can't compile it.
Error message:
--------------------------------------------------------------------
gcc -o code.o -O2 -Wall -I. -c code.cc
In file included from substr.h:10,
from code.cc:10:
basics.h:9: declaration does not declare anything
basics.h:10: parse error before `true'
basics.h:11: parse error before `false'
code.cc: In method `BitMap::BitMap(Go *, State *)':
code.cc:90: warning: member initializers for `class BitMap * BitMap::next'
code.cc:91: warning: and `class Go * BitMap::go'
code.cc:105: warning: will be re-ordered to match declaration order
code.cc: In method `void Accept::emit(ostream &)':
code.cc:225: warning: comparison between signed and unsigned
code.cc: In method `void Rule::emit(ostream &)':
code.cc:244: warning: comparison between signed and unsigned
code.cc: In method `void DFA::emit(ostream &)':
code.cc:571: warning: comparison between signed and unsigned
make: *** [code.o] Error 1
----------------------------------------------------------------------
content of basics.h :
-----------------------------------------------------------------------
#ifndef _basics_h
#define _basics_h
// $Log: basics.h,v $
//Revision 1.1 1994/04/08 15:27:59 peter
//Initial revision
//
typedef unsigned int bool;
typedef bool true = (0 == 0);
typedef bool false = (!true);
typedef unsigned int uint;
typedef unsigned char uchar, byte;
typedef unsigned short ushort, word;
typedef unsigned long ulong, dword;
#endif
------------------------------------------------------------------------