From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,add67a271cbc9b20 X-Google-Attributes: gidfee84,public From: roy@popmail.med.nyu.edu (Roy Smith) Subject: Re: Cannot compile libg++ on DU 4.0 Date: 1997/11/19 Message-ID: #1/1 X-Deja-AN: 291067094 References: <347217C0.FFF2A24F@mitsunari.matfys.lth.se> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 879998873 1427 (None) 128.122.6.157 Organization: New York University School of Medicine Newsgroups: comp.unix.osf.osf1 Kevin Oberman wrote: >> Apply the following patch: >> >> $ diff -c ./libg++/src/Regex.cc~ ./libg++/src/Regex.cc >> *** ./libg++/src/Regex.cc~ Mon Jun 17 17:30:25 1996 >> --- ./libg++/src/Regex.cc Mon Nov 17 16:22:47 1997 > I did the patch, but the compile still fails. I get: > gcc -c -g -O2 -fno-implicit-templates -nostdinc++ -I. -I../../libio -I. -I./../../libio -I./../../libstdc++ -I./../src Regex.cc > In file included from Regex.cc:34: > rx.h:1288: conflicting types for `typedef int regoff_t' > /usr/include/reg_types.h:52: previous declaration as `typedef long int regoff_t' > rx.h:1299: conflicting types for `struct re_pattern_buffer' > /usr/include/reg_types.h:50: previous declaration as `struct regex_t' > rx.h:1308: conflicting types for `struct regmatch_t' > /usr/include/reg_types.h:60: previous declaration as `struct regmatch_t' > rx.h:1308: conflicting types for `struct regmatch_t' > /usr/include/reg_types.h:60: previous declaration as `struct regmatch_t' Hmmm, something doesn't sound right. I had exactly the same problem on my Digital Unix 4.0B alpha system, and applying the patch did indeed solve the problem. Maybe doing a "make clean" would help? Hard to see how, but it can't hurt to try. If you want, I'd be glad to make my compiled libg++ libraries available for anonymous ftp if you can't get it going yourself.