Skip Menu |

This queue is for tickets about the Finance-TA CPAN distribution.

Report information
The Basics
Id: 76897
Status: resolved
Priority: 0/
Queue: Finance-TA

People
Owner: Nobody in particular
Requestors: chrisfluur [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: bug: TA_Initialize
Date: Mon, 30 Apr 2012 09:38:24 -0500
To: bug-Finance-TA [...] rt.cpan.org
From: Chris Fluur <chrisfluur [...] gmail.com>
Hello. I'm trying to install Finance::TA, but I am getting an error. I have tried installing through cpan and also from source. The exact error message is: /usr/bin/perl: symbol lookup error: /usr/local/lib/perl/5.14.2/auto/Finance/TA/TA.so: undefined symbol: TA_Initialize I am on Ubuntu, and I have just installed the newest version of ta-lib from source I downloaded from the website http://ta-lib.org/hdr_dw.html Any help with this would be very much appreciated. Thanks!
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 16:41:45 +0200
To: bug-Finance-TA [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
could you please send me the output of the following two commands on your Ubuntu box: ta-lib-config --cflags ta-lib-config --libs -- kmx
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 09:44:42 -0500
To: bug-Finance-TA [...] rt.cpan.org
From: Chris Fluur <chrisfluur [...] gmail.com>
ta-lib-config --cflags: -I/include/ta-lib -DHAVE_CONFIG_H ta-lib-config --libs: -L/lib -lpthread -ldl On Mon, Apr 30, 2012 at 9:41 AM, kmx via RT <bug-Finance-TA@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=76897 > > > could you please send me the output of the following two commands on your > Ubuntu box: > > ta-lib-config --cflags > > ta-lib-config --libs > > > -- > kmx > >
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 16:49:03 +0200
To: bug-Finance-TA [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
On 30.4.2012 16:44, Chris Fluur via RT wrote: Show quoted text
> ta-lib-config --cflags: > -I/include/ta-lib -DHAVE_CONFIG_H > > ta-lib-config --libs: > -L/lib -lpthread -ldl
Well, broken ta-lib-config (note missing -lta_lib), try this: [you@ubuntu ~]$ export TALIB_CFLAGS='-I/include/ta-lib -DHAVE_CONFIG_H' [you@ubuntu ~]$ export TALIB_LIBS='-L/lib -lpthread -ldl -lta_lib' [you@ubuntu ~]$ cpan -i TA::Finance FYI: it is also mentioned in documentation http://search.cpan.org/~kmx/Finance-TA-v0.4.0/TA.pod#INSTALLATION -- kmx
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 20:08:33 +0200
To: bug-Finance-TA [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
Show quoted text
> [you@ubuntu ~]$ export TALIB_CFLAGS='-I/include/ta-lib -DHAVE_CONFIG_H' > [you@ubuntu ~]$ export TALIB_LIBS='-L/lib -lpthread -ldl -lta_lib' > [you@ubuntu ~]$ cpan -i TA::Finance
Sorry, the last line should be: [you@ubuntu ~]$ cpan -i Finance::TA
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 14:38:01 -0500
To: bug-Finance-TA [...] rt.cpan.org
From: Chris Fluur <chrisfluur [...] gmail.com>
It didn't work. Here is the new output I got from the cpan command (my user name is zxcv)... Going to read '/home/zxcv/.cpan/Metadata' Database was generated on Mon, 30 Apr 2012 04:07:03 GMT Running install for module 'Finance::TA' Running make for K/KM/KMX/Finance-TA-v0.4.0.tar.gz Checksum for /home/zxcv/.cpan/sources/authors/id/K/KM/KMX/Finance-TA-v0.4.0.tar.gz ok CPAN.pm: Going to build K/KM/KMX/Finance-TA-v0.4.0.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Finance::TA Writing MYMETA.yml and MYMETA.json cp TA.pm blib/lib/Finance/TA.pm cp TA.pod blib/lib/Finance/TA.pod cc -c -I/include/ta-lib -DHAVE_CONFIG_H -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"v0.4.0\" -DXS_VERSION=\"v0.4.0\" -fPIC "-I/usr/lib/perl/5.14/CORE" ta_libc_wrap.c Running Mkbootstrap for Finance::TA () chmod 644 TA.bs rm -f blib/arch/auto/Finance/TA/TA.so cc -shared -O2 -g -L/usr/local/lib -fstack-protector ta_libc_wrap.o -o blib/arch/auto/Finance/TA/TA.so \ -L/lib -lpthread -ldl \ chmod 755 blib/arch/auto/Finance/TA/TA.so cp TA.bs blib/arch/auto/Finance/TA/TA.bs chmod 644 blib/arch/auto/Finance/TA/TA.bs Manifying blib/man3/Finance::TA.3pm KMX/Finance-TA-v0.4.0.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/ta_abstract.t .. Can't load '/home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so' for module Finance::TA: /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so: undefined symbol: TA_HT_DCPHASE_Lookback at /usr/lib/perl/5.14/DynaLoader.pm line 184. at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 11. Compilation failed in require at t/ta_abstract.t line 11. BEGIN failed--compilation aborted at t/ta_abstract.t line 11. Undefined subroutine &Finance::TA::TA_Shutdown called at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 981. END failed--call queue aborted at t/ta_abstract.t line 11. t/ta_abstract.t .. Dubious, test returned 22 (wstat 5632, 0x1600) Failed 79/79 subtests t/ta_common.t .... Can't load '/home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so' for module Finance::TA: /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so: undefined symbol: TA_HT_DCPHASE_Lookback at /usr/lib/perl/5.14/DynaLoader.pm line 184. at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 11. Compilation failed in require at t/ta_common.t line 11. BEGIN failed--compilation aborted at t/ta_common.t line 11. Undefined subroutine &Finance::TA::TA_Shutdown called at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 981. END failed--call queue aborted at t/ta_common.t line 11. t/ta_common.t .... Dubious, test returned 22 (wstat 5632, 0x1600) Failed 17/17 subtests t/ta_defs.t ...... Can't load '/home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so' for module Finance::TA: /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so: undefined symbol: TA_HT_DCPHASE_Lookback at /usr/lib/perl/5.14/DynaLoader.pm line 184. at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 11. Compilation failed in require at t/ta_defs.t line 11. BEGIN failed--compilation aborted at t/ta_defs.t line 11. Undefined subroutine &Finance::TA::TA_Shutdown called at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 981. END failed--call queue aborted at t/ta_defs.t line 11. t/ta_defs.t ...... Dubious, test returned 22 (wstat 5632, 0x1600) Failed 38/38 subtests t/ta_func.t ...... Can't load '/home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so' for module Finance::TA: /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/arch/auto/Finance/TA/TA.so: undefined symbol: TA_HT_DCPHASE_Lookback at /usr/lib/perl/5.14/DynaLoader.pm line 184. at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 11. Compilation failed in require at t/ta_func.t line 11. BEGIN failed--compilation aborted at t/ta_func.t line 11. Undefined subroutine &Finance::TA::TA_Shutdown called at /home/zxcv/.cpan/build/Finance-TA-v0.4.0-HyMcb5/blib/lib/Finance/TA.pm line 981. END failed--call queue aborted at t/ta_func.t line 11. t/ta_func.t ...... Dubious, test returned 22 (wstat 5632, 0x1600) Failed 38/38 subtests Test Summary Report ------------------- t/ta_abstract.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 79 tests but ran 0. t/ta_common.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 17 tests but ran 0. t/ta_defs.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 38 tests but ran 0. t/ta_func.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 38 tests but ran 0. Files=4, Tests=0, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.10 cusr 0.00 csys = 0.16 CPU) Result: FAIL Failed 4/4 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 22 KMX/Finance-TA-v0.4.0.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KMX/Finance-TA-v0.4.0.tar.gz Running make install make test had returned bad status, won't install without force On Mon, Apr 30, 2012 at 1:08 PM, kmx via RT <bug-Finance-TA@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=76897 > > >
> > [you@ubuntu ~]$ export TALIB_CFLAGS='-I/include/ta-lib -DHAVE_CONFIG_H' > > [you@ubuntu ~]$ export TALIB_LIBS='-L/lib -lpthread -ldl -lta_lib' > > [you@ubuntu ~]$ cpan -i TA::Finance
> > Sorry, the last line should be: > > [you@ubuntu ~]$ cpan -i Finance::TA > > > >
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 22:05:33 +0200
To: bug-Finance-TA [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
I see linker options "-L/lib -lpthread -ldl" without -lta_lib Perhaps try to edit by hand your ta-lib-config (probably in /bin or /usr/bin) - replace "...<whatever>... -lpthread -ldl" with "...<whatever>... -lpthread -ldl -lta_lib" However I still think that setting environment variable TALIB_LIBS should also work - maybe try: [you@ubuntu]$ TALIB_LIBS='-L/lib -lpthread -ldl -lta_lib' cpan Finance::TA -- kmx
Subject: Re: [rt.cpan.org #76897] bug: TA_Initialize
Date: Mon, 30 Apr 2012 15:20:00 -0500
To: bug-Finance-TA [...] rt.cpan.org
From: Chris Fluur <chrisfluur [...] gmail.com>
that did it! I edited ta-lib-config to say -lta_lib, and I ran sudo TALIB_CFLAGS='-I/include/ta-lib -DHAVE_CONFIG_H' TALIB_LIBS='-L/lib -lpthread -ldl -lta_lib' cpan -i Finance::TA thanks! On Mon, Apr 30, 2012 at 3:05 PM, kmx via RT <bug-Finance-TA@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=76897 > > > I see linker options "-L/lib -lpthread -ldl" without -lta_lib > > Perhaps try to edit by hand your ta-lib-config (probably in /bin or > /usr/bin) - replace > "...<whatever>... -lpthread -ldl" with "...<whatever>... -lpthread -ldl > -lta_lib" > > However I still think that setting environment variable TALIB_LIBS should > also work - maybe try: > [you@ubuntu]$ TALIB_LIBS='-L/lib -lpthread -ldl -lta_lib' cpan Finance::TA > -- > kmx > >