Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Cannot compile libg++ on DU 4.0
@ 1997-11-18  5:00 Alexey Pushkin
  1997-11-19  5:00 ` Joel Gallun
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Pushkin @ 1997-11-18  5:00 UTC (permalink / raw)



Hi, I cannot compile libg++ 2.7.2 on DU 4.0 
because of conflicting typedefs for  `regoff_t' :

`typedef int regoff_t' in `rx.h'  and
`typedef long int regoff_t' in `/usr/include/reg_types.h'

Is there any work around ?

-- 
Alexey Pushkin
tel: +46 (70) 653 78 01     mailto:pushkin@matfys.lth.se
fax: +46 (46) 222 44 16



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cannot compile libg++ on DU 4.0
  1997-11-19  5:00   ` Kevin Oberman
@ 1997-11-19  5:00     ` Roy Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Roy Smith @ 1997-11-19  5:00 UTC (permalink / raw)



Kevin Oberman <oberman@es.net> 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cannot compile libg++ on DU 4.0
  1997-11-18  5:00 Cannot compile libg++ on DU 4.0 Alexey Pushkin
@ 1997-11-19  5:00 ` Joel Gallun
  1997-11-19  5:00   ` Kevin Oberman
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Gallun @ 1997-11-19  5:00 UTC (permalink / raw)



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 <std.h>
+ #if (!defined(__alpha) || !defined(__osf__))
  #include <ctype.h>
+ #endif
  #include <new.h>
  #include <builtin.h>

Joel
--
finger joel@gwyn.tux.org for my pgp public key 





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cannot compile libg++ on DU 4.0
  1997-11-19  5:00 ` Joel Gallun
@ 1997-11-19  5:00   ` Kevin Oberman
  1997-11-19  5:00     ` Roy Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Oberman @ 1997-11-19  5:00 UTC (permalink / raw)



Joel Gallun <joel@gwyn.tux.org> 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 <std.h>
> + #if (!defined(__alpha) || !defined(__osf__))
>   #include <ctype.h>
> + #endif
>   #include <new.h>
>   #include <builtin.h>
> 
> 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-11-19  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-18  5:00 Cannot compile libg++ on DU 4.0 Alexey Pushkin
1997-11-19  5:00 ` Joel Gallun
1997-11-19  5:00   ` Kevin Oberman
1997-11-19  5:00     ` Roy Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox