From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7557b9c85fe86df4,start X-Google-Attributes: gidfee84,public From: "R. Scott Butler-DuPont" Subject: GNU and DIGITAL UNIX 4.0B Date: 1997/10/03 Message-ID: <34357982.58929FDB@esvax.email.dupont.com>#1/1 X-Deja-AN: 277696571 X-Priority: 3 (Normal) Organization: DuPont/Scientific Computing Division Reply-To: butler@esvax.email.dupont.com Newsgroups: comp.unix.osf.osf1 I'm trying to build some of the GNU utilities under Digital UNIX 4.0 and am running into various difficulties that did not occur with 3.2C. I've checked the DU FAQ and tried doing some Alta Vista searches but haven't managed to uncover any helpful hints. Here's what happened so far. gcc 2.7.2.3 builds OK. Make 3.75. Failed to build because of the following conditional in .../glob/glob.h #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_BSD_SOURCE) #define GLOB_MAGCHAR (1 << 8)/* Set in gl_flags if any metachars ../ #define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */ #define GLOB_BRACE (1 << 10)/* Expand "{a,b}" to "a" "b". */ #define GLOB_NOMAGIC (1 << 11)/* If no magic chars, return the.. */ #define GLOB_TILDE (1 <<12)/* Expand ~user and ~ to ... */ #endif It seems that in DU 3.2C _POSIX_C_SOURCE was not defined so that the definitions above were included. In DU 4.0B, the value IS defined as 199506. I 'fixed' the problem by defining _BSD_SOURCE. libg++-2.7.2. Fails to build because of conflicting definition of values defined in rx.h (from libg++) and /usr/include/reg_types.h. The library compiles fine on DU 3.2C where there is no /usr/include/reg_types.h. Any suggestions? (A) I'd appreciate a workaround for the libg++ problem. (B) Is there something I can do to make DU 4.0B at least as GNU friendly as 3.2C?