🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50029

[kenner@vlsi1.ultra.nyu.edu: Problem compiling Xfree 2.0]

#50029
From: Richard Stallman
Date: Wed, 17 Nov 1993 14:15
55 lines
2918 bytes
Does anyone have this configuration and can you figure out what's
wrong with fcntl.h and unistd.h?  If you can, please send the info to
me and to kenner@gnu.ai.mit.edu.

It would be good to show *both* of the declarations for each of the
functions that has a conflict.  Also, send a diff -c between the
"fixed" fcntl.h and the system's original fcntl.h.  Likewise for
unistd.h.  That should be enough information to fix the problem.


From: dror@netcom.com (Oz Dror)
Subject: gcc2.5.3 fails to compile Xfree 2.0
Date: Tue, 16 Nov 1993 22:47:23 GMT
To: bug-gcc@prep.ai.mit.edu

OS: SCO UNIX 3.2.2

In compiling Xlib:
cat import.h XConnDis.c >_XConnDis.c
gcc -c  -m486 -DNO_ASM -fpcc-struct-return   -I../../.  -DSCO -DBROKEN_FTOL
-DNO_PROTOTYPE -D_SVID -DSYSV -DSYSV386 -DOZ_CHANGE   -DMALLOC_0_RETURNS_NULL
-DCLIENTS_LOCALCONN -DSERVER_LOCALCONN -DTCPCONN \
-DSVR3SHLIB  -msvr3-shlib -O2 _XConnDis.c
In file included from ../.././X11/Xos.h:91,
                 from _XConnDis.c:274:
/usr/local/lib/gcc-lib/i486-sco/2.5.3/include/fcntl.h:33: conflicting types for
`creat'
_XConnDis.c:126: previous declaration of `creat'
/usr/local/lib/gcc-lib/i486-sco/2.5.3/include/fcntl.h:34: conflicting types for
`_libX11_fcntl'
_XConnDis.c:133: previous declaration of `_libX11_fcntl'
/usr/local/lib/gcc-lib/i486-sco/2.5.3/include/fcntl.h:35: conflicting types for
`_libX11_open'
_XConnDis.c:132: previous declaration of `_libX11_open'
In file included from ../.././X11/Xos.h:102,
                 from _XConnDis.c:274:
/usr/local/lib/gcc-lib/i486-sco/2.5.3/include/unistd.h:47: conflicting types
for `_libX11_getpid'
_XConnDis.c:153: previous declaration of `_libX11_getpid'
/usr/local/lib/gcc-lib/i486-sco/2.5.3/include/unistd.h:56: conflicting types
for `_libX11_read'
_XConnDis.c:146: previous declaration of `_libX11_read'
/usr/local/lib/gcc-lib/i486-sco/2.5.3/include/unistd.h:68: conflicting types
for `_libX11_write'
_XConnDis.c:148: previous declaration of `_libX11_write'
make[3]: *** [XConnDis.o] Error 1


This header file incompatibility did not exist in gcc 2.5.2

-Oz
-- 
NAME   Oz Dror, Los Angeles, California
SMAIL  dror@netcom.com
PHONE  (213) 874-7978  Fax (213) 667-6908
Technical Details
Message-ID: <9311171410.AA29731@mole.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,de50930ead3dcb69,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-17 08:38:31 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!rms
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.gcc.help
Subject: [kenner@vlsi1.ultra.nyu.edu: Problem compiling Xfree 2.0]
Date: 17 Nov 1993 09:15:19 -0500
Organization: GNUs Not Usenet
Lines: 59
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9311171410.AA29731@mole.gnu.ai.mit.edu>
Reply-To: rms@gnu.ai.mit.edu, kenner@gnu.ai.mit.edu