bukka / php-fann

PHP wrapper for FANN (Fast Artificial Neural Network Library)
Other
213 stars 35 forks source link

error while configure #2

Closed O-n-y closed 11 years ago

O-n-y commented 11 years ago

i try to build it from pecl and source and getting this error while ./configure: /root/tmp/pear/fann/configure: line 4895: syntax error near unexpected token fi' /root/tmp/pear/fann/configure: line 4895:fi' ERROR: `/root/tmp/pear/fann/configure' failed

full log:

/home/php5321/bin/pecl install fann downloading fann-1.0.0.tgz ... Starting to download fann-1.0.0.tgz (22,660 bytes) ........done: 22,660 bytes 5 source files, building WARNING: php_bin /home/php5321/bin/php appears to have a suffix 5321/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 building in /root/tmp/pear/pear-build-scushkagKFxDn/fann-1.0.0 running: /root/tmp/pear/fann/configure configure: loading site script /usr/share/site/i686-pc-linux-gnu checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /home/php5321 checking for PHP includes... -I/home/php5321/include/php -I/home/php5321/include/php/main -I/home/php5321/include/php/TSRM -I/home/php5321/include/php/Zend -I/home/php5321/include/php/ext -I/home/php5321/include/php/ext/date/lib checking for PHP extension directory... /home/php5321/lib/php/extensions/no-debug-non-zts-20090626 checking for PHP installed headers prefix... /home/php5321/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.13.5 (ok) checking for gawk... gawk checking for fann support... yes, shared /root/tmp/pear/fann/configure: line 4895: syntax error near unexpected token fi' /root/tmp/pear/fann/configure: line 4895:fi' ERROR: `/root/tmp/pear/fann/configure' failed

bukka commented 11 years ago

Hi,

this looks a bit strange. I just tested on PHP-5.3 (API 20090626) and pecl installation works fine. Please could you give me more info?

Do you compile PHP or use distro package? If distro, what distro do you use?

The strange thing is this warning: php_bin /home/php5321/bin/php appears to have a suffix 5321/bin/php, but config variable php_suffix does not match

Have you got any idea what it is?

Have you tried to install different packages from pecl? (I am asking because I need to know if it's just this package or others as well)

Could you possibly upload somewhere /root/tmp/pear/fann/configure ? I would compare it with mine...

Thanks

O-n-y commented 11 years ago

Hi!

i made it installed by deleting else fi on line that error appears.

But not tested in work yet (in older version that was testing 1 or 2 year ago there were bugs sos its not work correctly for me, but maybe now it would :)

php from src. compile line: ./configure --with-config-file-path=/home/php5321 --with-exec-dir=/home/php5321/bin/ --prefix=/home/php5321 --with-mod_charset --with-libxml-dir --with-openssl --with-zlib --with-bz2 --with-curl --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-gettext --enable-mbstring --with-mcrypt=/usr/lib/php5/extensions/mcrypt.so --with-mime-magic --with-mysql=/home/mysql -with-mysql-sock=/tmp/mysql.sock --with-mysqli=/home/mysql/bin/mysql_config --enable-sockets --with-regex --with-iconv-dir --with-xsl --enable-zip --with-pear --with-zend-vm --enable-zend-multibyte --with-imap-ssl --with-pear --with-snmp --with-rrdtool --enable-fastcgi --with-imap --with-apxs2=/home/base1/bin/apxs --with-pdo-mysql --enable-mod-charset --enable-roxen-zts --enable-dtrace --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-zip --disable-debug --with-mhash=/usr/local/lib

*warning with suffix does not metter its not affect on anything (it's pecl parse bug but not crtitical).

fann configure is in attach

i deleted after: _fi ac_res=eval 'as_val=${'$as_ac_Lib'} $as_echo "$as_val"' { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } as_val=eval 'as_val=${'$as_ac_Lib'} $as_echo "$as_val"' else fi_

i thing it can be cause i have pretty old gcc (4.41) because cant setup more new one without update OS. it's opensuse 11.2

p.s. this error when appear on src install and pecl install (i thing there identical code version)

2013/9/7 Jakub Zelenka notifications@github.com

Hi,

this looks a bit strange. I just tested on PHP-5.3 (API 20090626) and pecl installation works fine. Please could you give me more info?

Do you compile PHP or use distro package? If distro, what distro do you use?

The strange thing is this warning: php_bin /home/php5321/bin/php appears to have a suffix 5321/bin/php, but config variable php_suffix does not match

Have you got any idea what it is?

Have you tried to install different packages from pecl? (I am asking because I need to know if it's just this package or others as well)

Could you possibly upload somewhere /root/tmp/pear/fann/configure ? I would compare it with mine...

Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/bukka/php-fann/issues/2#issuecomment-24008193 .

Best regards, Anna Golubkova

bukka commented 11 years ago

please can you send the config to bukka at php net. I am not getting attachements in issue...

I am not sure if I can fix that. config.m4 looks fine and it works on the most configuration including mine. But I will have a look... ;)

I think that in your case if you already compile php, it's probably better to comile extension as well (phpize...). See manual for details.

But thanks for the reporting this anyway. ;)

O-n-y commented 11 years ago

just want other users can install it without bugs ))) see attach (copy send to bukka at php dot net)

