• Jughead / Jugtail

    From Arti F. Idiot@addr@is.invalid to comp.infosystems.gopher on Wed Sep 3 12:43:56 2025
    From Newsgroup: comp.infosystems.gopher

    Anyone know of a live Jugtail (formerly Jughead) instance out in
    Gopherspace? Was curious about how it actually worked interactively
    but I've not had any luck finding it in the wild nor getting the
    current code to build.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From f6k@f6k@huld.re to comp.infosystems.gopher on Tue Sep 30 16:29:34 2025
    From Newsgroup: comp.infosystems.gopher

    Hello,

    On 2025-09-03, Arti F. Idiot <addr@is.invalid> wrote:
    Anyone know of a live Jugtail (formerly Jughead) instance out in
    Gopherspace? Was curious about how it actually worked interactively
    but I've not had any luck finding it in the wild nor getting the
    current code to build.

    For a live instance, I don't know; but for the code to build: https://savannah.nongnu.org/projects/jugtail
    --
    ~{,_,"> finger f6k@huld.re <",_,}~
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Arti F. Idiot@addr@is.invalid to comp.infosystems.gopher on Wed Oct 1 07:12:42 2025
    From Newsgroup: comp.infosystems.gopher

    On 9/30/25 8:29 AM, f6k wrote:
    For a live instance, I don't know; but for the code to build: https://savannah.nongnu.org/projects/jugtail

    Yup, that's the current code that fails to build.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nuno Silva@nunojsilva@invalid.invalid to comp.infosystems.gopher on Thu Oct 2 11:25:41 2025
    From Newsgroup: comp.infosystems.gopher

    On 2025-10-01, Arti F. Idiot wrote:

    On 9/30/25 8:29 AM, f6k wrote:
    For a live instance, I don't know; but for the code to build:
    https://savannah.nongnu.org/projects/jugtail

    Yup, that's the current code that fails to build.

    How does it fail to build?
    --
    Nuno Silva
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Arti F. Idiot@addr@is.invalid to comp.infosystems.gopher on Thu Oct 2 09:53:50 2025
    From Newsgroup: comp.infosystems.gopher

    On 10/2/25 4:25 AM, Nuno Silva wrote:
    On 2025-10-01, Arti F. Idiot wrote:

    On 9/30/25 8:29 AM, f6k wrote:
    For a live instance, I don't know; but for the code to build:
    https://savannah.nongnu.org/projects/jugtail

    Yup, that's the current code that fails to build.

    How does it fail to build?


    It fails like this:

    (debian 12.1, amd64:)

    /usr/bin/ld: jugtail-search.o:../jugtail-1.0.6/search.c:175: multiple definition of `maxprocs';
    jugtail-getargs.o:../jugtail-1.0.6/jugtail.h:109: first defined here

    collect2: error: ld returned 1 exit status
    make[2]: *** [Makefile:303: jugtail] Error 1
    make[1]: *** [Makefile:606: all-recursive] Error 1
    make: *** [Makefile:224: all] Error 2
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From sean@sean@conman.org to comp.infosystems.gopher on Fri Oct 3 06:44:56 2025
    From Newsgroup: comp.infosystems.gopher

    It was thus said that the Great Arti F. Idiot <addr@is.invalid> once stated:
    On 10/2/25 4:25 AM, Nuno Silva wrote:
    On 2025-10-01, Arti F. Idiot wrote:

    On 9/30/25 8:29 AM, f6k wrote:
    For a live instance, I don't know; but for the code to build:
    https://savannah.nongnu.org/projects/jugtail

    Yup, that's the current code that fails to build.

    How does it fail to build?


    It fails like this:

    (debian 12.1, amd64:)

    /usr/bin/ld: jugtail-search.o:../jugtail-1.0.6/search.c:175: multiple definition of `maxprocs';
    jugtail-getargs.o:../jugtail-1.0.6/jugtail.h:109: first defined here

    collect2: error: ld returned 1 exit status
    make[2]: *** [Makefile:303: jugtail] Error 1
    make[1]: *** [Makefile:606: all-recursive] Error 1
    make: *** [Makefile:224: all] Error 2

    Just change line 109 of jugtail.h to read:

    extern int port2use, maxprocs, maxitems2return;

    That should fix the error.

    -spc

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nuno Silva@nunojsilva@invalid.invalid to comp.infosystems.gopher on Fri Oct 3 10:13:56 2025
    From Newsgroup: comp.infosystems.gopher

    On 2025-10-02, Arti F. Idiot wrote:

    On 10/2/25 4:25 AM, Nuno Silva wrote:
    On 2025-10-01, Arti F. Idiot wrote:

    On 9/30/25 8:29 AM, f6k wrote:
    For a live instance, I don't know; but for the code to build:
    https://savannah.nongnu.org/projects/jugtail

    Yup, that's the current code that fails to build.

    How does it fail to build?


    It fails like this:

    (debian 12.1, amd64:)

    /usr/bin/ld: jugtail-search.o:../jugtail-1.0.6/search.c:175: multiple definition of `maxprocs';
    jugtail-getargs.o:../jugtail-1.0.6/jugtail.h:109: first defined here

    collect2: error: ld returned 1 exit status
    make[2]: *** [Makefile:303: jugtail] Error 1
    make[1]: *** [Makefile:606: all-recursive] Error 1
    make: *** [Makefile:224: all] Error 2

    The relevant bit here is probably the compiler and its version.

    For GCC, version 10 changed the default behaviour regarding multiple definitions, which seem to be the issue here.

    https://gcc.gnu.org/gcc-10/porting_to.html

    So it's possibly worth a try to compile with -fcommon:

    -2As a workaround, legacy C code where all tentative definitions
    should be placed into a common block can be compiled with -fcommon.-+
    --
    Nuno Silva
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Arti F. Idiot@addr@is.invalid to comp.infosystems.gopher on Fri Oct 3 06:14:41 2025
    From Newsgroup: comp.infosystems.gopher

    On 10/3/25 12:44 AM, sean@conman.org wrote:
    It was thus said that the Great Arti F. Idiot <addr@is.invalid> once stated:
    On 10/2/25 4:25 AM, Nuno Silva wrote:
    On 2025-10-01, Arti F. Idiot wrote:

    On 9/30/25 8:29 AM, f6k wrote:
    For a live instance, I don't know; but for the code to build:
    https://savannah.nongnu.org/projects/jugtail

    Yup, that's the current code that fails to build.

    How does it fail to build?


    It fails like this:

    (debian 12.1, amd64:)

    /usr/bin/ld: jugtail-search.o:../jugtail-1.0.6/search.c:175: multiple
    definition of `maxprocs';
    jugtail-getargs.o:../jugtail-1.0.6/jugtail.h:109: first defined here

    collect2: error: ld returned 1 exit status
    make[2]: *** [Makefile:303: jugtail] Error 1
    make[1]: *** [Makefile:606: all-recursive] Error 1
    make: *** [Makefile:224: all] Error 2

    Just change line 109 of jugtail.h to read:

    extern int port2use, maxprocs, maxitems2return;

    That should fix the error.

    -spc


    That did fix things, thanks! After trying Numo's suggestion without
    success I thought I'd re-try using pcc (portable C compiler) instead of
    gcc with the unmodified jugtail.h and that also works.

    -ai
    --- Synchronet 3.21a-Linux NewsLink 1.2