I am trying to compile/install pgm last built from wheezy onto a
rpi running buster os. The make and Makefile refer to /usr/X11R6
which doesn't exist in buster. What to do? (pgm in question is
gsport-0.31, a apple IIGS emulator).
file vars links to vars_pi.
nelso...@gmail.com <nelso...@gmail.com> wrote:Thank you Kev(?). I think I have the X11 issue resolved. But 'make' still doesn't make it (punny).
I am trying to compile/install pgm last built from wheezy onto aYou've probably got directories such as /usr/bin/X11 and
rpi running buster os. The make and Makefile refer to /usr/X11R6
which doesn't exist in buster. What to do? (pgm in question is gsport-0.31, a apple IIGS emulator).
file vars links to vars_pi.
/usr/include/X11. /usr/X11R6 is supposed to include those
same directories, like this:
$ ls /usr/X11R6
bin include lib man share
So if it's not easy to adapt the Makefile to using the X11
directories, you want to make a /usr/X11R6 directory and symlink
all the /usr/bin/X11 directories inside there, eg.
$ sudo mkdir /usr/X11R6
$ sudo ln -s /usr/bin/X11 /usr/X11R6/bin
$ sudo ln -s /usr/include/X11 /usr/X11R6/include
etc.
Of course you'll want to install the -dev package for Xorg as
well.
--
__ __
#_ < |\| |< _#
I am trying to compile/install pgm last built from wheezy onto a rpi running buster os. The make and Makefile refer to /usr/X11R6 which doesn't exist in buster. What to do? (pgm in question is gsport-0.31, a apple IIGS emulator).
file vars links to vars_pi.
--Steven
Does this help?
http://ivanx.com/raspberrypi/raspberrypi_emulators.html
On 2021-05-04 00:43 , nelso...@gmail.com wrote:
I am trying to compile/install pgm last built from wheezy onto a rpi running buster os. The make and Makefile refer to /usr/X11R6 which doesn't exist in buster. What to do? (pgm in question is gsport-0.31, a apple IIGS emulator).
file vars links to vars_pi.
--Steven
Thank you Kev(?). I think I have the X11 issue resolved. Butimagewriter.o scc_imagewriter.o scc_llap.o tfe/tfe.o tfe/tfearch.o tfe/tfesupp.o atbridge/aarp.o atbridge/atbridge.o atbridge/elap.o atbridge/llap.o atbridge/port.o atbridge/pcap_delay.o xdriver.o compile_time.o -o gsportx -L/usr/X11R6/lib -lXext -lX11
'make' still doesn't make it (punny).
pi@raspberrypi4:~/gsport-0.31/src $ make
g++ -O2 -Wall -fomit-frame-pointer -std=gnu99 -march=armv6 adb.o clock.o config.o dis.o engine_c.o scc.o iwm.o joystick_driver.o moremem.o paddles.o parallel.o printer.o sim65816.o smartport.o sound.o sound_driver.o video.o scc_socket_driver.o
/usr/bin/ld: atbridge/pcap_delay.o: undefined reference to symbol 'dlopen@@GLIBC_2.4'
/usr/bin/ld: //lib/arm-linux-gnueabihf/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:66: gsportx] Error 1
pi@raspberrypi4:~/gsport-0.31/src $
I have no idea where to debug.
nelso...@gmail.com <nelso...@gmail.com> wrote:imagewriter.o scc_imagewriter.o scc_llap.o tfe/tfe.o tfe/tfearch.o tfe/tfesupp.o atbridge/aarp.o atbridge/atbridge.o atbridge/elap.o atbridge/llap.o atbridge/port.o atbridge/pcap_delay.o xdriver.o compile_time.o -o gsportx -L/usr/X11R6/lib -lXext -lX11
Thank you Kev(?). I think I have the X11 issue resolved. But
'make' still doesn't make it (punny).
pi@raspberrypi4:~/gsport-0.31/src $ make
g++ -O2 -Wall -fomit-frame-pointer -std=gnu99 -march=armv6 adb.o clock.o config.o dis.o engine_c.o scc.o iwm.o joystick_driver.o moremem.o paddles.o parallel.o printer.o sim65816.o smartport.o sound.o sound_driver.o video.o scc_socket_driver.o
Thank you! That solved the make errors. But the resulting executable (gsportx) fails with a segmentation fault. Grrr/usr/bin/ld: atbridge/pcap_delay.o: undefined reference to symbol 'dlopen@@GLIBC_2.4'
/usr/bin/ld: //lib/arm-linux-gnueabihf/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:66: gsportx] Error 1
pi@raspberrypi4:~/gsport-0.31/src $
I have no idea where to debug.Well the linker is missing a library that the source code requires,
adding "-ldl" to the end of the g++ command should work. If it has
a common sort of configure script, try:
$ LIBS=-ldl ./configure [any other args that you've been using]
If it's a handmade Makefile, you'll just have to find where
"-lXext -lX11" is specified and add " -ldl" on the end.
--
__ __
#_ < |\| |< _#
On Tuesday, May 4, 2021 at 6:19:25 PM UTC-5, Computer Nerd
Kev wrote:
Well the linker is missing a library that the source codeThank you! That solved the make errors. But the resulting
requires, adding "-ldl" to the end of the g++ command
should work. If it has a common sort of configure script,
try: $ LIBS=-ldl ./configure [any other args that you've
been using]
If it's a handmade Makefile, you'll just have to find
where "-lXext -lX11" is specified and add " -ldl" on the
end.
executable (gsportx) fails with a segmentation fault. Grrr
If it's a handmade Makefile, you'll just have to findThank you! That solved the make errors. But the resulting
where "-lXext -lX11" is specified and add " -ldl" on the
end.
executable (gsportx) fails with a segmentation fault. Grrr
Ah, well that will probably be a bit more in-depth to fix. The
only easy option might be if there's a current package for
some other Linux or BSD, the package maintainers might have
already made their own patch to get around that problem.
Otherwise you could report a bug to the software's author, or
try debugging the code yourself.
If you can turn off features with command-line arguments to
gsportx, maybe see if you can get it to avoid the bit of code
causing the seg fault.
Thank you! That solved the make errors. But the resulting executable (gsportx) fails with a segmentation fault.
Welcome to version, and dependency, hell.
Computer Nerd Kev wrote:
If it's a handmade Makefile, you'll just have to findThank you! That solved the make errors. But the resulting
where "-lXext -lX11" is specified and add " -ldl" on the
end.
executable (gsportx) fails with a segmentation fault. Grrr
Ah, well that will probably be a bit more in-depth to fix. The
only easy option might be if there's a current package for
some other Linux or BSD, the package maintainers might have
already made their own patch to get around that problem.
Otherwise you could report a bug to the software's author, or
try debugging the code yourself.
If you can turn off features with command-line arguments to
gsportx, maybe see if you can get it to avoid the bit of code
causing the seg fault.
From time to time I admire this news group/mailing list.
OP is trying to compile something that was working in Wheezy for Buster!!!
Do you know when Wheezy went out of support? Do you know how Debian changed meanwhile? I see last update of this code was 2017 and it is written for
x86.
Well the homepage describes build instructions for the Raspberry
Pi, and unless a program is written in assembly there's no
immediate reason to assume it won't build on ARM even if only
tested on x86 by the developer.
On 06/05/2021 01:02, Computer Nerd Kev wrote:
Well the homepage describes build instructions for the Raspberry
Pi, and unless a program is written in assembly there's no
immediate reason to assume it won't build on ARM even if only
tested on x86 by the developer.
Only if it hasn't made assumptions about x86 structure packing,
non-aligned accesses, and a lot of other subtle architecture pitfalls.
---druck
I am trying to compile/install pgm last built from wheezy onto a rpi running buster os. The make and Makefile refer to /usr/X11R6 which doesn't exist in buster. What to do? (pgm in question is gsport-0.31, a apple IIGS emulator).
file vars links to vars_pi.
--Steven
Of course you'll want to install the -dev package for Xorg as
well.
On 2021-05-03 16:07, Computer Nerd Kev wrote:
Of course you'll want to install the -dev package for Xorg as
well.
right - and that's probably the most important part
NOTE: I tested this - "apt-get build-dep libgtk2.0-dev"
I think it includes all of the most popular libs for -dev packages. The >default RPi includes gtk2 and the dev package needs "all that" to build.
It was around 600Mb when I just tested it on a different Linux system
(based on Debian Buster). RPi is usually very similar. But I think i >already installed all of the -dev packages on my RPi systems...
On Tue, 8 Jun 2021 18:53:56 -0700
Big Bad Bob <BigBadBob-at-mrp3-dot-com@testing.local> wrote:
On 2021-05-03 16:07, Computer Nerd Kev wrote:
Of course you'll want to install the -dev package for Xorg as
well.
right - and that's probably the most important part
NOTE: I tested this - "apt-get build-dep libgtk2.0-dev"
I think it includes all of the most popular libs for -dev packages. The
default RPi includes gtk2 and the dev package needs "all that" to build.
It was around 600Mb when I just tested it on a different Linux system
(based on Debian Buster). RPi is usually very similar. But I think i
already installed all of the -dev packages on my RPi systems...
Make sure you have 'build-essential' too. You won't get far without it!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 36:52:38 |
Calls: | 7,932 |
Calls today: | 2 |
Files: | 12,998 |
Messages: | 5,805,537 |