php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56317 Won't install
Submitted: 2005-02-21 10:57 UTC Modified: 2006-02-27 07:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: nospam at nospam dot com Assigned:
Status: No Feedback Package: fann (PECL)
PHP Version: 4.3.10 OS: FreeBSD
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nospam at nospam dot com
New email:
PHP Version: OS:

 

 [2005-02-21 10:57 UTC] nospam at nospam dot com
Description:
------------
desktopbsd# pear install http://pecl.php.net/get/fann-0.1.1.tgz
downloading fann-0.1.1.tgz ...
Starting to download fann-0.1.1.tgz (9,509 bytes)
.....done: 9,509 bytes
3 source files, building
running: phpize
autoheader253: `config.h.in' is created
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
building in /var/tmp/pear-build-admin/fann-0.1.1
running: /tmp/tmp7RlBC2/fann-0.1.1/configure
checking build system type... i386-unknown-freebsd4.10
checking host system type... i386-unknown-freebsd4.10
checking for gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
checking for PHP extension directory... /usr/local/lib/php/20020429
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for fann support... yes, shared
checking for fann files in default path... found in /usr/local
checking for fann_get_MSE in -lfann... no
configure: error: wrong fann lib version or lib not found
`/tmp/tmp7RlBC2/fann-0.1.1/configure' failed

Expected result:
----------------
I expect it not to fail!

I compiled fann from: fann-1.2.0.tar.gz

The fann header files are present: /usr/local/include/fann.h

 /usr/local/include/fann.h
 /usr/local/include/doublefann.h
 /usr/local/include/fann_internal.h
 /usr/local/include/floatfann.h
 /usr/local/include/fann_data.h
 /usr/local/include/fixedfann.h
 /usr/local/include/fann_errno.h
 /usr/local/include/fann_activation.h

The fann library files are present:

 /usr/local/lib/libfloatfann.so.3
 /usr/local/lib/libfloatfann.so
 /usr/local/lib/libfloatfann.la
 /usr/local/lib/libfloatfann.a
 /usr/local/lib/libdoublefann.so.3
 /usr/local/lib/libdoublefann.so
 /usr/local/lib/libdoublefann.la
 /usr/local/lib/libdoublefann.a
 /usr/local/lib/libfixedfann.so.3
 /usr/local/lib/libfixedfann.so
 /usr/local/lib/libfixedfann.la
 /usr/local/lib/libfixedfann.a
 /usr/local/lib/libfann.so.3
 /usr/local/lib/libfann.so
 /usr/local/lib/libfann.la
 /usr/local/lib/libfann.a
 /usr/local/lib/pkgconfig/fann.pc
 /usr/local/lib/libfloatfann.so.2
 /usr/local/lib/libdoublefann.so.2
 /usr/local/lib/libfixedfann.so.2
 /usr/local/lib/libfann.so.2



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-23 10:07 UTC] mike@php.net
Please try the latest package version and report back if you're still experiencing this issue.
 [2006-02-27 07:22 UTC] mike@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2012-06-10 14:35 UTC] rafal at nrafal dot pl
Hi!

Workaround for this - edit config.m4 and change this lines:

PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
  [
    PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FANN_DIR/lib, FANN_SHARED_LIBADD)
    AC_DEFINE(HAVE_FANNLIB,1,[ ])
  ],[
    AC_MSG_ERROR([wrong fann lib version or lib not found])
  ],[
    -L$FANN_DIR/lib -lm -ldl
  ])

Into this:
PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FANN_DIR/lib, FANN_SHARED_LIBADD)
AC_DEFINE(HAVE_FANNLIB,1,[ ])
PHP_SUBST(FANN_SHARED_LIBADD)

It will cause configure to not check for this option, and it'll generate proper 
makefile. After that, you should be able to execute make && make install. 
Remember to add extension=fann.so to your php.ini.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 02 10:01:30 2024 UTC