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

Bug 341565

Summary: media-libs/netpbm-10.51.00-r1 can't compile in gentoo/freebsd-7.2: can't find alloca.h
Product: Gentoo/Alt Reporter: i.Dark_Templar <idarktemplar>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: graphics+disabled, reuben-gentoo-bugzilla
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Full emerge log
files/netpbm-10.51.00-alloca.patch

Description i.Dark_Templar 2010-10-18 00:47:54 UTC
media-libs/netpbm tries to include <alloca.h> system header. But FreeBSD 7.2 doesn't have this header. That causes compilation error. Instead of <alloca.h>, programs must use <stdlib.h> for function "alloca()" at FreeBSD.

Reproducible: Always

Steps to Reproduce:
1. emerge =media-libs/netpbm-10.51.00-r1

Actual Results:  
Emerge fails

Expected Results:  
Successfully emerge
Comment 1 i.Dark_Templar 2010-10-18 00:49:23 UTC
Created attachment 251083 [details]
emerge --info

emerge --info output
Comment 2 i.Dark_Templar 2010-10-18 00:50:18 UTC
Created attachment 251085 [details]
Full emerge log
Comment 3 Naohiro Aota gentoo-dev 2011-12-04 12:32:25 UTC
Created attachment 294703 [details, diff]
files/netpbm-10.51.00-alloca.patch

Reported upstream and he remove that include line.

http://netpbm.svn.sourceforge.net/viewvc/netpbm/trunk/editor/specialty/pampaintspill.c?r1=1603&r2=1602&pathrev=1603

Confirmed built fine both on Linux and FreeBSD. I'll add this patch in a few days.
Comment 4 SpanKY gentoo-dev 2011-12-05 00:02:51 UTC
i've added 10.56.00 with the fix