pkgsrc-Bugs archive

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

pkg/33983: net/howl Solaris SPARC gcc64



>Number:         33983
>Category:       pkg
>Synopsis:       net/howl Solaris SPARC gcc64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 12 12:35:08 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


[root@queen 117] !gcc
gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include/ 
-I../../../src/lib/howl -D_REENTRANT -c DNSServices.c -MT DNSServices.lo -MD 
-MP -MF .deps/DNSServices.TPlo  -fPIC -DPIC -o .libs/DNSServices.o
In file included from mDNSPlatform.h:41,
                 from DNSServices.c:153:
mDNSClientAPI.h:529:10: #if with no expression
In file included from mDNSPlatform.h:41,
                 from DNSServices.c:153:
mDNSClientAPI.h:1467: error: size of array `assert7' is negative
mDNSClientAPI.h:1468: error: size of array `assert8' is negative
mDNSClientAPI.h:1470: error: size of array `assertA' is negative
mDNSClientAPI.h:1471: error: size of array `assertB' is negative
DNSServices.c: In function `DNSQueryRecordCreate':
DNSServices.c:2701: warning: assignment makes pointer from integer without a 
cast
[root@queen 118]


>How-To-Repeat:


bmake


>Fix:


because _LP64 is define in /usr/include/sys/isa_defs.h like that:

#if !defined(_LP64)
#define _LP64
#endif

The following patch is both for amd64 and sparc64 (but strange its works on 
amd64 without patch)

--- src/lib/mDNSResponder/mDNSClientAPI.h.orig  Thu May 19 04:06:39 2005
+++ src/lib/mDNSResponder/mDNSClientAPI.h       Wed Jul 12 14:29:30 2006
@@ -526,7 +526,7 @@
 typedef unsigned char  mDNSu8;
 typedef   signed short mDNSs16;
 typedef unsigned short mDNSu16;
-#if _LP64
+#if defined(_LP64)
 typedef   signed int   mDNSs32;
 typedef unsigned int   mDNSu32;
 #else






Home | Main Index | Thread Index | Old Index