IMPORTANT: Fix to run PiDP-11 on latest Raspberry Pi OS 11 (Raspbian Bullseye)

830 views
Skip to first unread message

oscarv

unread,
Nov 30, 2021, 1:05:48 PM11/30/21
to [PiDP-11]
Problem:
=======
The latest and greatest Raspbian OS moved from libreadline7 to libreadline8, breaking /opt/pidp11/client11.

Symptoms:
=========
The PDP-11 simulation will not start on a freshly installed new Raspbian. Nothing works.

Solution:
=======
To solve the problem, enter this on the Pi's command line:
   cd /lib/arm-linux-gnueabihf
   sudo ln -sv libreadline.so.8 libreadline.so.7


--> A more proper fix will come later, this does the job for now though.

Kind regards,

Oscar.

Brent Norrod

unread,
Dec 9, 2021, 2:21:20 PM12/9/21
to [PiDP-11]
Thanks Oscar!   I was trying to get mine up and running a few weeks ago.  No beinging a strong Linux person, I got frustrated and walked away for a couple days.  Then one evening I took another run at it.
I got no errors until I executed "/opt/pidp11/src/02.3_simh/4.x+realcons/bin-rpi/pdp11_realcons"  directly and saw the error.
So by chance, I creating the link for libreadline.so 7 to 8. I was pretty proud of myself :)  I meant to post it up here, but get side tracked.

Rene Richarz

unread,
Jan 28, 2022, 11:18:09 AM1/28/22
to [PiDP-11]
Oscar,

The libreadline7 fix works fine for me with the latest Raspberry Pi OS (bullseye). But unfortunately I cannot build simh again using your makeclient.sh. I get the following error:

  /usr/bin/ld: /tmp/ccquTRYK.o:(.bss+0x186c): multiple definition of `realcons_event_cpu_reset'; /tmp/ccxgWVqM.o:(.bss+0x68): first defined here
collect2: error: ld returned 1 exit status
make: *** [quickmake:122: ../bin-rpi/pdp11_realcons] Error 1

Ony idea what's wrong there?

timr...@gmail.com

unread,
Jan 28, 2022, 4:50:30 PM1/28/22
to [PiDP-11]
Isn't /tmp a ram disk in this instance?  Seems like there is stuff left over from a previous build?  Reboot your Rasp Pi and see if that 
clears things up?

Rene Richarz

unread,
Jan 29, 2022, 3:07:47 AM1/29/22
to [PiDP-11]

I resolved the problem reported above when using makeclient.sh with the latest PiDP-11 software. This problem is only relevant for users of the PiDP-11 software who want to rebuild (recompile) the software. This is only required if the PiDP-11 SimH software is modified or if modified SimH drivers are installed.

The following error message may be displayed when executing makeclient.sh:

/usr/bin/ld: /tmp/ccquTRYK.o:(.bss+0x186c): multiple definition of `realcons_event_cpu_reset'; /tmp/ccxgWVqM.o:(.bss+0x68): first defined here
collect2: error: ld returned 1 exit status
make: *** [quickmake:122: ../bin-rpi/pdp11_realcons] Error 1

This is due to an inconsistence in the latest PiDP-11 software installed with
  sudo wget https://www3.ispnet.net/pidp11/pidp11.tar.gz

To fix this problem, line 723 in /opt/pidp11/src/02.3_simh/4.x+realcons/src/PDP11/pdp11_cpu.c needs to be changed from
console_controller_event_func_t realcons_event_cpu_reset;
to
extern console_controller_event_func_t realcons_event_cpu_reset;

Reply all
Reply to author
Forward
0 new messages