Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109071 - imlib2-1.2.0-r2 build fails on uclibc (needs lround)
Summary: imlib2-1.2.0-r2 build fails on uclibc (needs lround)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 16:47 UTC by Aurélien Francillon
Modified: 2005-10-13 18:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
changes usage of lround into (long int)rint (imlib2_uclibc.patch,2.15 KB, patch)
2005-10-12 17:18 UTC, Aurélien Francillon
Details | Diff
ebuild uses the previous patch (imlib2-1.2.0-r2.ebuild.patch,322 bytes, patch)
2005-10-12 17:20 UTC, Aurélien Francillon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Francillon 2005-10-12 16:47:20 UTC
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
Comment 1 Aurélien Francillon 2005-10-12 17:18:55 UTC
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
Comment 2 Aurélien Francillon 2005-10-12 17:20:20 UTC
Created attachment 70514 [details, diff]
ebuild uses the previous patch
Comment 3 SpanKY gentoo-dev 2005-10-13 18:05:58 UTC
went with the upstream fix instead which is to use round() instead of lround()