And if you do work out how to make macports apply a patch for you before it tries to build, this is the patch it should apply: -----SNIP----- diff --git a/src/interface.c b/src/interface.c index 3c3919e6..026edb2f 100644 --- a/src/interface.c +++ b/src/interface.c @@ -115,6 +115,11 @@ #define SIGRET void #endif // SIGRET +// Older versions of glibc <= 2.3.0 and <= OS X 10.5 do not have this +// constant defined +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0 +#endif //extern pid_t getpgid(pid_t pid); extern void port_write_binary(int port, unsigned char *data, int length); -----SNIP-------
Cut and paste the lines between the "SNIP" lines into a file, and see if you can make heads or tails out of this page: https://guide.macports.org/chunked/development.patches.html for how to apply it properly so that Macports uses it. I believe the section that is applicable is section 4.5.2. I'm sorry I can't help you more on this. Perhaps someone else on the list is more familiar with macports than I am and can give more explicit guidance. On Fri, May 25, 2018 at 12:33:01AM -0600, we recorded a bogon-computron collision of the <[email protected]> flavor, containing: > The use of AI_NUMERICSERV was introduced into Xastir in January of this year, > as part of adding IPv6 support. it sounds like Macports has now gotten caught > up with Xastir versions and is trying to install Xastir 2.1.0, which has this > new code. > > Apparently OS X 10.6 is the first version of OS X that has this declared, > making > Xastir 2.1.0 incompatible with OS X 10.5.x. > > That's a really old version of OS X, and there are not many Xastir users still > using it. OS X 10.6 was released in 2009. I realize that you have no option > to upgrade your OS to a more recent one on that hardware. > > See for example: > https://bugs.php.net/bug.php?id=75293&edit=2 > > If you are using Xastir from a release tarball, I think the best and fastest > path forward for you is simply to add these lines near the top of > src/interface.c: > > // Older versions of glibc <= 2.3.0 and <= OS X 10.5 do not have this > constant defined > #ifndef AI_NUMERICSERV > #define AI_NUMERICSERV 0 > #endif > > It should have no effect on systems where the constant is already defined, > and > it should get you past the compilation errors. > > If you are using a git clone, then just go ahead and do a git pull. I have > just added these lines to interface.c. > > If you are trying to install Xastir from macports then you've got a real > problem, as macports appears to have updated to Xastir 2.1.0, and then is > trying to build it from source. Xastir 2.1.0 is not compatible with OS X > prior to 10.6. Xastir 2.1.2 will be. You might have to tell Macports to > downgrade to the previous release, if that is possible, or install Xastir > directly from source without macports. Or maybe someone here more familiar > with how macports works can help you make an end run around what it's doing > and force this patch into its build. > > On Fri, May 25, 2018 at 08:00:13AM +0200, we recorded a bogon-computron > collision of the <[email protected]> flavor, containing: > > Good morning Group, > > > > Following some Macports files updates, i cannot run anymore Xastir and > > trying to rebuild-it, i am getting the following: > > > > > > "xastir will be installed in /opt/local/bin. > > Type 'make' to build Xastir (Use 'gmake' instead on some systems). > > > > make all-recursive > > Making all in src > > Making all in rtree > > make[3]: Nothing to be done for `all'. > > depbase=`echo interface.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > > gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I/sw/include > > -I/opt/local/include -I/usr/local/include -I/opt/include -I/usr/X11/include > > -I/opt/local/include/db48/ -DXASTIR_DATA_BASE=\"/opt/local/share/xastir\" > > -g -O2 -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes > > -Wno-unused-parameter -MT interface.o -MD -MP -MF $depbase.Tpo -c -o > > interface.o ../../src/interface.c &&\ > > mv -f $depbase.Tpo $depbase.Po > > ../../src/interface.c: In function ???net_init???: > > ../../src/interface.c:5030: error: ???AI_NUMERICSERV??? undeclared (first > > use in this function) > > ../../src/interface.c:5030: error: (Each undeclared identifier is reported > > only once > > ../../src/interface.c:5030: error: for each function it appears in.) > > make[3]: *** [interface.o] Error 1 > > make[2]: *** [all-recursive] Error 1 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2??? > > > > Thank-you for help > > > > > > 73 de Cyril - DF1CHB/AM - F1MHV/M > > > > > > > > _______________________________________________ > > Xastir mailing list > > [email protected] > > http://xastir.org/mailman/listinfo/xastir > > -- > Tom Russo KM5VY > Tijeras, NM > > echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m] > > _______________________________________________ > Xastir mailing list > [email protected] > http://xastir.org/mailman/listinfo/xastir -- Tom Russo KM5VY Tijeras, NM echo "prpv_a'rfg_cnf_har_cvcr" | sed -e 's/_/ /g' | tr [a-m][n-z] [n-z][a-m] _______________________________________________ Xastir mailing list [email protected] http://xastir.org/mailman/listinfo/xastir
