• My memory problem,,, (i.e. not the machine's!)

    From Jim Lesurf@21:1/5 to All on Tue Dec 27 18:56:59 2022
    I've had a new laptop for a while and been using copies of many of my old programmes on it OK. All compiled from 'C' using gcc on older machices.

    However I've (re-)hit a problem I've encountered in past years and have forgotten exactly what I need to install to fix it.

    xfce Mint distro

    Trying to recompile using gcc8 I get an error that tells me it can't find stdio.h. So I assume means I haven't installed the correct package(s) for
    that and the other usual C routines. However when I use synaptic I can't
    find a package whose name tells me its what I need as the required library.

    Apologies for the ignorance. But can someome remind me? A search with
    synaptic doesn't show up what's needed.

    As you can tell, the only actual course I even did on progamming was for FORTRAN on an ICL1900 mumble decades ago. From then on I've just banged
    rocks together until I get the spark I wanted. :-/

    Jim

    --
    Please use the address on the audiomisc page if you wish to email me. Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
    biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
    Audio Misc http://www.audiomisc.co.uk/index.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Theo@21:1/5 to Jim Lesurf on Tue Dec 27 19:46:25 2022
    Jim Lesurf <noise@audiomisc.co.uk> wrote:
    Trying to recompile using gcc8 I get an error that tells me it can't find stdio.h. So I assume means I haven't installed the correct package(s) for that and the other usual C routines. However when I use synaptic I can't
    find a package whose name tells me its what I need as the required library.

    Apologies for the ignorance. But can someome remind me? A search with synaptic doesn't show up what's needed.

    I normally just use https://packages.debian.org/ or
    https://package.ubuntu.com/ to search for the package with a particular file
    in it, but you can also use apt-file:

    sudo apt install apt-file
    sudo apt-file update
    apt-file find /stdio.h
    (the / is so you don't match things like 'PREFIXstdio.h', of which there are
    a number)

    In this case there's quite a few hits, but the one to go for is libc6-dev.

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vincent Coen@21:1/5 to Theo on Wed Dec 28 01:27:28 2022
    Hello Theo!

    Tuesday December 27 2022 19:46, Theo wrote to All:

    Jim Lesurf <noise@audiomisc.co.uk> wrote:
    Trying to recompile using gcc8 I get an error that tells me it can't
    find stdio.h. So I assume means I haven't installed the correct
    package(s) for that and the other usual C routines. However when I
    use synaptic I can't find a package whose name tells me its what I
    need as the required library.

    Apologies for the ignorance. But can someome remind me? A search
    with synaptic doesn't show up what's needed.

    I normally just use https://packages.debian.org/ or https://package.ubuntu.com/ to search for the package with a
    particular file in it, but you can also use apt-file:

    sudo apt install apt-file
    sudo apt-file update
    apt-file find /stdio.h
    (the / is so you don't match things like 'PREFIXstdio.h', of which
    there are a number)

    In this case there's quite a few hits, but the one to go for is
    libc6-dev.

    I 'assume' you meant to say https://packages.ubuntu.com :)

    I.e., missing 's'.

    Vincent

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Jim Lesurf on Wed Dec 28 09:10:25 2022
    Jim Lesurf <noise@audiomisc.co.uk> writes:
    I've had a new laptop for a while and been using copies of many of my old programmes on it OK. All compiled from 'C' using gcc on older machices.

    However I've (re-)hit a problem I've encountered in past years and have forgotten exactly what I need to install to fix it.

    xfce Mint distro

    Trying to recompile using gcc8 I get an error that tells me it can't find stdio.h. So I assume means I haven't installed the correct package(s) for that and the other usual C routines. However when I use synaptic I can't
    find a package whose name tells me its what I need as the required library.

    Apologies for the ignorance. But can someome remind me? A search with synaptic doesn't show up what's needed.

    Others have pointed you at the specific package you need. Personally I
    always install build-essential. Technically that is to ensure Debian
    packages can be built but it’s a quick way to get the most basic
    dependencies for any C/C++ work.

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Folderol@21:1/5 to Richard Kettlewell on Wed Dec 28 11:24:44 2022
    On Wed, 28 Dec 2022 09:10:25 +0000
    Richard Kettlewell <invalid@invalid.invalid> wrote:

    Jim Lesurf <noise@audiomisc.co.uk> writes:
    I've had a new laptop for a while and been using copies of many of my old
    programmes on it OK. All compiled from 'C' using gcc on older machices.

    However I've (re-)hit a problem I've encountered in past years and have
    forgotten exactly what I need to install to fix it.

    xfce Mint distro

    Trying to recompile using gcc8 I get an error that tells me it can't find
    stdio.h. So I assume means I haven't installed the correct package(s) for
    that and the other usual C routines. However when I use synaptic I can't
    find a package whose name tells me its what I need as the required library. >>
    Apologies for the ignorance. But can someome remind me? A search with
    synaptic doesn't show up what's needed.

    Others have pointed you at the specific package you need. Personally I
    always install build-essential. Technically that is to ensure Debian
    packages can be built but it’s a quick way to get the most basic >dependencies for any C/C++ work.


    Same here. Install once then forget about it :)

    --
    Basic

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jim Lesurf@21:1/5 to invalid@invalid.invalid on Wed Dec 28 12:49:25 2022
    In article <wwva637yjum.fsf@LkoBDZeT.terraraq.uk>, Richard Kettlewell <invalid@invalid.invalid> wrote:
    Others have pointed you at the specific package you need. Personally I
    always install build-essential. Technically that is to ensure Debian
    packages can be built but it's a quick way to get the most basic
    dependencies for any C/C++ work.

    I may be misunderstanding, but I've now tried installing the
    "build-essential" package and am still not getting something right. I'll do some more head-scratching over it.

    Jim

    --
    Please use the address on the audiomisc page if you wish to email me. Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
    biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
    Audio Misc http://www.audiomisc.co.uk/index.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jim Lesurf@21:1/5 to theom+news@chiark.greenend.org.uk on Wed Dec 28 12:44:53 2022
    In article <Dvh*KlT6y@news.chiark.greenend.org.uk>, Theo <theom+news@chiark.greenend.org.uk> wrote:

    In this case there's quite a few hits, but the one to go for is
    libc6-dev.

    Now done I think. But seems to have moved me on to another hurdle.

    I'm now told I need libxcb-shape.so.0, but when I do a Synaptic search on libxcb-shape I get two packages listed which are already installed. No
    others that aren't.

    Jim

    --
    Please use the address on the audiomisc page if you wish to email me. Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
    biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
    Audio Misc http://www.audiomisc.co.uk/index.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Theo@21:1/5 to Jim Lesurf on Wed Dec 28 14:04:14 2022
    Jim Lesurf <noise@audiomisc.co.uk> wrote:
    Now done I think. But seems to have moved me on to another hurdle.

    I'm now told I need libxcb-shape.so.0, but when I do a Synaptic search on libxcb-shape I get two packages listed which are already installed. No
    others that aren't.

    On Ubuntu 22.04:
    $ apt-file find libxcb-shape.so.0
    libxcb-shape0: /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0
    libxcb-shape0: /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0.0.0
    $ apt-cache search libxcb-shape
    libxcb-shape0 - X C Binding, shape extension
    libxcb-shape0-dev - X C Binding, shape extension, development files

    I assume you have libxcb-shape0 installed? You probably also want libxcb-shape0-dev, as that's the bindings the compiler will need.

    If you have both of those, are you by any chance compiling for 32 bit
    binaries on a 64 bit OS? You might need the libxcb-shape0-dev:i386
    packages (but don't install that if you aren't as it may drag in lots of
    other stuff).

    Theo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jim Lesurf@21:1/5 to general@musically.me.uk on Thu Dec 29 17:33:27 2022
    In article <20221228112444.325ec3eb@devuan>, Folderol
    <general@musically.me.uk> wrote:
    Others have pointed you at the specific package you need. Personally I >always install build-essential. Technically that is to ensure Debian >packages can be built but it's a quick way to get the most basic >dependencies for any C/C++ work.


    Same here. Install once then forget about it :)

    Synaptic seemst to show two packages when I search for "build-essential".
    Both of which are marked as installed. But I stil get

    "libxcb-shape0-dev" and no coconut! :-/

    Jim

    --
    Please use the address on the audiomisc page if you wish to email me. Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
    biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
    Audio Misc http://www.audiomisc.co.uk/index.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stephen Chadfield@21:1/5 to Jim Lesurf on Fri Dec 30 00:02:24 2022
    On 2022-12-29, Jim Lesurf <noise@audiomisc.co.uk> wrote:
    In article <20221228112444.325ec3eb@devuan>, Folderol
    <general@musically.me.uk> wrote:
    Others have pointed you at the specific package you need. Personally I
    always install build-essential. Technically that is to ensure Debian
    packages can be built but it's a quick way to get the most basic
    dependencies for any C/C++ work.


    Same here. Install once then forget about it :)

    Synaptic seemst to show two packages when I search for "build-essential". Both of which are marked as installed. But I stil get

    "libxcb-shape0-dev" and no coconut! :-/

    Jim


    On Debian:

    $ apt search libxcb-shape
    Sorting... Done
    Full Text Search... Done
    libxcb-shape0/stable,now 1.14-3 amd64
    X C Binding, shape extension

    libxcb-shape0-dev/stable,now 1.14-3 amd64
    X C Binding, shape extension, development files

    $ apt install libxcb-shape0-dev

    --
    Stephen Chadfield
    https://www.chadfield.com/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stephen Chadfield@21:1/5 to Stephen Chadfield on Fri Dec 30 00:09:49 2022
    On 2022-12-30, Stephen Chadfield <stephen@chadfield.com> wrote:
    On 2022-12-29, Jim Lesurf <noise@audiomisc.co.uk> wrote:
    In article <20221228112444.325ec3eb@devuan>, Folderol >><general@musically.me.uk> wrote:
    Others have pointed you at the specific package you need. Personally I
    always install build-essential. Technically that is to ensure Debian
    packages can be built but it's a quick way to get the most basic
    dependencies for any C/C++ work.


    Same here. Install once then forget about it :)

    Synaptic seemst to show two packages when I search for "build-essential".
    Both of which are marked as installed. But I stil get

    "libxcb-shape0-dev" and no coconut! :-/

    Jim


    On Debian:

    $ apt search libxcb-shape
    Sorting... Done
    Full Text Search... Done
    libxcb-shape0/stable,now 1.14-3 amd64
    X C Binding, shape extension

    libxcb-shape0-dev/stable,now 1.14-3 amd64
    X C Binding, shape extension, development files

    $ apt install libxcb-shape0-dev


    And...

    $ find /usr -name libxcb-shape* -print
    /usr/share/doc/libxcb-shape0-dev
    /usr/share/doc/libxcb-shape0
    /usr/lib/x86_64-linux-gnu/libxcb-shape.so /usr/lib/x86_64-linux-gnu/libxcb-shape.a /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0.0.0 /usr/lib/x86_64-linux-gnu/libxcb-shape.so.0

    --
    Stephen Chadfield
    https://www.chadfield.com/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Kettlewell@21:1/5 to Jim Lesurf on Fri Dec 30 09:15:58 2022
    Jim Lesurf <noise@audiomisc.co.uk> writes:
    Folderol <general@musically.me.uk> wrote:
    Others have pointed you at the specific package you need. Personally
    I always install build-essential. Technically that is to ensure
    Debian packages can be built but it's a quick way to get the most
    basic dependencies for any C/C++ work.

    Same here. Install once then forget about it :)

    Synaptic seemst to show two packages when I search for "build-essential". Both of which are marked as installed.

    You’re reading it wrong somehow. There’s at most one copy of build-essential installed.

    But I stil get

    "libxcb-shape0-dev" and no coconut! :-/

    I’m not sure what you’re try to say here. If you want libxcb-shape0-dev then install that too.

    --
    https://www.greenend.org.uk/rjk/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jim Lesurf@21:1/5 to invalid@invalid.invalid on Fri Dec 30 10:09:57 2022
    In article <wwvlempl0a9.fsf@LkoBDZeT.terraraq.uk>, Richard Kettlewell <invalid@invalid.invalid> wrote:
    Jim Lesurf <noise@audiomisc.co.uk> writes:
    Folderol <general@musically.me.uk> wrote:
    Others have pointed you at the specific package you need. Personally
    I always install build-essential. Technically that is to ensure
    Debian packages can be built but it's a quick way to get the most
    basic dependencies for any C/C++ work.

    Same here. Install once then forget about it :)

    Synaptic seemst to show two packages when I search for
    "build-essential". Both of which are marked as installed.

    You're reading it wrong somehow. There's at most one copy of
    build-essential installed.

    But I stil get

    "libxcb-shape0-dev" and no coconut! :-/

    I'm not sure what you're try to say here. If you want libxcb-shape0-dev
    then install that too.

    A part of this is, I think, that I settled on only using synaptic to
    control system-wide package installations some years ago. But this puzzle
    seems to show that either it has a problem or, more likely, I'm not using
    it correctly! But I'll expriment further.

    Jim

    --
    Please use the address on the audiomisc page if you wish to email me. Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
    biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
    Audio Misc http://www.audiomisc.co.uk/index.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)