pkgsrc-Bugs archive

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

pkg/42841: IRIX bootstrap fails in nbcompat

>Number:         42841
>Category:       pkg
>Synopsis:       IRIX bootstrap fails in nbcompat
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 18 16:35:00 +0000 2010
>Originator:     Brian Ginsbach
>Release:        pkgsrc-2009Q4
System: IRIX pkgirix 6.5.23 01080747 IP32

In file included from 
nbcompat/db.h:47: error: conflicting types for `pgno_t'
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/include/sys/types.h:78: error: 
previous declaration of `pgno_t'
*** Error code 1

bmake: stopped in /usr/pkgsrc/bootstrap/work/libnbcompat
===> exited with status 1

Attempt to bootstrap pkgsrc on IRIX.

The problem is that IRIX has a typedef of pgno_t in
/usr/include/sys/types.h.  The db.h file distributed with IRIX
includes the following:

 * XXX
 * Important: Don't use the IRIX pgno_t typedef.
 * It causes an endless loop in btree
#define pgno_t  db_pgno_t

A similar work around needs to be included with the nbcompat db.h file.

The following while not the most elegant does work.

#ifdef __sgi
/* Can't use the IRIX pgno_t typedef. */
#define pgno_t          db_pgno_t

It would probably be better to add a configure test, something like

Home | Main Index | Thread Index | Old Index