{"thread":{"id":"62380","subject":"Git build failure: v2.47.0 on Solaris 10 SPARC64","startedAt":"2024-10-21T05:56:19Z","lastAt":"2024-10-21T21:11:08Z","messageCount":4,"participants":["Freya Starshade","Patrick Steinhardt","Taylor Blau"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"505585","messageId":"db95aa3f-f270-4939-ba3f-a964d46e2325@axiom-networks.org","threadId":"62380","inReplyTo":null,"subject":"Git build failure: v2.47.0 on Solaris 10 SPARC64","fromName":"Freya Starshade","fromEmail":"saoirse@axiom-networks.org","sentAt":"2024-10-21T05:56:11Z","receivedAt":"2024-10-21T05:56:19Z","isPatch":false,"sender":{"key":"saoirse@axiom-networks.org","avatar":null},"body":"Hi,\n\n\nReporting a build failure on version 2.47.0 of git, grabbed from the \nofficial sources. Our environment is:\n\n\nCompiler: gcc (GCC) 9.5.0\n\nLinker: GNU ld (GNU Binutils) 2.43\n\nTarget machine triplet: SPARC64-SUN-SOLARIS2.10\n\nTarget machine hardware: Sun Blade 150 UltraSPARC IIe workstation\n\nTarget OS: SunOS 5.10 Generic_150400-59 sparc SUNW,Sun-Blade-100 Solaris \nSun Microsystems SunOS 5.10 Generic_150400-59 PATCH January 2018\n\nAfter running ./configure, which succeeds, running `make all` gives:\n\n\nroot@iris:/usr/src/depot/progress/git-2.47.0# make all\n     CC daemon.o\nIn file included from daemon.c:3:\ngit-compat-util.h:1012:13: error: conflicting types for 'inet_ntop'\n  1012 | const char *inet_ntop(int af, const void *src, char *dst, \nsize_t size);\n       |             ^~~~~~~~~\nIn file included from git-compat-util.h:314,\n                  from daemon.c:3:\n/usr/include/arpa/inet.h:68:20: note: previous declaration of \n'inet_ntop' was here\n    68 | extern const char *inet_ntop(int, const void *_RESTRICT_KYWD,\n       |                    ^~~~~~~~~\nmake: *** [Makefile:2795: daemon.o] Error 1\nroot@iris:/usr/src/depot/progress/git-2.47.0#\n\n\nAnyone know what's going on here?\n\n"},{"id":"505597","messageId":"ZxYXNTjRYkVaQaOl@pks.im","threadId":"62380","inReplyTo":"db95aa3f-f270-4939-ba3f-a964d46e2325@axiom-networks.org","subject":"Re: Git build failure: v2.47.0 on Solaris 10 SPARC64","fromName":"Patrick Steinhardt","fromEmail":"ps@pks.im","sentAt":"2024-10-21T08:56:36Z","receivedAt":"2024-10-21T08:56:42Z","isPatch":false,"sender":{"key":"ps@pks.im","avatar":"https://avatars.githubusercontent.com/u/4056630?v=4"},"body":"On Sun, Oct 20, 2024 at 10:56:11PM -0700, Freya Starshade wrote:\n> Hi,\n> \n> \n> Reporting a build failure on version 2.47.0 of git, grabbed from the\n> official sources. Our environment is:\n> \n> \n> Compiler: gcc (GCC) 9.5.0\n> \n> Linker: GNU ld (GNU Binutils) 2.43\n> \n> Target machine triplet: SPARC64-SUN-SOLARIS2.10\n> \n> Target machine hardware: Sun Blade 150 UltraSPARC IIe workstation\n> \n> Target OS: SunOS 5.10 Generic_150400-59 sparc SUNW,Sun-Blade-100 Solaris Sun\n> Microsystems SunOS 5.10 Generic_150400-59 PATCH January 2018\n> \n> After running ./configure, which succeeds, running `make all` gives:\n> \n> \n> root@iris:/usr/src/depot/progress/git-2.47.0# make all\n>     CC daemon.o\n> In file included from daemon.c:3:\n> git-compat-util.h:1012:13: error: conflicting types for 'inet_ntop'\n>  1012 | const char *inet_ntop(int af, const void *src, char *dst, size_t\n> size);\n>       |             ^~~~~~~~~\n> In file included from git-compat-util.h:314,\n>                  from daemon.c:3:\n> /usr/include/arpa/inet.h:68:20: note: previous declaration of 'inet_ntop'\n> was here\n>    68 | extern const char *inet_ntop(int, const void *_RESTRICT_KYWD,\n>       |                    ^~~~~~~~~\n> make: *** [Makefile:2795: daemon.o] Error 1\n> root@iris:/usr/src/depot/progress/git-2.47.0#\n> \n> \n> Anyone know what's going on here?\n\nCould you maybe also send the output of `./configure`? We do have a\ncheck in \"configure.ac\" that tries to find out whether your system has\n`inet_ntop()` or not. Maybe it is misdetecting the availability of that\nfunction on your platform and thus declares the `NO_INET_NTOP` variable,\nwhich causes us to pull in compat code.\n\nOut of curiosity, did you try running `make` without first running\n`./configure`? Many platforms should work alright without having to run\nautoconf first, but given that your platform is a more on the esoteric\nside I wouldn't be surprised if things didn't work there.\n\nPatrick\n"},{"id":"505621","messageId":"ZxYgDu2vt-qDqmqr@pks.im","threadId":"62380","inReplyTo":"966457d3-c6f6-4028-bd28-da73a0296679@axiom-networks.org","subject":"[Resend] Re: Git build failure: v2.47.0 on Solaris 10 SPARC64","fromName":"Patrick Steinhardt","fromEmail":"ps@pks.im","sentAt":"2024-10-21T09:34:06Z","receivedAt":"2024-10-21T09:34:14Z","isPatch":false,"sender":{"key":"ps@pks.im","avatar":"https://avatars.githubusercontent.com/u/4056630?v=4"},"body":"[Re-sending as I've noticed that the mailing list was dropped.]\n\nOn Mon, Oct 21, 2024 at 02:08:50AM -0700, Freya Starshade wrote:\n\nPlease note that we tend to not top-post on this mailing list :)\n\n> On 10/21/2024 01:56, Patrick Steinhardt wrote:\n> > On Sun, Oct 20, 2024 at 10:56:11PM -0700, Freya Starshade wrote:\n> > > Hi,\n> > > \n> > > \n> > > Reporting a build failure on version 2.47.0 of git, grabbed from the\n> > > official sources. Our environment is:\n> > > \n> > > \n> > > Compiler: gcc (GCC) 9.5.0\n> > > \n> > > Linker: GNU ld (GNU Binutils) 2.43\n> > > \n> > > Target machine triplet: SPARC64-SUN-SOLARIS2.10\n> > > \n> > > Target machine hardware: Sun Blade 150 UltraSPARC IIe workstation\n> > > \n> > > Target OS: SunOS 5.10 Generic_150400-59 sparc SUNW,Sun-Blade-100 Solaris Sun\n> > > Microsystems SunOS 5.10 Generic_150400-59 PATCH January 2018\n> > > \n> > > After running ./configure, which succeeds, running `make all` gives:\n> > > \n> > > \n> > > root@iris:/usr/src/depot/progress/git-2.47.0# make all\n> > >      CC daemon.o\n> > > In file included from daemon.c:3:\n> > > git-compat-util.h:1012:13: error: conflicting types for 'inet_ntop'\n> > >   1012 | const char *inet_ntop(int af, const void *src, char *dst, size_t\n> > > size);\n> > >        |             ^~~~~~~~~\n> > > In file included from git-compat-util.h:314,\n> > >                   from daemon.c:3:\n> > > /usr/include/arpa/inet.h:68:20: note: previous declaration of 'inet_ntop'\n> > > was here\n> > >     68 | extern const char *inet_ntop(int, const void *_RESTRICT_KYWD,\n> > >        |                    ^~~~~~~~~\n> > > make: *** [Makefile:2795: daemon.o] Error 1\n> > > root@iris:/usr/src/depot/progress/git-2.47.0#\n> > > \n> > > \n> > > Anyone know what's going on here?\n> > Could you maybe also send the output of `./configure`? We do have a\n> > check in \"configure.ac\" that tries to find out whether your system has\n> > `inet_ntop()` or not. Maybe it is misdetecting the availability of that\n> > function on your platform and thus declares the `NO_INET_NTOP` variable,\n> > which causes us to pull in compat code.\n> > \n> > Out of curiosity, did you try running `make` without first running\n> > `./configure`? Many platforms should work alright without having to run\n> > autoconf first, but given that your platform is a more on the esoteric\n> > side I wouldn't be surprised if things didn't work there.\n\n[snip]\n> checking for inet_ntop... no\n> checking for inet_ntop in -lresolv... no\n> checking for inet_pton... no\n> checking for inet_pton in -lresolv... no\n\nSo yes, indeed, your `inet_ntop()` isn't detected. Does that function\nrequire any additional libraries on your platform? Searching for this on\nthe internet quickly brings me to... a [thread] from our own mailing\nlist. Looks like that patch never landed.\n\n[thread]: https://lore.kernel.org/git/CAH8yC8kaWXbN+RYMJnM9em7KKW54+N07JtyS1MZk0qppD=m2BA@mail.gmail.com/\n\nPatrick\n"},{"id":"505768","messageId":"ZxbDaiaSUgRa3WYd@nand.local","threadId":"62380","inReplyTo":"ZxYgDu2vt-qDqmqr@pks.im","subject":"Re: [Resend] Re: Git build failure: v2.47.0 on Solaris 10 SPARC64","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2024-10-21T21:11:06Z","receivedAt":"2024-10-21T21:11:08Z","isPatch":false,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"On Mon, Oct 21, 2024 at 11:34:06AM +0200, Patrick Steinhardt wrote:\n> > > Could you maybe also send the output of `./configure`? We do have a\n> > > check in \"configure.ac\" that tries to find out whether your system has\n> > > `inet_ntop()` or not. Maybe it is misdetecting the availability of that\n> > > function on your platform and thus declares the `NO_INET_NTOP` variable,\n> > > which causes us to pull in compat code.\n> > >\n> > > Out of curiosity, did you try running `make` without first running\n> > > `./configure`? Many platforms should work alright without having to run\n> > > autoconf first, but given that your platform is a more on the esoteric\n> > > side I wouldn't be surprised if things didn't work there.\n>\n> [snip]\n> > checking for inet_ntop... no\n> > checking for inet_ntop in -lresolv... no\n> > checking for inet_pton... no\n> > checking for inet_pton in -lresolv... no\n>\n> So yes, indeed, your `inet_ntop()` isn't detected. Does that function\n> require any additional libraries on your platform? Searching for this on\n> the internet quickly brings me to... a [thread] from our own mailing\n> list. Looks like that patch never landed.\n\nThanks for digging.\n\nThanks,\nTaylor\n"}]}