Operating System - HP-UX
1756333 Members
3109 Online
108846 Solutions
New Discussion юеВ

compliling probs. lex/flex

 
SOLVED
Go to solution
Michael Geist
Advisor

compliling probs. lex/flex

Ig I try to compile php4.0.6 I get the following error:

checking lex output file root... ./configure[2343]: lex: not found.
configure: error: cannot find output from lex; giving up

I have installed flex***.depot and all other files which are requiered (read INSTALL).
What can I do?

Regards
Michael
15 REPLIES 15
Alex Glennie
Honored Contributor

Re: compliling probs. lex/flex

start allocating some points to previous replies which have been succesful ?
Michael Geist
Advisor

Re: compliling probs. lex/flex

demats02:/usr/local/php-4.0.6# ./configure
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
Updated php_version.h
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... hppa2.0-hp-hpux10.20
demats02:/usr/local/php-4.0.6# ./configure
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... hppa2.0-hp-hpux10.20
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... no
checking how to run the C preprocessor... cc -E
checking for AIX... no
checking for cc option to accept ANSI C... no
checking for ranlib... ranlib
checking whether cc understands -c and -o together... yes
checking whether ln -s works... yes
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... ./configure[2343]: lex: not found.
configure: error: cannot find output from lex; giving up

Alex Glennie
Honored Contributor

Re: compliling probs. lex/flex

have you added the full path to the flex binary to your $PATH variable before running the ./configure script ? (it's a guess)
Michael Geist
Advisor

Re: compliling probs. lex/flex

sure .... LOL, in my own .profile. But I started configure as another user ... see my question as never asked ;o)
thx
Michael
Alex Glennie
Honored Contributor
Solution

Re: compliling probs. lex/flex

Michael are you saying this problem is now resolved ?
Michael Geist
Advisor

Re: compliling probs. lex/flex

let me say ... yes... this problem is solved... but after configure I do "make".

(Bundled) cc: "zend_hash.h", line 101: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 114: error 1506: Parameters allowed in function definition only.
(Bundled) cc: "zend_hash.h", line 119: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 119: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 121: error 1616: Unable to open intrinsic file "/usr/local/lib/sysintr".
(Bundled) cc: "zend_hash.h", line 121: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 121: error 1000: Unexpected symbol: "void".
(Bundled) cc: "zend_hash.h", line 122: error 1616: Unable to open intrinsic file "/usr/local/lib/sysintr".
(Bundled) cc: "zend_hash.h", line 122: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 122: error 1000: Unexpected symbol: "va_list".
(Bundled) cc: "zend_hash.h", line 122: error 1000: Unexpected symbol: "zend_hash_key".
(Bundled) cc: "zend_hash.h", line 128: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 128: error 1000: Unexpected symbol: "uint".
(Bundled) cc: "zend_hash.h", line 134: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 134: error 1000: Unexpected symbol: "uint".
(Bundled) cc: "zend_hash.h", line 137: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 137: error 1000: Unexpected symbol: "uint".
(Bundled) cc: "zend_hash.h", line 138: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 138: error 1000: Unexpected symbol: "uint".
(Bundled) cc: "zend_hash.h", line 139: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 142: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 142: error 1000: Unexpected symbol: "uint".
(Bundled) cc: "zend_hash.h", line 143: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 144: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 147: error 1000: Unexpected symbol: "*".
(Bundled) cc: "zend_hash.h", line 147: error 1000: Unexpected symbol: ")".
(Bundled) cc: "zend_hash.h", line 122: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 122: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 122: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 122: error 1573: Type of "hash_key" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 128: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 128: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 134: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 134: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 137: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 137: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: "zend_hash.h", line 138: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "zend_hash.h", line 138: error 1573: Type of "ht" is undefined due to an illegal declaration.
(Bundled) cc: Panic 2161: Maximum allowed number of errors exceeded.

Santosh Nair_1
Honored Contributor

Re: compliling probs. lex/flex

Looks like you're using the bundled HP compiler which is NOT ansi compliant. I assume you don't have the HP ANSI C compiler installed on your system. Try installing GCC..you should be able to get it from the porting center. Remember that you also need to install binutils in order to get GCC working.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Michael Geist
Advisor

Re: compliling probs. lex/flex

thx. i have installed gcc package. after deleting config.cache and running again configure ... make seems to be ok ;o)
thx a lot
michael
Michael Geist
Advisor

Re: compliling probs. lex/flex

while running "make" the following error occured:

Making all in TSRM
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c TSRM.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c tsrm_strtok_r.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c tsrm_virtual_cwd.c
tsrm_virtual_cwd.c: In function `virtual_open':
tsrm_virtual_cwd.c:557: `mode_t' is promoted to `int' when passed through `...'
tsrm_virtual_cwd.c:557: (so you should pass `int' not `mode_t' to `va_arg')
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.