Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread Sascha Schumann
 # ./flex --version
 flex 2.5.27

What does this output?

flex -V -v --version 2/dev/null

- Sascha

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread David Hill

 What does this output?
 
 flex -V -v --version 2/dev/null
 
 - Sascha


# flex-2.5.27/flex -V -v --version 2/dev/null
flex 2.5.27


# flex-2.5.4/flex -V -v --version 2/dev/null
flex-2.5.4/flex version 2.5.4


Nice consistancy eh ?

Dave

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread Sascha Schumann
On Fri, 7 Mar 2003, David Hill wrote:


  What does this output?
 
  flex -V -v --version 2/dev/null
 
  - Sascha


 # flex-2.5.27/flex -V -v --version 2/dev/null
 flex 2.5.27

This should be parsed correctly.  What kind of OS and /bin/sh
do you have?

What does

ver1=2.5.27
ver2=2 5 27
set $ver2; echo $3
IFS=.; set $ver1; echo $3

output?

- Sascha

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread David Hill


  # flex-2.5.27/flex -V -v --version 2/dev/null
  flex 2.5.27

 This should be parsed correctly.  What kind of OS and /bin/sh

OS == Tru65, shell is /bin/sh
 do you have?

 What does

 ver1=2.5.27
 ver2=2 5 27
 set $ver2; echo $3
27
 IFS=.; set $ver1; echo $3
27

The test in php4/configure.in (and php5/configure.in) is

set `echo  | $LEX -V -v --version 2/dev/null | grep 'version' |
cut -d ' ' -f
 3 | sed -e 's/\./ /g' | sed -e 's/[^0-9 ]//g'`
if test ${1} != 2 -o ${2} != 5 -o ${3} -lt 4; then

In the newer flex output it does not have the work 'version' in it,
and the version is the second not the third arg which is why this test
fails.

changing that to
set `echo  | $LEX -V -v --version 2/dev/null |  sed -e 's/^.*
//' -e 's/\./ /g'

works for me in both cases.  It also handles this case:

# flex-2.5.4/flex -v -V --version 21
flex-2.5.4/flex version 2.5.4

which has a double version number.

Dave


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread David Hill


 I set up a debian linux box and after getting the right versions of
 things I am still getting the same results from configure. I am
 getting a syntax error saying else unexpected.

 With php5 module HEAD?

No - php4 HEAD, should I be doing this with php5 instead ?

 What line is the error at?
 What does running the build/buildcheck.sh script output
 for the tool versions?

# ./buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.5 (ok)
buildconf: libtool version 1.4.3 (ok)
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in


# CC='cc -std1' ./configure   (I normally add more options - but I am
trying to get the simple case to work)
...
checking style of sigwait... other
checking style of sigwait... other
checking for mysqli support... no
-l
./configure[53629]: syntax error at line 53630 : `else' unexpected


$ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so

  echo
*

else
  ODBC_LFLAGS=-L$ODBC_LIBDIR
  ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
fi

  echo $ac_t`echo $ODBC_LIBS | sed -e 's!.*/!!'` 16

  else 53629
echo $ac_tno 16
  fi



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread Magnus M
On Fri, 7 Mar 2003 10:07:31 -0500
David Hill [EMAIL PROTECTED] wrote:

 
 
  I set up a debian linux box and after getting the right versions of
  things I am still getting the same results from configure. I am
  getting a syntax error saying else unexpected.
 
  With php5 module HEAD?


I do also get this on Tru64. Removing ext/mysqli helps.


/ Magnus

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread Jani Taskinen
On Fri, 7 Mar 2003, David Hill wrote:



 I set up a debian linux box and after getting the right versions of
 things I am still getting the same results from configure. I am
 getting a syntax error saying else unexpected.

 With php5 module HEAD?

No - php4 HEAD, should I be doing this with php5 instead ?

Don't even try php4 HEAD, it won't work anyway.
You either use:

  # cvs co -rPHP_4_3 php4

or

  # cvs co php5
  
(with the correct -d option of course)

These are the ONLY useful and up-to-date modules at the moment. 

--Jani


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread Sascha Schumann
   # cvs co -rPHP_4_3 php4

Or for experimental code which should not go into a release
branch like PHP_4_3

$ cvs co -r PHP_4 php4

 These are the ONLY useful and up-to-date modules at the moment.

I'm planning on syncing those changes which have been
forgotten to PHP_4, so please stop the FUD.

- Sascha

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread Magnus M@H%) !-
On Fri, 7 Mar 2003 19:35:09 +0100
Magnus M [EMAIL PROTECTED] wrote:

 On Fri, 7 Mar 2003 10:07:31 -0500
 David Hill [EMAIL PROTECTED] wrote:
 
  
  
   I set up a debian linux box and after getting the right versions of
   things I am still getting the same results from configure. I am
   getting a syntax error saying else unexpected.
  
   With php5 module HEAD?
 
 
 I do also get this on Tru64. Removing ext/mysqli helps.

