pkgsrc-Bugs archive

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

Re: pkg/48412 (sysutils/cdrtools fails to build on NetBSD-6.1.2/amd64)



The following reply was made to PR pkg/48412; it has been noted by GNATS.

From: Greg Oster <oster%cs.usask.ca@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48412 (sysutils/cdrtools fails to build on
 NetBSD-6.1.2/amd64)
Date: Thu, 28 Nov 2013 09:28:48 -0600

 On Thu, 28 Nov 2013 04:10:01 +0000 (UTC)
 David Holland <dholland-pbugs%netbsd.org@localhost> wrote:
 
 > The following reply was made to PR pkg/48412; it has been noted by
 > GNATS.
 > 
 > From: David Holland <dholland-pbugs%netbsd.org@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: 
 > Subject: Re: pkg/48412 (sysutils/cdrtools fails to build on
 >  NetBSD-6.1.2/amd64)
 > Date: Thu, 28 Nov 2013 04:07:50 +0000
 > 
 >  On Wed, Nov 27, 2013 at 06:50:00PM +0000, Matthias Scheler wrote:
 >   >  >  >  That looks correct. Did you do a "make clean" after
 >   >  >  > updating to the latest patches?
 >   >  >  
 >   >  >  Yes....  
 >   >  
 >   >  Hmmm, weird.
 >  
 >  There's an AT_FDCWD in schily/fcntl.h that ought to be getting used;
 > I don't see why not but of course it's a maze of ifdefs...
 >  
 >   >  >  If I add: -D_INCOMPLETE_XOPEN_C063  thusly:
 >   >  >  
 >   >  >  CFLAGS.NetBSD+= -DUSE_GETRAWPARTITION
 >   >  > -D_INCOMPLETE_XOPEN_C063 
 >   >  >  to the Makefile, then it builds and links fine....  but I'm
 >   >  > not sure about that as a real solution :-/
 >   >  
 >   >  Not as far as I can tell. IIUC the symbol is not exported because
 >   >  the functionality isn't implemented.
 >  
 >  Yeah, it's hidden specifically to keep configure tests from finding
 >  and latching onto that stuff.
 
 The test for openat() seems to be just the equivalent to:
 
  #include <fcntl.h>
  int main()
  {
    openat();
  }
 
 which compiles just fine on NetBSD 6.1.2.  That compilation enables
 HAVE_OPENAT, which turns off the schily version, but is not sufficient
 to guarantee the availability of the AT_FDCWD #defines
 from /usr/include/sys/fcntl.h :(
 
 Later...
 
 Greg Oster
 


Home | Main Index | Thread Index | Old Index