Best regards Anna Golubkova ^_^

2013/9/8 Jakub Zelenka notifications@github.com

please can you send the config to bukka at php net. I am not getting attachements in issue...

I am not sure if I can fix that. config.m4 looks fine and it works on the most configuration including mine. But I will have a look... ;)

I think that in your case if you already compile php, it's probably better to comile extension as well (phpize...). See manual for details.

But thanks for the reporting this anyway. ;)

— Reply to this email directly or view it on GitHubhttps://github.com/bukka/php-fann/issues/2#issuecomment-24010041 .

bukka commented 11 years ago

Thanks. got it!

The error is definitely in configuration when configure is generated by autoconf. I see that you have autoconf 2.63 (I have 2.69). I will install your version and try if I can recreate.

Could you please check your versions of autoconf (think that pecl uses your version so it should be 2.63 but just to make sure), automake and libtool. I would like create exactly the same file. Please run this

autoconf --version
automake --version
libtool --version

and post here the result?

Thanks a lot

bukka commented 11 years ago

I managed to recreate the bug and fix it. The new version has been release on PECL as well. Thanks!

O-n-y commented 11 years ago

:) good, thanks!

2013/9/9 Jakub Zelenka notifications@github.com

I managed to recreate the bug and fix it. The new version has been release on PECL as well. Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/bukka/php-fann/issues/2#issuecomment-24105527 .

Best regards, Anna Golubkova

O-n-y commented 11 years ago

Maybe it still be helpful for you :)

autoconf --version autoconf (GNU Autoconf) 2.63 automake --version automake (GNU automake) 1.11 libtool --version ltmain.sh (GNU libtool) 2.2.6

2013/9/8 Jakub Zelenka notifications@github.com

Thanks. got it!

The error is definitely in configuration when configure is generated by autoconf. I see that you have autoconf 2.63 (I have 2.69). I will install your version and try if I can recreate.

Could you please check your versions of autoconf (think that pecl uses your version so it should be 2.63 but just to make sure), automake and libtool. I would like create exactly the same file. Please run this

autoconf --version automake --version libtool --version

and post here the result?

Thanks a lot

— Reply to this email directly or view it on GitHubhttps://github.com/bukka/php-fann/issues/2#issuecomment-24018396 .

Best regards, Anna Golubkova

bukka commented 11 years ago

thanks it was because of autoconf. I got the same error when I installed it.

It would be great if you could try it if it works now. I think that it should be alright but just to double check... :) Thanks a lot!