Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 235964

Summary: x11-libs/tslib-1.0 fails on rpl_malloc and the .pc file is wrong
Product: Gentoo Linux Reporter: Damien Thébault <damien.thebault>
Component: [OLD] LibraryAssignee: solar (RETIRED) <solar>
Status: RESOLVED FIXED    
Severity: normal CC: embedded
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge log where compilation fails with rpl_malloc
Working tslib-1.0 ebuild

Description Damien Thébault 2008-08-27 23:17:18 UTC
first, tslib fails to build with a cross-arm toolchain:
> fbutils.o: In function `open_framebuffer':
> fbutils.c:(.text+0xa84): undefined reference to `rpl_malloc'
(I'll attach the complete log)

I found on some mailing lists that one fix is to remove the AC_FUNC_MALLOC, and it worked.

The other problem is version of the .pc file: it's still 0.0 in the 1.0 release.
I fixed this by changing the number in configure.ac: AC_INIT and LT_RELEASE).

I did those 3 changes with sed (I'll attach the ebuild doing this), but since we have a patch archive, it's possible add two patchs too)

Reproducible: Always

Steps to Reproduce:
1. emerge tslib on cross- arm-angstrom-linux-gnueabi-gcc

Actual Results:  
It fails by an error on rpl_malloc, and when it's fixed, it's not the right version.

Expected Results:  
Compiles successfully and install with the good version number.
Comment 1 Damien Thébault 2008-08-27 23:18:21 UTC
Created attachment 163948 [details]
emerge log where compilation fails with rpl_malloc
Comment 2 Damien Thébault 2008-08-27 23:19:12 UTC
Created attachment 163950 [details]
Working tslib-1.0 ebuild
Comment 3 solar (RETIRED) gentoo-dev 2009-03-29 19:54:28 UTC
This was solved in -r1