pkgsrc-Bugs archive

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

pkg/49786: games/nethack-tty won't build on Solaris



>Number:         49786
>Category:       pkg
>Synopsis:       games/nethack-tty won't build on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 26 04:05:00 +0000 2015
>Originator:     Brad Forschinger
>Release:        2014Q4
>Organization:
>Environment:
SunOS x 5.10 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
cc: Sun C 5.12 SunOS_sparc Patch 148917-08 2014/09/10

>Description:

missing definition for index():

cc -O -I../include -DGTYPE_TTY -I/usr/include -c mkmaze.c
"mkmaze.c", line 480: warning: implicit function declaration: index
"mkmaze.c", line 480: warning: improper pointer/integer combination: op "="
"mkmaze.c", line 529: warning: implicit function declaration: rindex
"mkmaze.c", line 529: operands have incompatible types:
         int "-" pointer to char
"mkmaze.c", line 539: warning: improper pointer/integer combination: op "="
cc: acomp failed for mkmaze.c

>How-To-Repeat:

>Fix:
--- mkmaze.c.orig       Thu Mar 26 14:59:26 2015
+++ mkmaze.c    Thu Mar 26 14:59:50 2015
@@ -5,6 +5,7 @@
 #include "hack.h"
 #include "sp_lev.h"
 #include "lev.h"       /* save & restore info */
+#include <strings.h>
 
 /* from sp_lev.c, for fixup_special() */
 extern char *lev_message;



Home | Main Index | Thread Index | Old Index