Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264884 - emerge app-text/texlive-core fails with "warning: incompatible implicit declaration"
Summary: emerge app-text/texlive-core fails with "warning: incompatible implicit decla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-04 15:03 UTC by OKUMURA N. Shin-ya
Modified: 2009-06-08 14:18 UTC (History)
0 users

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


Attachments
texlive/texk/web2c/xetexdir/jpegimage.c free(3) declaration patch (texlive-jpegimage-stdlib.patch,374 bytes, patch)
2009-04-04 15:05 UTC, OKUMURA N. Shin-ya
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description OKUMURA N. Shin-ya 2009-04-04 15:03:19 UTC
emerge-ing app-text/texlive-core-2008-r4 fails with glibc-2.9 (and/or perhaps with lesser version, but I have not made sure), because "texk/web2c/xetexdir/jpegimage.c" does not "#include <stdlib.h>" for declaration of free(3).



Reproducible: Always

Steps to Reproduce:
1. emerge =app-text/texlive-core-2008-r4

Actual Results:  
It fails with;

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * xetexdir/jpegimage.c:143: warning: incompatible implicit declaration of built-in function 'free'
 * xetexdir/jpegimage.c:153: warning: incompatible implicit declaration of built-in function 'free'
 * xetexdir/jpegimage.c:163: warning: incompatible implicit declaration of built-in function 'free'
 * xetexdir/jpegimage.c:177: warning: incompatible implicit declaration of built-in function 'free'
 * xetexdir/jpegimage.c:367: warning: incompatible implicit declaration of built-in function 'free'

Expected Results:  
emerge-ed successfully. :-)

I will send a patch in the next post.
Comment 1 OKUMURA N. Shin-ya 2009-04-04 15:05:08 UTC
Created attachment 187303 [details, diff]
texlive/texk/web2c/xetexdir/jpegimage.c free(3) declaration patch
Comment 2 Alexis Ballier gentoo-dev 2009-06-08 14:18:39 UTC
applied, thanks and sorry for the delay; its seems i cant trigger those failures anymore :(