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

Bug 265492

Summary: media-gfx/graphviz-2.22.2-r1 and 2.22.1 compile fails: find_user_shape() argument discards qualifiers
Product: Gentoo Linux Reporter: Peter Stuge <peter>
Component: New packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Working ebuild, apply patch and depend on >=libltdl-2.0 per #261658
Patch changing find_user_shape() argument from char* to const char*

Description Peter Stuge 2009-04-08 23:26:30 UTC
Compile fails. (I've fixed the bug in a local overlay)

[ebuild   R   ] media-gfx/graphviz-2.22.2-r1  USE="cairo gtk jpeg png python -doc -examples -gnome -java -lasi -nls -perl -ruby -tcl" 0 kB [1=>0]
..
shapes.c:2361: warning: passing argument 1 of 'find_user_shape' discards qualifiers from pointer target type


Reproducible: Couldn't Reproduce

Steps to Reproduce:
I had to add a patch to a local overlay ebuild here in order to get graphviz installed. Now I can't reproduce, even if I emerge -C graphviz first. Sorry. :\

The error was however reliably reproducible until I added my local ebuild.
(Yes I'm sure I am not building my ebuild with patch now.)

Actual Results:  
Failed compile.

Expected Results:  
Successful compile.
Comment 1 Peter Stuge 2009-04-08 23:30:26 UTC
Created attachment 187741 [details]
Working ebuild, apply patch and depend on >=libltdl-2.0 per #261658
Comment 2 Peter Stuge 2009-04-08 23:31:09 UTC
Created attachment 187743 [details, diff]
Patch changing find_user_shape() argument from char* to const char*
Comment 3 Peter Stuge 2009-04-08 23:34:32 UTC
(In reply to comment #0)
> shapes.c:2361: warning: passing argument 1 of 'find_user_shape' discards qualifiers from pointer target type

Because I can't reproduce I copypasted this error from another compile. I am unsure if I got a warning or error during the failing emerge, but emerge did die.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2009-05-19 12:04:55 UTC
Thank you for your report, Peter.

This is not an error but a warning so it does not harm. Please, report your patch upstream so they could fix it. Most probably emerge died because of bug 265859 which I'm going to fix in a moment.