Bug 19588 - gtk-- will not compile under Redhat 7.0
Summary: gtk-- will not compile under Redhat 7.0
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gtk+   
(Show other bugs)
Version: 7.0
Hardware: i686 Linux
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact: Dale Lovelace
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-23 07:32 UTC by Need Real Name
Modified: 2007-04-18 16:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-23 15:21:08 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Need Real Name 2000-10-23 07:32:26 UTC
There is already a bug reported on this at www.sourceforge.org, but the
developers declared it a Redhat bug.  The getenv prototype in stdlib.h
conflicts with a declaration in one of the gtk-- source files (parser.yy). 
There is a hack mentioned in the bug at sourceforge that gets the
compilation to complete, but there's no guarentee that the hack produces
valid code.


The actual text of the compile error can be found at the above link.

Comment 1 Owen Taylor 2000-10-23 15:16:16 UTC
This is a plain-and-simple gtk-- bug. getenv() is defined to be declared
in stdlib.h:


And prototype in parser.yy is just wrong - extern "C" only affects
mangling and does not give the C interpretation of () - see 
Stroustrup's "The C++ Programming Language", section 9.2.4.

Comment 2 Need Real Name 2000-10-24 06:10:29 UTC
I suspected it was their bug, but apparently it compiles ok on Redhat6.2.  I 
guess they'll have to own up to it eventually (when one of the developers 
installs Redhat7.0).

Note You need to log in before you can comment on or make changes to this bug.