Bug 5231 - Error in aupvlist.h header file from audiofile-devel
Summary: Error in aupvlist.h header file from audiofile-devel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: esound
Version: 6.0
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Elliot Lee
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-09-19 22:36 UTC by tschenk
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 1999-10-26 15:34:50 UTC
Embargoed:


Attachments (Terms of Use)

Description tschenk 1999-09-19 22:36:22 UTC
There is a problem with the aupvlist.h header file when
compiling C++ code.  The error in the file results in an
error:

  parse error before '}'

message whenever this file is included.  This file is
included in audiofile.h and therefore affects any files that
use this header file and audiofile.h is included in esd.h,
which means anything developed using the esound libraries in
C++ are also affected.

The error results from the extern "C" {} and ifdef construct
used in the header file.  The closing curly brace is
included twice at the end of the file.  Removing the second
instance of the following:

#ifdef __cplusplus
}
#endif /* __cplusplus */

from the end of the file solves the problem.  This error was
discovered while attempting to compile the FreeAMP version
1.3.1 player.

Here is a simple patch to fix this error.

---
/usr/src/redhat/SOURCES/audiofile-0.1.6/libaudiofile/aupvlist.h
Mon Feb 22 12:06:08 1999
+++ aupvlist.h	Sun Sep 19 15:16:22 1999
@@ -60,8 +60,4 @@
 }
 #endif

-#ifdef __cplusplus
-}
-#endif /* __cplusplus */

 #endif /* AUPVLIST_H */

Comment 1 Elliot Lee 1999-10-26 15:34:59 UTC
The version of audiofile that comes with RHL 6.1 does not have this
problem.


Note You need to log in before you can comment on or make changes to this bug.