Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341565 - media-libs/netpbm-10.51.00-r1 can't compile in gentoo/freebsd-7.2: can't find alloca.h
Summary: media-libs/netpbm-10.51.00-r1 can't compile in gentoo/freebsd-7.2: can't find...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 00:47 UTC by i.Dark_Templar
Modified: 2011-12-05 08:27 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,3.40 KB, text/plain)
2010-10-18 00:49 UTC, i.Dark_Templar
Details
Full emerge log (build.log,248.57 KB, text/plain)
2010-10-18 00:50 UTC, i.Dark_Templar
Details
files/netpbm-10.51.00-alloca.patch (netpbm-10.51.00-alloca.patch,293 bytes, patch)
2011-12-04 12:32 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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