Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing cdefs.h

211 views
Skip to first unread message

Tony Smolar

unread,
Jul 3, 1999, 3:00:00 AM7/3/99
to

I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
because it can't find /usr/include/sys/cdefs.h. This header file doesn't
seem to be present on any of my (2.6) Solaris machines. Where does this
file come from?
--

Tony Smolar

------------------------------------------------------------------------------
asm...@ma.ultranet.com home email
http://www.ultranet.com/~asmolar homepage

Wolfram Saringer

unread,
Jul 4, 1999, 3:00:00 AM7/4/99
to
Tony Smolar wrote:

Did youinstall Solaris with the 'Developer Support' option ?
If not, use admintool to add the missing packages.

W.S.

--

--
Wolfram Saringer
(Remove the indicated part from the address to reply)
BSG Bernhardt, Saringer & Grundschober Net Consult
----------------------------------------------
Why should I crawl through cramped Windows
when I can run around freely in UNIX???


Tony Smolar

unread,
Jul 4, 1999, 3:00:00 AM7/4/99
to
On Sun, 04 Jul 1999 02:02:39 GMT, Wolfram Saringer wrote:
>Tony Smolar wrote:
>
>> I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
>> because it can't find /usr/include/sys/cdefs.h. This header file doesn't
>> seem to be present on any of my (2.6) Solaris machines. Where does this
>> file come from?
>> --
>>
>> Tony Smolar
>>
>> ------------------------------------------------------------------------------
>> asm...@ma.ultranet.com home email
>> http://www.ultranet.com/~asmolar homepage
>
>Did youinstall Solaris with the 'Developer Support' option ?
>If not, use admintool to add the missing packages.

I thought I did, does 'everything' include the developer support option?
The Solaris install isn't totally clear on this.

>W.S.
>
>--
>
>--
>Wolfram Saringer
>(Remove the indicated part from the address to reply)
>BSG Bernhardt, Saringer & Grundschober Net Consult
>----------------------------------------------
>Why should I crawl through cramped Windows
>when I can run around freely in UNIX???
>
>
>

Alan Coopersmith

unread,
Jul 4, 1999, 3:00:00 AM7/4/99
to
Tony Smolar <asmolar.ma.ultranet.removethis.com> wrote:
>I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
>because it can't find /usr/include/sys/cdefs.h. This header file doesn't
>seem to be present on any of my (2.6) Solaris machines. Where does this
>file come from?

It's not a Solaris header file - I believe BSD 4.4 systems have it, but
if your software is depending on it, it's either not ported to Solaris
(or more likely) not configured correctly for Solaris.

--
________________________________________________________________________
Alan Coopersmith al...@godzilla.EECS.Berkeley.EDU
Univ. of California at Berkeley http://soar.Berkeley.EDU/~alanc/
aka: alanc@{CSUA,OCF,CS,BMRC,EECS,ucsee.eecs,cory.eecs}.Berkeley.EDU

Joerg Schilling

unread,
Jul 5, 1999, 3:00:00 AM7/5/99
to
In article <377EC167...@bsg.at>,
Wolfram Saringer <to-reply-remove...@bsg.at> wrote:

>Tony Smolar wrote:
>
>> I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
>> because it can't find /usr/include/sys/cdefs.h. This header file doesn't
>> seem to be present on any of my (2.6) Solaris machines. Where does this
>> file come from?
>> --

>>
>
>Did youinstall Solaris with the 'Developer Support' option ?
>If not, use admintool to add the missing packages.

sys/cdefs.h is a nonstandard include file.

No well behaving application should directly include it.

It is a known problem that programs which have been initially
developped on Linux are constantly using nonstand include files
and thus cannot easily be ported to UNIX systems :-(

--
EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
j...@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schi...@fokus.gmd.de (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix

Joerg Schilling

unread,
Jul 5, 1999, 3:00:00 AM7/5/99
to
In article <7lodq0$2vg$1...@agate.berkeley.edu>,
Alan Coopersmith <al...@godzilla.eecs.berkeley.edu> wrote:

>Tony Smolar <asmolar.ma.ultranet.removethis.com> wrote:
>>I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
>>because it can't find /usr/include/sys/cdefs.h. This header file doesn't
>>seem to be present on any of my (2.6) Solaris machines. Where does this
>>file come from?
>
>It's not a Solaris header file - I believe BSD 4.4 systems have it, but
>if your software is depending on it, it's either not ported to Solaris

It's an internal GNU include file. No application should directly depend on
it or it violates POSIX 1003 and UNIX 98 specs.

Write a bug report to the author of the code.

Tony Smolar

unread,
Jul 5, 1999, 3:00:00 AM7/5/99
to
On 5 Jul 1999 10:27:36 GMT, Joerg Schilling wrote:
>In article <377EC167...@bsg.at>,
>Wolfram Saringer <to-reply-remove...@bsg.at> wrote:
>>Tony Smolar wrote:
>>
>>> I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
>>> because it can't find /usr/include/sys/cdefs.h. This header file doesn't
>>> seem to be present on any of my (2.6) Solaris machines. Where does this
>>> file come from?
>>> --
>>>
>>
>>Did youinstall Solaris with the 'Developer Support' option ?
>>If not, use admintool to add the missing packages.
>
>sys/cdefs.h is a nonstandard include file.
>
>No well behaving application should directly include it.
>
>It is a known problem that programs which have been initially
>developped on Linux are constantly using nonstand include files
>and thus cannot easily be ported to UNIX systems :-(

I've run into quite a few programs which needed it, one was "OpenLDAP". I
found a cdefs.h in the sendmail source code which I copied there that seemed
to make things happy, but I thought there might be an official version

>--
>EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
> j...@cs.tu-berlin.de (uni) If you don't have iso-8859-1
> schi...@fokus.gmd.de (work) chars I am J"org Schilling
>URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix

Joerg Schilling

unread,
Jul 6, 1999, 3:00:00 AM7/6/99
to
In article <slrn7o234g...@mallard.ultranet.com>,

Tony Smolar <asmolar.ma.ultranet.removethis.com> wrote:
>On 5 Jul 1999 10:27:36 GMT, Joerg Schilling wrote:
>>In article <377EC167...@bsg.at>,
>>Wolfram Saringer <to-reply-remove...@bsg.at> wrote:
>>>Tony Smolar wrote:
>>>
>>>> I haven't been able to get GCC 2.8.1 or egcs to compile anything useful
>>>> because it can't find /usr/include/sys/cdefs.h. This header file doesn't
>>>> seem to be present on any of my (2.6) Solaris machines. Where does this
>>>> file come from?
>>>> --
>>>>
>>>
>>>Did youinstall Solaris with the 'Developer Support' option ?
>>>If not, use admintool to add the missing packages.
>>
>>sys/cdefs.h is a nonstandard include file.
>>
>>No well behaving application should directly include it.
>>
>>It is a known problem that programs which have been initially
>>developped on Linux are constantly using nonstand include files
>>and thus cannot easily be ported to UNIX systems :-(
>
>I've run into quite a few programs which needed it, one was "OpenLDAP". I
>found a cdefs.h in the sendmail source code which I copied there that seemed
>to make things happy, but I thought there might be an official version

If you are in doubt about offifical interfaces you might have a look
at the UNIX-98 specs at http://www.opengroup.org/onlinepubs/7908799/xshix.html

... Don't forget to flame the author of a piece of software that doesn't
follow this rules. If nobody cares about standard compliance we might end up
in tons of "free" software that depends on proprietary interfaces that could
be found only on Linux or *BSD.

Note that I don't object new inventions but there is no need for just different
solutions that give no new value.

0 new messages