CRM114 php extension
Thomas Spahni <[email protected]> Sun, 8 Jan 2012 19:36:37 +0100 (CET)
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 7 Jan 2012, Khalid Ahsein wrote:
> Hello,
>
> For pecl-crm114, config.m4 now check for any libcrm114.a before including
> crm114_*.c
>
> Khalid
Hello Khalid
Something is broken, either with my package for libcrm114.a or something
else. When I set up pecl-crm114 I get this during the configure step:
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 whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main
-I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/extensions
checking for PHP installed headers prefix... /usr/include/php5
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 crm114 support... yes, shared
checking for libcrm114.a directory... yes, shared
checking whether to enable binary/text data block... yes
checking for tre/regex.h... found in /usr
checking for regfree in -ltre... yes
checking for libcrm114.a... found in /usr/lib
checking for crm114_learn_text in -lcrm114... no
configure: error: wrong libcrm114 version or lib not found
This is a snippet from config.log
configure:4468: checking for libcrm114.a
configure:4473: result: found in /usr/lib
configure:4599: checking for crm114_learn_text in -lcrm114
configure:4624: cc -o conftest -g -O2 -lcrm114 conftest.c -lcrm114 >&5
/usr/lib/gcc/i586-suse-linux/4.5/../../../libcrm114.a(crm114_bit_entropy.o):
In function `stats_2_entropy':
/home/tsp/programs/libcrm/compile/libcrm114-20100726/crm114_bit_entropy.c:853:
undefined reference to `logl'
/usr/lib/gcc/i586-suse-linux/4.5/../../../libcrm114.a(crm114_bit_entropy.o):
In function `crm114__init_block_bit_entropy':
/home/tsp/programs/libcrm/compile/libcrm114-20100726/crm114_bit_entropy.c:1637:
undefined reference to `sqrt'
/usr/lib/gcc/i586-suse-linux/4.5/../../../libcrm114.a(crm114_bit_entropy.o):
In function `crm114_classify_text_bit_entropy':
/home/tsp/programs/libcrm/compile/libcrm114-20100726/crm114_bit_entropy.c:2613:
undefined reference to `pow'
/usr/lib/gcc/i586-suse-linux/4.5/../../../libcrm114.a(crm114_svm.o): In
function `crm114_classify_features_svm':
/home/tsp/programs/libcrm/compile/libcrm114-20100726/crm114_svm.c:2593:
undefined reference to `tanh'
/home/tsp/programs/libcrm/compile/libcrm114-20100726/crm114_svm.c:2594:
undefined reference to `pow'
... <many more, all similar>
collect2: ld returned 1 exit status
configure:4624: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_LIBTRE 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char crm114_learn_text ();
| int
| main ()
| {
| return crm114_learn_text ();
| ;
| return 0;
| }
configure:4633: result: no
configure:4745: error: wrong libcrm114 version or lib not found
When I remove /usr/lib/libcrm114.a and use the bundled code all works
well. As a side note I can add that Bill's simple_demo.c compiles and
links well with the packaged library. Any idea what's wrong here?
Regards,
Thomas
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox