Hi,

Van Snyder wrote:
> > I use some old stuff such as xv

Andrew M.A. Cater wrote:
> I can't see XV in modern Debian

That's most probably because of its license terms as "shareware".

I love it much and it turns out that my Debian 11 uses a binary which i
made on a SuSE machine about 10 years ago:
  ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked,
  interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.4

So just for curiosity i tried what happens if i build xv on Debian 11.

  wget ftp://ftp.trilon.com/pub/xv/xv-3.10a.tar.gz
  tar xzf xv-3.10a.tar.gz
  cd xv-3.10a
  view INSTALL

The INSTALL file gives information about systems of the 1990s, not
mentioning GNU/Linux. It falls probably under "GCC". So i simply did

  make

This earns me the error message

  xv.h:123:25: error: conflicting types for ‘sys_errlist’
    123 |      extern const char *sys_errlist[];     /* this too... */
        |                         ^~~~~~~~~~~
  In file included from /usr/include/stdio.h:781,
                   from xv.h:103,
                   from xv.c:11:
  /usr/include/x86_64-linux-gnu/bits/sys_errlist.h:27:26: note: previous 
declaration of ‘sys_errlist’ was here
     27 | extern const char *const sys_errlist[];

So i change in ./xv.h

-     extern const char *sys_errlist[];     /* this too... */
+     extern const char *const sys_errlist[];     /* this too... */

and run again

  make

After some ugly warnings the run ends and there exists

  $ ls -l ./xv
  -rwxr-xr-x 1 thomas thomas 1376536 Mar 12 13:46 ./xv

It starts and can show its JPEG picture:

  ./xv jpeg/testimg.jpg &

About dependencies:

  $ ldd ./xv
     linux-vdso.so.1 (0x00007ffc695b5000)
     libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8350da2000)
     libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8350c5e000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8350a99000)
     libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f8350a6e000)
     libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8350a68000)
     /lib64/ld-linux-x86-64.so.2 (0x00007f83510ad000)
     libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8350a63000)
     libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f835085b000)
     libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f8350844000)
     libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f8350837000)

The compiler equipment is probably provided by Debian package
"build-essential".
I assume that i got the X stuff when the system was installed as Debian 10
with XFCE desktop. Meanwhile it is Debian 11 with fvwm.
Maybe others can tell what packages are necessary to provide the above
libraries and their development include headers.


Have a nice day :)

Thomas

Reply via email to