issues compiling ingres - fails at ovqp

43 views
Skip to first unread message

Stephane Lajeunesse

unread,
Aug 5, 2025, 2:56:32 PMAug 5
to [PiDP-11]
First off, I'm really looking forward to building my pidp-11 kit shortly. In the mean time, I'm playing with pidp-11. Got RSX-11MPLUS with oracle working and trying to get ingres working on 2.11bsd.

using this disk of 2.11 BSD: https://github.com/chasecovello/211bsd-pidp11/raw/refs/heads/master/2.11BSD_rq.dsk.xz

I'm having a hard time compiling ingres that is in that disk image. I have recompiled the kernel with INGRES YES but the actual compilation of ingres always fails while compiling ovqp:

cc -O -c ovqp.c
cc -O -c startovqp.c
cc -O -c getqry.c
cc -O -c rdsym.c
cc -O -c strategy.c
cc -O -c findsimps.c
findsimps.c:269: prototype error
findsimps.c:269: prototype error
findsimps.c:269: prototype error
findsimps.c:270: Declaration syntax
findsimps.c:271: len redeclared
findsimps.c:272: op redeclared
findsimps.c:285: cpsym prototype error
findsimps.c:297: Expression syntax
findsimps.c:341: value undefined
findsimps.c:344: prototype error
findsimps.c:344: prototype error
findsimps.c:344: prototype error
findsimps.c:345: Declaration syntax
findsimps.c:346: rel redeclared
findsimps.c:347: attno redeclared
findsimps.c:356: add_simp prototype error
findsimps.c:365: Expression syntax
findsimps.c:385: Expression syntax
*** Exit 1

Stop.

compilation is done as user ingres as documented

Anyone have an idea of how to correct this issue? Maybe someone has an updated findsimps.c file ?

Thanks in advance!

Heinz-Bernd Eggenstein

unread,
Aug 5, 2025, 6:58:34 PMAug 5
to [PiDP-11]
Funny, I wrote about this just a few days ago. The problem is that C code in this folder (not just in that file) uses "const" as variable name and as a member in structs. This is not legal in recent versions of C, as const is now a reserved keyword. grep for all such instances of const in that directory, and replace consistently with, say "const_" . That should do the trick. 

Good luck
HB

Stephane Lajeunesse

unread,
Aug 5, 2025, 7:14:46 PMAug 5
to [PiDP-11]
I'm really sorry for having missed that message, clearly I didn't use the search properly. Way to do a first impression. I'll do better next time and thanks for the info, I'll do the change and recompile it

Thanks!

Stephane Lajeunesse

unread,
Aug 5, 2025, 7:49:37 PMAug 5
to [PiDP-11]
was able to compile and successfully build and query the demo database. Thanks for your help! I'll do a bit of tidying and upload the disk image to github so that people can have an image with the kernel with ingres lock support and ingres fully compiled. That and the modified source code.


On Tuesday, August 5, 2025 at 6:58:34 PM UTC-4 hbep...@googlemail.com wrote:
Reply all
Reply to author
Forward
0 new messages