Article View: gnu.gcc.help
Article #50878Re: Problems compiling glibc-1.06
From: Axel Belinfante
Date: Thu, 22 Jul 1993 11:34
Date: Thu, 22 Jul 1993 11:34
81 lines
4694 bytes
4694 bytes
In article <1993Jul21.161241@cs.utwente.nl>, belinfan@cs.utwente.nl (Axel Belinfante) writes:
|> 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!!!!
Ok, my previous approach is *NOT* the way to go.
The problem seems to be the (size of the) egrep expression used to
on the output of snarf-ioctls. from the Make run:
...
sysdeps/unix/snarf-ioctls /usr/include/sys/ioctl.h /usr/include/sys/termios.h \
| egrep -v "^(`sysdeps/unix/snarf-ioctls \
sysdeps/unix/bsd/sun/sunos4/termbits.h termios/sys/ttydefaults.h \
| tr '\012' '|'`nevermatch)$" \
| sort | uniq | tr '\012' ' ' > sysdeps/../ioctls-tmp
egrep: regular expression too long
mv sysdeps/../ioctls-tmp sysdeps/../ioctls
...
So, the standard sun egrep fails, but make continous to run.
We end up with an empty ioctls file.
I installed gnu grep v 2.0 and recompiled the glibc and it seems to
work now. So, the solution seems to be to get the gnu grep package.
(or maybe the egrep expression can be rewritten or so.)
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:
<1993Jul22.133405@cs.utwente.nl>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!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> <1993Jul21.161241@cs.utwente.nl>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-22 05:14:49 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!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: <1993Jul22.133405@cs.utwente.nl> Keywords: solution found sunos-egrep problem 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> <1993Jul21.161241@cs.utwente.nl> Date: Thu, 22 Jul 1993 11:34:05 GMT Lines: 82