Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1483 - C++ error
Summary: C++ error
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: glibc
Version: 1.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-03-11 16:13 UTC by Eugene Kanter
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-03-30 04:12:06 UTC

Attachments (Terms of Use)

Description Eugene Kanter 1999-03-11 16:13:41 UTC
a patch to /usr/include/arpa/nameserver.h which expains it

--- nameser.h.orig      Tue Apr  7 14:27:30 1998
+++ nameser.h   Thu Jul  9 13:18:22 1998
@@ -338,6 +338,9 @@
        unsigned        nscount :16;    /* number of
authority entries */
        unsigned        arcount :16;    /* number of
resource entries */
+#ifdef __cplusplus
+extern "C" {

  * Defines for handling compressed domain names
@@ -388,5 +391,8 @@
        *t_cp   = t_l; \
        (cp) += INT32SZ; \
+#ifdef __cplusplus
+ }

 #endif /* !_NAMESER_H_ */

Comment 1 Cristian Gafton 1999-03-19 00:18:59 UTC
use /usr/include/arpa/nameser.h

Comment 2 Eugene Kanter 1999-03-19 15:20:59 UTC
I mistyped /usr/include/arpa/nameser.h as
/usr/include/arpa/nameserver.h in my bug report.
The original patch is for /usr/include/arpa/nameser.h which does not
compile in C++ application.

I have just checked Statbuk glibc-devel-2.1-0.990311.i386.rpm
/usr/include/arpa/nameser.h file and it still DOES NOT contain

extern C

statementes. What is the problem?

Comment 3 Cristian Gafton 1999-03-30 04:12:59 UTC
Fixed in the current glibc, part of starbuck

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