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