Opened 5 years ago

Last modified 5 years ago

#58520 new defect

ucommon-7.0.0 fails to build on Mac OS X 10.5 Leopard: error: 'AI_NUMERICSERV' was not declared in this scope

Reported by: linuxjunkie999 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: leopard Cc:
Port: ucommon

Description (last modified by linuxjunkie999)

see log file for error.

Attachments (5)

main.log (86.9 KB) - added by linuxjunkie999 5 years ago.
build log for ucommon
ucommonDatetime_2019-05-31-141545_localhost.crash (3.9 KB) - added by kencu (Ken) 5 years ago.
ucommonDigest_2019-05-31-141548_localhost.crash (6.0 KB) - added by kencu (Ken) 5 years ago.
ucommonMemory_2019-05-31-141542_localhost.crash (3.6 KB) - added by kencu (Ken) 5 years ago.
ucommonStrings_2019-05-31-141532_localhost.crash (3.8 KB) - added by kencu (Ken) 5 years ago.

Download all attachments as: .zip

Change History (14)

Changed 5 years ago by linuxjunkie999

Attachment: main.log added

build log for ucommon

comment:1 Changed 5 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: leopard added; ucommon 10.5 Leopard Build_Failopen removed
Port: ucommon added; ucommon-7.0.0 removed

comment:3 Changed 5 years ago by linuxjunkie999

Description: modified (diff)

comment:4 Changed 5 years ago by kencu (Ken)

1113	:info:build libtool: compile:  ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -I/opt/local/include -pipe -Os -arch ppc -MT socket.lo -MD -MP -MF .deps/socket.Tpo -c socket.cpp  -fno-common -DPIC -o .libs/socket.o
1114	:info:build libtool: compile:  ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -I/opt/local/include -pipe -Os -arch ppc -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c memory.cpp -o memory.o >/dev/null 2>&1
1115	:info:build depbase=`echo access.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
1116	:info:build     /bin/sh ../libtool  --tag=CXX   --mode=compile ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -I/opt/local/include -pipe -Os -arch ppc -MT access.lo -MD -MP -MF $depbase.Tpo -c -o access.lo access.cpp &&\
1117	:info:build     mv -f $depbase.Tpo $depbase.Plo
1118	:info:build libtool: compile:  ccache /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I../inc -Wno-long-long -pthread -fno-check-new -finline -fvisibility=hidden -I/opt/local/include -pipe -Os -arch ppc -MT access.lo -MD -MP -MF .deps/access.Tpo -c access.cpp  -fno-common -DPIC -o .libs/access.o
1119	:info:build socket.cpp: In member function 'bool ucommon::Socket::address::insert(const sockaddr*)':
1120	:info:build socket.cpp:1272: error: 'AI_NUMERICSERV' was not declared in this scope

comment:5 Changed 5 years ago by kencu (Ken)

Summary: ucommon-7.0.0 fails to build on Mac OS X 10.5 Leoparducommon-7.0.0 fails to build on Mac OS X 10.5 Leopard: error: 'AI_NUMERICSERV' was not declared in this scope

comment:6 Changed 5 years ago by kencu (Ken)

we have these examples of fixes from other ports:

net/kerberos5/Portfile
51:# AI_NUMERICSERV not available for OS X < 10.6

net/kerberos5/files/patch-src-lib-apputils-net-server.c.diff
7:+/* AI_NUMERICSERV as a value for the `ai_flags' member
23:+#ifndef AI_NUMERICSERV
24:+#define AI_NUMERICSERV 0

www/nghttp2/files/src-shrpx_config.diff
16:+#  ifndef AI_NUMERICSERV
17:+#   define AI_NUMERICSERV 0

comment:7 Changed 5 years ago by kencu (Ken)

I have enhanced the legacysupport port to add this missing define, however, even though (with that PG added) ucommon now builds on Leopard, many tests fail.

/usr/bin/make  check-TESTS
PASS: ucommonLinked
PASS: ucommonSocket
../autoconf/test-driver: line 107: 34808 Abort trap              "$@" > $log_file 2>&1
FAIL: ucommonStrings
PASS: ucommonThreads
../autoconf/test-driver: line 107: 34847 Abort trap              "$@" > $log_file 2>&1
FAIL: ucommonMemory
PASS: ucommonKeydata
PASS: ucommonStream
PASS: ucommonUnicode
../autoconf/test-driver: line 107: 34925 Abort trap              "$@" > $log_file 2>&1
FAIL: ucommonDatetime
PASS: ucommonShell
../autoconf/test-driver: line 107: 34963 Abort trap              "$@" > $log_file 2>&1
FAIL: ucommonDigest
PASS: ucommonCipher
make[4]: Nothing to be done for `all'.
============================================================================
Testsuite summary for ucommon 7.0.0
============================================================================
# TOTAL: 12
# PASS:  8
# SKIP:  0
# XFAIL: 0
# FAIL:  4
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log

I don't know if this is a 32bit thing, or a Leopard thing, or whether there are multiple issues at play.

It's a bit hard to commit this fix but have the ucommon port so clearly broken on these older systems. Perhaps better to leave it non-building until this can be sorted out properly?

comment:8 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Can you attach a crash log?

Changed 5 years ago by kencu (Ken)

Changed 5 years ago by kencu (Ken)

Changed 5 years ago by kencu (Ken)

Changed 5 years ago by kencu (Ken)

comment:9 Changed 5 years ago by kencu (Ken)

it looks like a 32 bit thing. these errors are on 32 bit SL

Note: See TracTickets for help on using tickets.