[MacPorts] #14590: liboss: compile errors in soundcard.h

MacPorts noreply at macports.org
Thu Jul 22 07:50:00 PDT 2010


#14590: liboss: compile errors in soundcard.h
-----------------------------------+----------------------------------------
  Reporter:  madcap@…              |       Owner:  pguyot@…           
      Type:  defect                |      Status:  reopened           
  Priority:  Normal                |   Milestone:                     
 Component:  ports                 |     Version:  1.6.0              
Resolution:                        |    Keywords:                     
      Port:  liboss                |  
-----------------------------------+----------------------------------------
Changes (by macsforever2000@…):

  * keywords:  liboss =>
  * port:  => liboss


Old description:

> Beginning on line 341 of soundcard.h, several system functions are
> redefined, such as follows:
>
>     #ifndef LIBOSS_IOCTL
>     # define LIBOSS_IOCTL ioctl
>     #endif
>
>     ...
>
>     static inline int LIBOSS_IOCTL (int x, unsigned long y,...)
>
> This causes compilation errors in code including that file, such as:
>
>     /opt/local/include/liboss/soundcard.h:342: error: static declaration
> of ‘ioctl’ follows non-static declaration
>     /usr/include/sys/ioctl.h:97: error: previous declaration of ‘ioctl’
> was here

New description:

 Beginning on line 341 of soundcard.h, several system functions are
 redefined, such as follows:

 {{{
     #ifndef LIBOSS_IOCTL
     # define LIBOSS_IOCTL ioctl
     #endif
 }}}

     ...

 {{{
     static inline int LIBOSS_IOCTL (int x, unsigned long y,...)
 }}}

 This causes compilation errors in code including that file, such as:
 {{{
     /opt/local/include/liboss/soundcard.h:342: error: static declaration
 of ‘ioctl’ follows non-static declaration
     /usr/include/sys/ioctl.h:97: error: previous declaration of ‘ioctl’
 was here
 }}}

--

-- 
Ticket URL: <http://trac.macports.org/ticket/14590#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list