using an uclibc/hardened setup i can't emerge imlib2: Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: make[3]: Entering directory `/var/tmp/portage/imlib2-1.2.0-r2/work/imlib2-1.2.0/src/bin' /bin/sh ../../libtool --mode=link i686-pc-linux-uclibc-gcc -march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx -o imlib2_conv imlib2_conv.o ../../src/lib/libImlib2.la i686-pc-linux-uclibc-gcc -march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx -o .libs/imlib2_conv imlib2_conv.o ../../src/lib/.libs/libImlib2.so ../../src/lib/.libs/libImlib2.so: undefined reference to `lround' collect2: ld returned 1 exit status make[3]: *** [imlib2_conv] Error 1 make[3]: Leaving directory `/var/tmp/portage/imlib2-1.2.0-r2/work/imlib2-1.2.0/src/bin' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/imlib2-1.2.0-r2/work/imlib2-1.2.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/imlib2-1.2.0-r2/work/imlib2-1.2.0' make: *** [all-recursive-am] Error 2
Created attachment 70513 [details, diff] changes usage of lround into (long int)rint this change was proposed on the freebsd mailing list : http://lists.freebsd.org/pipermail/freebsd-ports/2005-March/021434.html with this change i'm able to build successfully imlib2
Created attachment 70514 [details, diff] ebuild uses the previous patch
went with the upstream fix instead which is to use round() instead of lround()