pkgsrc-Bugs archive

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

pkg/49763: databases/gdbm won't build on Solaris



>Number:         49763
>Category:       pkg
>Synopsis:       databases/gdbm 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:   Fri Mar 20 06:40:00 +0000 2015
>Originator:     Brad Forschinger
>Release:        2014Q4
>Organization:
>Environment:
>Description:

w/ solstudio

"lex.l", line 518: void function cannot return value  

also ancient struct member init


>How-To-Repeat:

>Fix:
--- lex.c.orig  Thu May 16 21:34:26 2013
+++ lex.c       Fri Mar 20 17:36:11 2015
@@ -2408,7 +2408,8 @@
            {
              if (p->cache)
                free (p->cache);
-             return p->fun (p);
+             p->fun (p);
+             return;
            }
        }
     }

--- var.c.orig  Fri Mar 20 17:37:30 2015
+++ var.c       Fri Mar 20 17:38:05 2015
@@ -52,14 +52,14 @@
   { "delim1", VART_STRING, VARF_INIT|VARF_PROT, { "," } },
   /* This delimits structure members */
   { "delim2", VART_STRING, VARF_INIT|VARF_PROT, { "," } },
-  { "confirm", VART_BOOL, VARF_INIT, { num: 1 } },
+  { "confirm", VART_BOOL, VARF_INIT, { .num = 1 } },
   { "cachesize", VART_INT, VARF_DFL },
   { "blocksize", VART_INT, VARF_DFL },
   { "open", VART_STRING, VARF_DFL, { NULL }, open_hook },
-  { "lock", VART_BOOL, VARF_INIT, { num: 1 } },
-  { "mmap", VART_BOOL, VARF_INIT, { num: 1 } },
-  { "sync", VART_BOOL, VARF_INIT, { num: 0 } },
-  { "filemode", VART_INT, VARF_INIT|VARF_OCTAL|VARF_PROT, { num: 0644 } },
+  { "lock", VART_BOOL, VARF_INIT, { .num = 1 } },
+  { "mmap", VART_BOOL, VARF_INIT, { .num = 1 } },
+  { "sync", VART_BOOL, VARF_INIT, { .num = 0 } },
+  { "filemode", VART_INT, VARF_INIT|VARF_OCTAL|VARF_PROT, { .num = 0644 } },
   { "pager", VART_STRING, VARF_DFL },
   { "quiet", VART_BOOL, VARF_DFL },
   { NULL }



Home | Main Index | Thread Index | Old Index