Bug 17579 - Mesa glut.h redefines void exit(int)
Summary: Mesa glut.h redefines void exit(int)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: Mesa
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-09-18 00:17 UTC by roystgnr
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-09-18 00:17:34 UTC
Embargoed:


Attachments (Terms of Use)

Description roystgnr 2000-09-18 00:17:32 UTC
Using Mesa-devel-3.3-5 and glibc-devel-2.1.92-5, I get an error compiling
kdebase (from KDE 1.94):

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/lib/qt2/include
-I/usr/X11R6/include  -I/usr/X11R6/include -UQT_NO_ASCII_CAST   -O2 -m486
-fno-strength-reduce -frtti -I/usr/X11R6/include -DQT_CLEAN_NAMESPACE
-DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c morph3d.cpp
In file included from morph3d.cpp:65:
/usr/include/GL/glut.h:202: declaration of `void exit (int)' throws 
different exceptions
/usr/include/stdlib.h:577: than previous declaration `void exit (int) 
throw ()'

I haven't tried making a test case, but I'd be surprised if any program
including glut.h and stdlib.h didn't give the same error.  Commenting out
the definition in glut.h seemed to fix things.

Comment 1 Bernhard Rosenkraenzer 2000-09-23 15:21:10 UTC
Thanks for reporting this, fixed in 3.3-5.

Comment 2 Bernhard Rosenkraenzer 2000-09-23 15:28:57 UTC
Oops, make that 3.3-6


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