Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Apparent Bug in AXP's sem.h
@ 1996-10-23 13:21 Robert Klein
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Klein @ 1996-10-23 13:21 UTC (permalink / raw)


Try compiling the following program.

#include <sys/sem.h>

main()
{
}

and you get:

In file included from rob.c:1:
/usr/include/sys/sem.h:39: redefinition of `struct sembuf'

A bug in the include file?

Rob

=======================================================================
Robert Klein                                         Pulse Incorporated
Network Manager/Staff Engineer                 12117 Indian Creek Court
robk@pulse-sys.com                                 Beltsville, MD 20705
http://tiny.iapnet.com/rob                        http://www.iapnet.com
-----------------------------------------------------------------------
Balt 410-813-2101 Fax 410-813-2712   Wash 301-470-6000 Fax 301-210-3932
=======================================================================

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Apparent Bug in AXP's sem.h
@ 1996-10-23 13:33 Robert Klein
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Klein @ 1996-10-23 13:33 UTC (permalink / raw)


>In file included from rob.c:1:
>/usr/include/sys/sem.h:39: redefinition of `struct sembuf'
>
>A bug in the include file?

Apparently 'struct sembuf' is defined in both sys/sem.h and asm/sembits.h.
sys/sem.h includes sys/sem_buf.h which in turn includes asm/sembits.h.  Here's
the diff for the changes I made to sys/sem.h to fix this problem:

37d36
< #ifndef _ASM_ALPHA_SEMBITS_H
45d43
< #endif

Has this already been taken care of?  I find it hard to believe that this is
the first time is has shown up.

Rob

=======================================================================
Robert Klein                                         Pulse Incorporated
Network Manager/Staff Engineer                 12117 Indian Creek Court
robk@pulse-sys.com                                 Beltsville, MD 20705
http://tiny.iapnet.com/rob                        http://www.iapnet.com
-----------------------------------------------------------------------
Balt 410-813-2101 Fax 410-813-2712   Wash 301-470-6000 Fax 301-210-3932
=======================================================================

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Apparent Bug in AXP's sem.h
       [not found] <199610231319.JAA24421@mail.pulse-sys.com>
@ 1996-10-23 16:02 ` Bernd
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd @ 1996-10-23 16:02 UTC (permalink / raw)


>Apparently 'struct sembuf' is defined in both sys/sem.h and asm/sembits.h.
>sys/sem.h includes sys/sem_buf.h which in turn includes asm/sembits.h.  Here's
>the diff for the changes I made to sys/sem.h to fix this problem:
>
>37d36
>< #ifndef _ASM_ALPHA_SEMBITS_H
>45d43
>< #endif
>
>Has this already been taken care of?  I find it hard to believe that this is
>the first time is has shown up.

One of the places this (and a similar problem with shm.h) will turn up is
when compiling cdda2wav v0.6 (which, BTW, works quite well apart from being
hard to compile). Heaps of redefined stuff happening in there, with quite
a few things being defined as __KERNEL_XYZ, and later turning up as undefined
as there is no __KERNEL_XYZ anywhere to be found.....

I have this nagging suspicion that a few things changed between the kernel
that shipped with RH 4.0 and the kernel I am currently using (2.1.4), so
this might not be a general problem but one created by being at the bleeding
edge --- and the Changes file in the kernel seems a bit Intel-centric.

Bernie

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-10-23 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-23 13:21 Apparent Bug in AXP's sem.h Robert Klein
  -- strict thread matches above, loose matches on Subject: below --
1996-10-23 13:33 Robert Klein
     [not found] <199610231319.JAA24421@mail.pulse-sys.com>
1996-10-23 16:02 ` Bernd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox