|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 17:00:01 2025 UTC |
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.