Subject: pkg/13086: cvs build fails in pkgsrc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wonko@tmok.com>
List: netbsd-bugs
Date: 06/02/2001 12:23:59
>Number:         13086
>Category:       pkg
>Synopsis:       cvs build fails in pkgsrc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 02 09:17:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brian Hechinger
>Release:        NetBSD 1.5
>Organization:
	Just an average guy who runs NetBSD on EVERYTHING.
>Environment:
System: NetBSD buddy 1.5 NetBSD 1.5 (GENERIC) #1: Wed Nov 29 00:29:52 MET 2000 root@flambard:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
	during the build process, it bails complaining about regex.c which looks
	truncated to me.  here's all the info i can pass along:

===> Building for cvs-1.11nb2
making all in lib
cc  -I.. -I. -I../src  -DHAVE_CONFIG_H -DINET6 -O2 -Dss_family=__ss_family -Dss_
len=__ss_len -c argmatch.c
cc  -I.. -I. -I../src  -DHAVE_CONFIG_H -DINET6 -O2 -Dss_family=__ss_family -Dss_
len=__ss_len -c getline.c
cc  -I.. -I. -I../src  -DHAVE_CONFIG_H -DINET6 -O2 -Dss_family=__ss_family -Dss_
len=__ss_len -c getopt.c
cc  -I.. -I. -I../src  -DHAVE_CONFIG_H -DINET6 -O2 -Dss_family=__ss_family -Dss_
len=__ss_len -c getopt1.c
cc  -I.. -I. -I../src  -DHAVE_CONFIG_H -DINET6 -O2 -Dss_family=__ss_family -Dss_
len=__ss_len -c md5.c
cc  -I.. -I. -I../src  -DHAVE_CONFIG_H -DINET6 -O2 -Dss_family=__ss_family -Dss_
len=__ss_len -c regex.c
cpp: regex.c: Input/output error
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
buddy# find . -name regex.c
./work/cvs-1.11/lib/regex.c
buddy# vi ./work/cvs-1.11/lib/regex.c

/* Extended regular expression matching and search library, version
   0.12.  (Implements POSIX draft P10003.2/D11.2, except for
   internationalization features.)

[snip]
      
        succeed_label:
          DEBUG_PRINT1 ("Accepting match.\n");

          /* If caller wants register contents data back, do it.  */
          if (regs && !bufp->no_sub)
            {
              /* Have the register data arrays been allocated?  */
              if (bufp->regs_allocated == REGS_UNALLOCATED)
                { /* No.  So allocate them with malloc.  We need one
                     extra element beyond `num_regs' for the `-1' marker
                     GNU code uses.  */
                  regs->num_regs = MAX (RE_NREGS, num_regs + 1);
                  regs->start = TALLOC (regs->num_regs, regoff_t);
                  regs->end = TALLOC (regs->num_regs, regoff_t);
                  if (regs->start == NULL || regs->end == NULL)
                    {
                      FREE_VARIABLES ();
                      return -2;
                    }
                  bufp->regs_allocated = REGS_REALLOCATE;
                    }
                  bufp->regs_allocated = REGS_REALLOCATE;
                }
              else if (bufp->regs_allocated == REGS_REALLOCATE)
                { /* Yes.  If we need more elements than were already
                     allocated, reallocate them.  If we need fewer, just
                     leave it alone.  */
                  if (regs->num_regs < num_regs + 1)
                    {
                      regs->num_regs = num_regs + 1;
                      RETALLOC (regs->start, regs->num_regs, regoff_t);
                      RE

./work/cvs-1.11/lib/regex.c: unmodified: line 4448 of 4448 [100%]

>How-To-Repeat:
	use pkgsrc to try and build cvs.  i tried doing a make distclean to see
	if maybe it was just corrupted on my machine, but it is truncated at
	exactly the same spot after i get a new copy.
>Fix:
	check the tarball on the server, make sure it's ok.
>Release-Note:
>Audit-Trail:
>Unformatted: