Article View: gnu.gcc.help
Article #50870Re: Problems compiling glibc-1.06
From: Axel Belinfante
Date: Wed, 21 Jul 1993 14:12
Date: Wed, 21 Jul 1993 14:12
60 lines
3534 bytes
3534 bytes
In article <1993Jul20.071919.1796@newsserver.rrzn.uni-hannover.de>, adler@imes.uni-hannover.dbp.de (Thorsten Adler) writes:
|> In article 22eet1INNcnl@medicine.wustl.edu, reece@informatics.WUSTL.EDU (Reece Kimball Hart) writes:
|> > tnr@csd.cri.dk (Torben N. Rasmussen) writes:
|> > >I have some problems compiling glibc version 1.06 on a Sun sparc running
|> > >Sun OS 4.1.3.
|> > >I have configured glibc as sparc-sun-sunos4.1.3
|> >
|> > >I get the following error message:
|> >
|> > >../sysdeps/unix/bsd/__setsid.c: In function `__setsid':
|> > >../sysdeps/unix/bsd/__setsid.c:52: `TIOCNOTTY' undeclared (first use this function)
|> > >../sysdeps/unix/bsd/__setsid.c:52: (Each undeclared identifier is reported only once
|> > >../sysdeps/unix/bsd/__setsid.c:52: for each function it appears in.)
|> >
|> > >It seems that TIOCNOTTY is not defined in any of the include files for Sun OS.
|> >
|> > >Has anyone seen this, and know what the problem is?
|> >
|> > YES!!! I've been banging my head against this for several days. I'm
|> > also using sparc-sun-sunos4.1.3 to compile glib 1.06 with gcc 2.4.5.
|> Me too, me too. I've had the same problems for about the week. Seems like TIOCNOTTY
|> is usually defined in 'ioctls.h', but this file (generated somehow by make-ioctls in
|> the main src-dir) is empty...
|>
|> Any hints ????
I an currently trying the following (SunOS 4.1.1, gcc-2.4.5):
I add the following after the already present #include lines in
the offending files:
#ifdef _POSIX_SOURCE /* added by AFEB */
#undef _POSIX_SOURCE /* added by AFEB */
#define POSIX_SOURCE_WAS_DEFINED /* added by AFEB */
#endif /* added by AFEB */
#include <sys/ttycom.h> /* added by AFEB */
#ifdef POSIX_SOURCE_WAS_DEFINED /* added by AFEB */
#define _POSIX_SOURCE /* added by AFEB */
#endif /* added by AFEB */
(so, in sysdeps/unix/bsd/__setsid.c this goes at line 25, between
#include <fcntl.h>
and
/* Create a new session with the calling process as its leader.
)
At least i was able to compile __setsid.c.
I'm compiling glibc right now, and reading news waiting for the next
compiler error, so I don't have the whole glibc compiled yet.... :-/
Is this the way to go?
Or should _POSIX_SOURCE be undeffed somewhere else? Or? Help!!!!
Regards,
Axel.
--
<Axel.Belinfante@cs.utwente.nl> tel. +31 53 893774 fax. +31 53 333815
University of Twente, Tele-Informatics & Open Systems Group
P.O. Box 217 NL-7500 AE Enschede The Netherlands
"ili ne sciis ke estas neebla do ili simple faris" -- Loesje
Technical Details
Message-ID:
<1993Jul21.161241@cs.utwente.nl>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!uunet!mcsun!sun4nl!utciva.civ.utwente.nl!infnews!infnews!belinfanReferences:
<22eet1INNcnl@medicine.wustl.edu> <1993Jul20.071919.1796@newsserver.rrzn.uni-hannover.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c5aa4d0104304b6a X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-21 07:50:55 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!uunet!mcsun!sun4nl!utciva.civ.utwente.nl!infnews!infnews!belinfan From: belinfan@cs.utwente.nl (Axel Belinfante) Subject: Re: Problems compiling glibc-1.06 Message-ID: <1993Jul21.161241@cs.utwente.nl> Sender: usenet@cs.utwente.nl Nntp-Posting-Host: utis179.cs.utwente.nl Organization: Univ. of Twente, Dept. Informatics, Tele Informatics group References: <22eet1INNcnl@medicine.wustl.edu> <1993Jul20.071919.1796@newsserver.rrzn.uni-hannover.de> Date: Wed, 21 Jul 1993 14:12:41 GMT Lines: 61