pkgsrc-Bugs archive

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

pkg/45048: games/sex compile error (cast from pointer to integer of different size)



>Number:         45048
>Category:       pkg
>Synopsis:       games/sex compile error (cast from pointer to integer of 
>different size)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 10 17:25:00 +0000 2011
>Originator:     Thomas Cort
>Release:        N/A
>Organization:
Minix3
>Environment:
Minix 192.168.122.210 3.2.0 i686
>Description:
When I try to install games/sex, gcc gives a warning about a cast and since the 
default CFLAGS for sex include -Werror, it is an error.

gcc -Wno-error -I/usr/pkg/gcc44/include 
-I/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.3/include -Wno-error  -Werror  
-D_MINIX -D_POSIX_SOURCE -I/usr/pkg/gcc44/include 
-I/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.3/include -c sex.c
cc1: warnings being treated as errors
sex.c:243: error: cast from pointer to integer of different size

>How-To-Repeat:
cd /usr/pkgsrc/games/sex && bmake install
>Fix:
--- sex.c.orig  Tue May 31 09:54:02 2011
+++ sex.c       Tue May 31 09:54:12 2011
@@ -240,7 +240,7 @@
         {his,            SZ(his)},        {dongadj,        SZ(dongadj)},
         {dong,           SZ(dong)},       {intoher,        SZ(intoher)},
         {twatadj,        SZ(twatadj)},    {twat,           SZ(twat)},
-        {(char **)NULL,  (short)NULL},
+        {(char **)NULL,  (short)0},
 };
 
 #define LLINE   50



Home | Main Index | Thread Index | Old Index