Bug 8864 - xf86Init.c:1762: error: ‘errno’ undeclared (first use in this function) in Mac OS X
Summary: xf86Init.c:1762: error: ‘errno’ undeclared (first use in this function) in Ma...
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.1 (2006.05)
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 14:50 UTC by Peter Dyballa
Modified: 2007-03-11 13:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Dyballa 2006-11-02 14:50:40 UTC
While making xserver this error occured:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../../../include -I../../../include -
I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../hw/xfree86 
-I../../../hw/xfree86/include -I../../../hw/xfree86/common -I../../../hw/xfree86/os-support -I../../../
hw/xfree86/os-support/bus -I../../../os -I./../ddc -I./../i2c -I./../loader -I./../rac -I./../parser -I./../
scanpci -I./../vbe -I./../int10 -I./../vgahw -I./../dixmods/extmod  -no-cpp-precomp -I/usr/include/
openssl -I/sw/include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/
freetype2 -I/sw/lib/fontconfig2/include -I/sw/include/libpng12 -I/usr/local/include -I/sw/include -
DHAVE_XORG_CONFIG_H -I/usr/X11R7/include    -Wall -Wpointer-arith -Wstrict-prototypes -
Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -
DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/X11R7/include -I/sw/lib/freetype219/include/freetype2   
-I../../../include -I../../../include -I../../../Xext -I../../../composite -I../../../damageext -I../../../xfixes -
I../../../Xi -I../../../mi -I../../../miext/shadow  -I../../../miext/damage -I../../../render -I../../../randr -
I../../../fb -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -MT xf86Init.o -MD -MP -MF ".deps/
xf86Init.Tpo" -c -o xf86Init.o xf86Init.c; \
then mv -f ".deps/xf86Init.Tpo" ".deps/xf86Init.Po"; else rm -f ".deps/xf86Init.Tpo"; exit 1; fi
xf86Init.c: In function ‘xf86RunVtInit’:
xf86Init.c:1762: error: ‘errno’ undeclared (first use in this function)
xf86Init.c:1762: error: (Each undeclared identifier is reported only once
xf86Init.c:1762: error: for each function it appears in.)
make[5]: *** [xf86Init.o] Error 1
make[4]: *** [all] Error 2

My cure for xserver/hw/xfree86/common/xf86Init.c was:

--- xf86Init.c.orig	2006-11-02 11:13:01.000000000 +0100
+++ xf86Init.c	2006-11-02 23:37:09.000000000 +0100
@@ -37,6 +37,10 @@
 
 #include <stdlib.h>
 
+#ifdef __APPLE__
+#include <errno.h>
+#endif
+
 #undef HAS_UTSNAME
 #if !defined(WIN32) && !defined(__UNIXOS2__)
 #define HAS_UTSNAME 1
Comment 1 Daniel Stone 2007-02-27 01:34:17 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Peter Dyballa 2007-03-11 13:21:59 UTC
This seems to be GLX related, too, which is not supported for XDarwin, so it's a faulty bug report.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.