Skip to content

Commit 5b0cd14

Browse files
committed
Merge branch 'V5-7-patches'
* V5-7-patches: c tests: Ensure that linking succeeds if the openssl path has been specified explicitly testing/fulltests/default/T023snmpv3getMD5AES_simple: Skip if the openssl aes.h header file is not available testing/fulltests/transports/T361tlstcp_simple: Skip if TLS-TCP is disabled python: Ensure that linking succeeds if the openssl path has been specified explicitly Darwin >= 15: Avoid ___CFConstantStringClassReference symbol not found failures win32/Configure: Improve robustness
2 parents 50ba40f + b2ff05c commit 5b0cd14

File tree

7 files changed

+35
-12
lines changed

7 files changed

+35
-12
lines changed

configure

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15832,15 +15832,34 @@ $as_echo "none" >&6; }
1583215832
fi
1583315833
;;
1583415834

15835-
darwin8*|darwin9*|darwin1[0-4]*)
15835+
darwin*)
1583615836
# Flat Namespace linking (Mac OS/X)
1583715837
#
1583815838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether darwin ld might need -flat_namespace" >&5
1583915839
$as_echo_n "checking whether darwin ld might need -flat_namespace... " >&6; }
1584015840
if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
15841-
LDFLAGS="-flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit $LDFLAGS"
15842-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15841+
saved_LDFLAGS="$LDFLAGS"
15842+
LDFLAGS="-flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit $LDFLAGS"
15843+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844+
/* end confdefs.h. */
15845+
15846+
int
15847+
main ()
15848+
{
15849+
15850+
;
15851+
return 0;
15852+
}
15853+
_ACEOF
15854+
if ac_fn_c_try_link "$LINENO"; then :
15855+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1584315856
$as_echo "yes" >&6; }
15857+
else
15858+
LDFLAGS="$saved_LDFLAGS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859+
$as_echo "no" >&6; }
15860+
fi
15861+
rm -f core conftest.err conftest.$ac_objext \
15862+
conftest$ac_exeext conftest.$ac_ext
1584415863
else
1584515864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1584615865
$as_echo "no" >&6; }

configure.d/config_os_progs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,16 @@ case $target_os in
414414
fi
415415
;;
416416

417-
darwin8*|darwin9*|darwin1[[0-4]]*)
417+
darwin*)
418418
# Flat Namespace linking (Mac OS/X)
419419
#
420420
AC_MSG_CHECKING([whether darwin ld might need -flat_namespace])
421421
if test -z "$MACOSX_DEPLOYMENT_TARGET"; then
422-
LDFLAGS="-flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit $LDFLAGS"
423-
AC_MSG_RESULT([yes])
422+
saved_LDFLAGS="$LDFLAGS"
423+
LDFLAGS="-flat_namespace -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework IOKit $LDFLAGS"
424+
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
425+
[AC_MSG_RESULT([yes])],
426+
[LDFLAGS="$saved_LDFLAGS"; AC_MSG_RESULT([no])])
424427
else
425428
AC_MSG_RESULT([no])
426429
fi

net-snmp-config.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ else
185185
echo $result
186186
;;
187187
--build-command)
188-
echo "@CC@ @CFLAGS@ @DEVFLAGS@"
188+
echo "@CC@ @CFLAGS@ @DEVFLAGS@ @CPPFLAGS@"
189189
;;
190190
#################################################### client lib
191191
--libs)

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
if intree:
1818
netsnmp_libs = os.popen(basedir+'/net-snmp-config --libs').read()
1919
libdir = os.popen(basedir+'/net-snmp-config --build-lib-dirs '+basedir).read()
20-
incdir = os.popen(basedir+'/net-snmp-config --build-includes '+basedir).read()
20+
incdir = os.popen(basedir+'/net-snmp-config --build-includes '+basedir).read() + " " + os.popen(basedir+'/net-snmp-config --base-cflags '+basedir).read()
2121
libs = re.findall(r"-l(\S+)", netsnmp_libs)
2222
libdirs = re.findall(r"-L(\S+)", libdir)
2323
incdirs = re.findall(r"-I(\S+)", incdir)

testing/fulltests/default/T023snmpv3getMD5AES_simple

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ HEADER SNMPv3 get using MD5/AES of .1.3.6.1.2.1.1.3.0
66

77
SKIPIFNOT NETSNMP_CAN_DO_CRYPTO
88
SKIPIFNOT NETSNMP_ENABLE_SCAPI_AUTHPRIV
9+
SKIPIFNOT HAVE_OPENSSL_AES_H
910
SKIPIFNOT HAVE_AES_CFB128_ENCRYPT
1011
SKIPIF NETSNMP_DISABLE_MD5
1112

testing/fulltests/transports/T361tlstcp_simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
HEADER TLS-TCP Transport
66

7-
SKIPIFNOT NETSNMP_TRANSPORT_DTLSUDP_DOMAIN
7+
SKIPIFNOT NETSNMP_TRANSPORT_TLSTCP_DOMAIN
88

99
#
1010
# Begin test

win32/Configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ GetOptions ('config=s' => \$config,
3333
'with-winextdll' => \$b_winextdll,
3434
'help' => \$help);
3535

36-
if ($help == 1)
37-
{
36+
if ($help == 1 || !defined($config) || !defined($linktype) ||
37+
!defined($b_ipv6) || !defined($b_winextdll)) {
3838
my $USAGE = qq/
3939
Usage:
4040
perl Configure [<options>]
@@ -70,7 +70,7 @@ if (($linktype ne "static") && ($linktype ne "dynamic")) {
7070
$linktype = "static";
7171
}
7272

73-
if ($prefix eq "") {
73+
if (!$prefix) {
7474
$prefix = "c:/usr";
7575
}
7676

0 commit comments

Comments
 (0)