Error building libdisk-1.4.2 under openSuSE 15.6

Hi,

subject says it all. make ./configure" works. A subsequent
make gave errors, i.e. “make: *** [Makefile:388: all] Error 2”.

Any help?

Uwe

@unass I see you posted on usenet too :wink:

diff -Naur a/lib/compress.c b/lib/compress.c
--- a/lib/compress.c	2015-05-26 14:51:10.000000000 -0500
+++ b/lib/compress.c	2025-02-12 09:38:00.469797414 -0600
@@ -28,6 +28,8 @@
 #include <sys/stat.h>
 #endif
 
+#include <sys/sysmacros.h>
+
 #define TMPDIR "/tmp"
 
 static COMPRESS_CLASS *classes[] =
diff -Naur a/lib/drvlinux.c b/lib/drvlinux.c
--- a/lib/drvlinux.c	2016-10-31 18:09:13.000000000 -0500
+++ b/lib/drvlinux.c	2025-02-12 09:38:18.323399013 -0600
@@ -45,7 +45,7 @@
 #include <unistd.h>
 #endif
 
-
+#include <sys/sysmacros.h>
 
 /* This struct contains function pointers to the driver's functions, and the
  * size of its DSK_DRIVER subclass */

Hi,

thanks for your help!!! But I’m not a shell guru and/or a C guru :frowning:
So, can you please send me a functional Makefile file to unass at astro.uni-bonn.de.

Thanks in advance,

Uwe

@unass You only need to use an editor and edit the following two files;
lib/compress.c
lib/drvlinux.c

Then add #include <sys/sysmacros.h> to the files, you can see where in what I posted?

Hi,

problem probably solved. under

https://software.opensuse.org/package/libdsk?locale=en

you can find a SuSE 15.6 libdsk package!

Thanks again,

Uwe

Hi,

I found cpmtools-2.23.tar.gz and libdsk-1.5.21.tar.gz on the net.
Both together give a perfect cpmtools.

Thanks,

Uwe

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.