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: Kevin Oberman Subject: Re: Cannot compile libg++ on DU 4.0 Date: 1997/11/19 Message-ID: #1/1 X-Deja-AN: 290844758 Sender: oberman@ptavv.es.net References: <347217C0.FFF2A24F@mitsunari.matfys.lth.se> Organization: ** ESnet ** The Energy Sciences Network ** Newsgroups: comp.unix.osf.osf1 Joel Gallun writes: > 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 > *************** > *** 23,29 **** > --- 23,31 ---- > #pragma implementation > #endif > #include > + #if (!defined(__alpha) || !defined(__osf__)) > #include > + #endif > #include > #include > > Joel > -- > finger joel@gwyn.tux.org for my pgp public key [Patch elided] 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' I can fix these by brute force, but I wonder if there is a "right way" to do it? -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634