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

Bug 148351

Summary: x11-apps/mesa-progs tries to use not-available posix_memalign
Product: Gentoo/Alt Reporter: Victor Roman Archidona <vroman>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: posix_memalign.patch

Description Victor Roman Archidona 2006-09-20 05:31:19 UTC
Hi,

applications such x11-apps/mesa-progs requires posix_memalign() function in order to build correctly. This function is available in FreeBSD 7.0-CURRENT, so I made a backport patch for its use (attached below).

More about posix_memalign(): http://www.opengroup.org/onlinepubs/000095399/functions/posix_memalign.html
Comment 1 Victor Roman Archidona 2006-09-20 05:31:43 UTC
Created attachment 97536 [details, diff]
posix_memalign.patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-20 06:27:51 UTC
I'd close as INVALID, rather than changing libc, I'd prefer fixing the code.

Javier, you did something like that for mesa itself, right?
Comment 3 Javier Villavicencio (RETIRED) gentoo-dev 2006-09-20 07:13:27 UTC
I just had to remove -DHAVE_POSIX_MEMALIGN from the $(DEFINES) variable. It is already on the patch for mesa 6.5.1.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-07 02:16:41 UTC
Javier can you please attach a patch for mesa-progs and CC x11 when you're done?
Comment 5 Javier Villavicencio (RETIRED) gentoo-dev 2006-10-07 13:25:27 UTC
This is already fixed by bug 146892, sorry i forgot to close this one after applying the patch.

*** This bug has been marked as a duplicate of 146892 ***