Using php5 HEAD..

19:58 [EMAIL PROTECTED]:/php/php4 # flex --version
flex version 2.5.4
19:59 [EMAIL PROTECTED]:/php/php4 # automake --version
automake (GNU automake) 1.5
19:59 [EMAIL PROTECTED]:/php/php4 # autoconf --version
Autoconf version 2.13
19:59 [EMAIL PROTECTED]:/php/php4 # m4 --version
GNU m4 1.4
19:59 [EMAIL PROTECTED]:/php/php4 # libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54)


/ Magnus

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-07 Thread David Hill

Thank you all for you tips and pointers on this build issue.

Once I switched to the PHP_4_3 tree I things got much better :-)
I built it and hand installed the .so and am seeing a phpinfo() page
in my browser.

Dave


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread Melvyn Sopacua
At 14:40 3/6/2003, Dave Hill wrote:

I have installed:
   gawk-3.1.1
   m4-1.4o
You shouldn't :)
m4-1.4 without the 'o'.
Make sure to rm -rf /usr/local/share/m4|autoconf cause the 'frozen' file,
won't be uninstalled with make uninstall.
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.php


Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread David Hill

 You shouldn't :)
 m4-1.4 without the 'o'.

Thanks ! That does help some. I don't get the buildconf warnings now,
but I am still getting shell syntax errors in the resulting configure
script. arrrgh :-p

Dave


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread Sascha Schumann
 Thanks ! That does help some. I don't get the buildconf warnings now,
 but I am still getting shell syntax errors in the resulting configure
 script. arrrgh :-p

Make sure that autoconf-2.13 is completely reinstalled
(including rm -rf autoconf-2.13).  Otherwise, the frozen
files which were generated using m4-1.4o cause problems.

- Sascha


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread David Hill

  Thanks ! That does help some. I don't get the buildconf warnings
now,
  but I am still getting shell syntax errors in the resulting
configure
  script. arrrgh :-p

 Make sure that autoconf-2.13 is completely reinstalled
 (including rm -rf autoconf-2.13).  Otherwise, the frozen
 files which were generated using m4-1.4o cause problems.

Thanks, I did purge my tools tree and rebuilt all of them.

Moving on to the next bug, it would seem that flex changed how it
reports versions differently

# ./flex --version
./flex version 2.5.4

# ./flex --version
flex 2.5.27

and the code that checks for the right flex will work right with 2.5.4
but not with 2.5.27, the result is a set command with no args which
causes my env to be burped out. The change is needed in configure.in
(I think).

So I backed up to flex 2.5.4 :-p

After that, I get a syntax error related to ext/odbc/config.m4. Don't
understand why, but I get a script block that is missing the first
half of an if then else fi  construct. I tried working around this
by zeroing the config.m4 file, as I am not using odbc anyway, but that
only moved the problem down a module or two.

I set up a debian linux box and after getting the right versions of
things I am still getting the same results from configure. I am
getting a syntax error saying else unexpected.

I encountered what appears to be a typo in odbc/config.m4:
+  PHP_EVAL_LIBLINE([$ODBC_LFLAGS $ODBC_LIBS], OBDC_SHARED_LIBADD)
that should probably be ODBC, but it had nothing to do with my build
problem.

At this point I have spent about 10 hours on this and am no closer to
being able to build test my changes. Anyone have any ideas ? Anyone
want to send me a ./configure that works with HEAD ?

As I can only compile a part of the zend_parse_parameter changes I
have proposed,  I will becommiting them anyway in a moment. I will
also need to commit the OnUpdateInt/Long changes tommorow (friday) so
Jani can do the 4.3.2 kit.

Dave


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread Jani Taskinen
On Thu, 6 Mar 2003, David Hill wrote:

I encountered what appears to be a typo in odbc/config.m4:
+  PHP_EVAL_LIBLINE([$ODBC_LFLAGS $ODBC_LIBS], OBDC_SHARED_LIBADD)
that should probably be ODBC, but it had nothing to do with my build
problem.

Good catch..this closed (hopefully) at least one bug report. :)

--Jani



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] fun with autoconf on Tru64

2003-03-06 Thread Jani Taskinen
On Thu, 6 Mar 2003, David Hill wrote:

I set up a debian linux box and after getting the right versions of
things I am still getting the same results from configure. I am
getting a syntax error saying else unexpected.

With php5 module HEAD?
What line is the error at?
What does running the build/buildcheck.sh script output
for the tool versions?

--Jani



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php