pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/34014: net/pchar gets extra qualification 'GetIfInfo::'



>Number:         34014
>Category:       pkg
>Synopsis:       gcc-4 warn as --> extra qualification 'GetIfInfo::'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 17 04:20:00 +0000 2006
>Originator:     Makoto Fujiwara
>Release:        NetBSD 3.99.21
>Organization:
KINU Corporation
>Environment:
        
        
System: NetBSD yoshimi.ki.nu 3.99.21 NetBSD 3.99.21 (GENERIC) #0: Sat Jul 15 
18:48:07 JST 2006 
root@mini:/export/20060702/checkout/src/sys/arch/macppc/compile/GENERIC macppc
Architecture: powerpc
Machine: macppc
>Description:
        when making package on net/pchar , gcc++ warns as
===> Building for pchar-1.4nb4
c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/pkg/include 
-I/usr/include -I. -DSIZEOF_BOOL=1 -DHAVE_SOCKLEN_T=1 -DSTDC_HEADERS=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_HERROR=1 
-DHAVE_SNPRINTF=1 -DHAVE_LIBM=1 -DHAVE_IPV6=1 -DHAVE_SNMP=1 -DHAVE_LIBSNMP=1 -c 
main.cc -o main.o
GetIfInfo.h:21: error: extra qualification 'GetIfInfo::' on member 'GetName'
*** Error code 1

>How-To-Repeat:
        on (probably) machine of gcc-4 installed,
        cd /usr/pkgsrc/net/pchar
        sudo make package
>Fix:
--- GetIfInfo.h.orig    2006-07-17 11:53:50.000000000 +0900
+++ GetIfInfo.h 2006-07-17 11:47:06.000000000 +0900
@@ -18,7 +18,7 @@
   bool IsValid(void);
 
   const char * GetDescription(void) const;
-  const char * GetIfInfo::GetName(void) const;
+  const char * GetName(void) const;
   const char * GetContact(void) const;
   const char * GetLocation(void) const;
   const char * GetIfDescription(void) const;

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index