Please see attached ebuild. This ebuild works for any version of ta-lib. ta-lib-0.2.0 should be masked though, because it is a development release.
Created attachment 91156 [details] ta-lib-0.1.4.ebuild
Created attachment 113097 [details] ta-lib-0.3.0.ebuild (Update) This ebuild compiles without error on an amd64 arch. The following files comprise the installed package: localhost ta-lib # qlist ta-lib /usr/lib64/libta_func.so.0.0.0 /usr/lib64/libta_common.a /usr/lib64/libta_abstract.a /usr/lib64/libta_abstract.la /usr/lib64/libta_func.so /usr/lib64/libta_common.la /usr/lib64/libta_abstract_gc.a /usr/lib64/libta_func.la /usr/lib64/libta_common.so.0.0.0 /usr/lib64/libta_abstract.so.0.0.0 /usr/lib64/libta_abstract_gc.so.0.0.0 /usr/lib64/libta_func.so.0 /usr/lib64/libta_func.a /usr/lib64/libta_abstract_gc.la /usr/bin/ta-lib-config /usr/include/ta-lib/ta_abstract.h /usr/include/ta-lib/ta_defs.h /usr/include/ta-lib/ta_common.h /usr/include/ta-lib/ta_libc.h /usr/include/ta-lib/ta_func.h /usr/lib64/libta_abstract_gc.so.0 /usr/lib64/libta_abstract.so.0 /usr/lib64/libta_common.so.0 /usr/lib64/libta_abstract.so /usr/lib64/libta_abstract_gc.so /usr/lib64/libta_common.so
Thanks for the ebuild. I wrote all of the autoconf stuff for ta-lib. I can maintain the Gentoo package.
(In reply to comment #3) > Thanks for the ebuild. I wrote all of the autoconf stuff for ta-lib. I can > maintain the Gentoo package. > HI, Should ta-lib be installed into /usr/include or usr/local/include?
(In reply to comment #4) > HI, > Should ta-lib be installed into /usr/include or usr/local/include? > /usr/local is for non-portage applications. Ebuilds must not install there. See http://devmanual.gentoo.org/general-concepts/filesystem/index.html
Compiled and installed 0.3.0 fine here on a x86 box. Just to add, this lib is a new dependency to the upcoming version of Qtstalker (0.34), which is in Portage. $ emerge --info Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r4 i686) ================================================================= System uname: 2.6.20-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.73GHz Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 21 May 2007 12:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://gentoo.mirrors.pair.com" LANG="en.US.UTF-8" LC_ALL="en_US.UTF-8" LINGUAS="en_US" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/home/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="#cpu #graphics #hardware #other #print #sound #video X acl acpi alsa avi bash-completion berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss evo exif fam firefox flags foomaticdb fortran gdbm gif gphoto2 gpm hal iconv isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap libg++ mad matroska midi mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp pam pcre pdf perl pertty png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection rtc samba sdl session spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs x86 xcomposite xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Compiles, installs and seems to work on amd64, too. I'm using it with the preliminary qtstalker-0.34 ebuild from bug #185463 . Portage 2.1.2.11 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 x86_64) ================================================================= System uname: 2.6.21-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 09 Aug 2007 08:30:10 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" LINGUAS="en fi" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /home/avalon/devel/ownportage" SYNC="rsync://avalonia/gentoo-portage" USE="3dnow 3dnowext X acl acpi alsa amd64 apache2 berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd dvdr dvdread dvi fortran gdbm gif gnome gpm gtk gtk2 hal i8x0 iconv ipv6 isdnlog joystick kde midi mmx mmxext motif mudflap mysql ncurses nfs nls nptl nptlonly nvidia odbc ogg openal opengl openmp pam pcre perl pic png postgres pppd python qt readline reflection samba scanner session snmp socks5 spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode usb v4l v4l2 wxwindows xinerama xml xml2 xorg xsl zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fi" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="dummy fglrx nvidia radeon v4l vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It doesn't compile on my x86 box. This is the error : make gen_code make[4]: entrant dans le répertoire « /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code » if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../ta_common -O2 -march=pentium4 -pipe -MT gen_code-gen_code.o -MD -MP -MF ".deps/gen_code-gen_code.Tpo" -c -o gen_code-gen_code.o `test -f 'gen_code.c' || echo './'`gen_code.c; \ then mv -f ".deps/gen_code-gen_code.Tpo" ".deps/gen_code-gen_code.Po"; else rm -f ".deps/gen_code-gen_code.Tpo"; exit 1; fi mv: ne peut déplacer `.deps/gen_code-gen_code.Tpo' vers `.deps/gen_code-gen_code.Po': Aucun fichier ou répertoire de ce type make[4]: *** [gen_code-gen_code.o] Erreur 1 make[4]: quittant le répertoire « /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code » /bin/sh ../../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -o gen_code -L../../ta_common -L../../ta_abstract -L../../ta_func gen_code-gen_code.o -lta_common -lta_abstract_gc -lta_func -lm -lpthread -ldl make[3]: *** [all-local] Erreur 2 make[3]: *** Attente des tâches non terminées.... mkdir .libs i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -o .libs/gen_code gen_code-gen_code.o -L/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_common -L/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_abstract -L/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_func /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_common/.libs/libta_common.so /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_abstract/.libs/libta_abstract_gc.so /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_func/.libs/libta_func.so -lm -lpthread -ldl creating gen_code make[3]: quittant le répertoire « /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code » make[2]: *** [all-recursive] Erreur 1 make[2]: quittant le répertoire « /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools » make[1]: *** [all-recursive] Erreur 1 make[1]: quittant le répertoire « /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src » make: *** [all-recursive] Erreur 1 And emerge --info : Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8 i686) ================================================================= System uname: 2.6.22-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Timestamp of tree: Sun, 07 Oct 2007 20:50:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/home/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ http://gentoo.modulix.net/gentoo/ http://ftp.club-internet.fr/pub/mirrors/gentoo " LANG="fr_FR@euro" LC_ALL="fr_FR.UTF-8" LINGUAS="fr fr_FR" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/home/portage/temp" PORTDIR="/home/portage/tree" PORTDIR_OVERLAY="/home/portage/layman/kde /home/portage/layman/xeffects /home/portage/layman/gentopia /home/portage/layman/sunrise /home/portage/layman/xfce /home/portage/myoverlay" SYNC="rsync://88.191.40.249/gentoo-portage" USE="X a52 aac acl acpi alsa amrnb apache2 arts bitmap-fonts bzip2 cairo caps cdaudio cdr cli clucene cracklib crypt dbus dri dts dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal howl iconv isdnlog jabber java jpeg kerberos libdvdread libnotify libsexy mad midi mikmod mmx mp3 mpeg mudflap musepack musicbrainz ncurses nls no-seamonkey nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x264 x86 xkb xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Can you please post those errors with your locale set to english ?
(In reply to comment #9) > Can you please post those errors with your locale set to english ? > oops sorry ! it completely went out of my mind that everybody doesn't speak french ;-) Making all in gen_code make[3]: Entering directory `/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../ta_common -O2 -march=pentium4 -pipe -MT gen_code-gen_code.o -MD -MP -MF ".deps/gen_code-gen_code.Tpo" -c -o gen_code-gen_code.o `test -f 'gen_code.c' || echo './'`gen_code.c; \ then mv -f ".deps/gen_code-gen_code.Tpo" ".deps/gen_code-gen_code.Po"; else rm -f ".deps/gen_code-gen_code.Tpo"; exit 1; fi make gen_code make[4]: Entering directory `/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../ta_common -O2 -march=pentium4 -pipe -MT gen_code-gen_code.o -MD -MP -MF ".deps/gen_code-gen_code.Tpo" -c -o gen_code-gen_code.o `test -f 'gen_code.c' || echo './'`gen_code.c; \ then mv -f ".deps/gen_code-gen_code.Tpo" ".deps/gen_code-gen_code.Po"; else rm -f ".deps/gen_code-gen_code.Tpo"; exit 1; fi /bin/sh ../../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -o gen_code -L../../ta_common -L../../ta_abstract -L../../ta_func gen_code-gen_code.o -lta_common -lta_abstract_gc -lta_func -lm -lpthread -ldl mv: cannot stat `.deps/gen_code-gen_code.Tpo': No such file or directory make[3]: *** [gen_code-gen_code.o] Error 1 make[3]: *** Waiting for unfinished jobs.... mkdir .libs i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -o .libs/gen_code gen_code-gen_code.o -L/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_common -L/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_abstract -L/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_func /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_common/.libs/libta_common.so /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_abstract/.libs/libta_abstract_gc.so /home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/ta_func/.libs/libta_func.so -lm -lpthread -ldl creating gen_code make[4]: Leaving directory `/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code' cp gen_code ../../../bin make[3]: Leaving directory `/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools/gen_code' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/portage/temp/portage/dev-libs/ta-lib-0.3.0/work/ta-lib/src' make: *** [all-recursive] Error 1
Trying this with ta-lib 0.4.0. Renamed the 0.3.0 ebuild. I get the error with .deps/gen_code-gen_code.Tpo if I do a parallel build. In the ebuild I forced MAKEOPTS="-j1". It compiles and installs. Get the same results compiling by hand. Parallel build fails.
Added sci-libs/ta-lib-0.4.0. Thanks.