tag:blogger.com,1999:blog-1134723925265805427.post4415682502441034956..comments2023-10-31T14:04:04.105+02:00Comments on Rambling around foo: softfloat rrdtool sequeleddyphttp://www.blogger.com/profile/13986125106284142716noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1134723925265805427.post-29685955608559098322008-08-24T22:21:00.000+03:002008-08-24T22:21:00.000+03:00Are you using arm or armel? I'd expect that armel ...Are you using arm or armel? I'd expect that armel rrdtool on is faster than on arm....Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1134723925265805427.post-90087488992417832422007-08-28T02:24:00.000+03:002007-08-28T02:24:00.000+03:00Quick and dirty way :./configure --disable-tcl --d...Quick and dirty way :<BR/><BR/><B>./configure --disable-tcl --disable-ruby --disable-python --disable-perl --enable-shared=no --enable-static --prefix=/home/delphine/Desktop/install/ --exec-prefix=${HOME}/install/</B><BR/> <B>make</B> <BR/> <B>file src/rrdtool src/rrdcgi src/rrdupdate </B> <BR/> <I>src/rrdtool: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped<BR/> src/rrdcgi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped<BR/> src/rrdupdate: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped</I> <BR/> Bad dynamically linked binaries ! RM them ! <BR/> <B>rm src/rrdtool src/rrdcgi src/rrdupdate </B> <BR/> Add -all-static to CFLAGS variable in src/Makefile : <BR/> <I>CFLAGS = -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC</I> <BR/> becomes : <BR/><BR/><I>CFLAGS = -all-static -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC</I><BR/> Compile again after with this new flag (used by libtool, and passed to gcc as -static) <BR/><BR/><B>make</B> <BR/><BR/><B>file src/rrdtool src/rrdcgi src/rrdupdate</B><BR/> <I>src/rrdtool: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, statically linked, not stripped<BR/> src/rrdcgi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, statically linked, not stripped<BR/> src/rrdupdate: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, statically linked, not stripped</I><BR/> COOL ! It works ! :-) <BR/><BR/>Usual suspects : <BR/> * libtool (with its stupid -all-static flag which tell it to pass -static flag to gcc) <BR/><BR/>and also <BR/><BR/>* libfreetype6-dev <BR/><BR/>* libart-2.0-dev <BR/><BR/>because of those 2 files : <BR/><BR/>usr/lib/libfreetype.la <BR/><BR/>/usr/lib/libart_lgpl_2.la <BR/><BR/>referenced by src/librrd.la and src/librrd_th.la <BR/><BR/><B>grep '\.so' /usr/lib/libfreetype.la /usr/lib/libart_lgpl_2.la</B><BR/> /usr/lib/libfreetype.la:dlname='libfreetype.so.6' <BR/> /usr/lib/libfreetype.la:library_names='libfreetype.so.6.3.10 libfreetype.so.6 libfreetype.so' <BR/><BR/>/usr/lib/libart_lgpl_2.la:dlname='libart_lgpl_2.so.2' <BR/><BR/>/usr/lib/libart_lgpl_2.la:library_names='libart_lgpl_2.so.2.3.17 libart_lgpl_2.so.2 libart_lgpl_2.so'Anonymousnoreply@blogger.com