Skip to content

Remove stale solaris configure references #13206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions autogen.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
# All Rights reserved.
#
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand Down Expand Up @@ -81,12 +82,6 @@

# Patch program
my $patch_prog = "patch";
# Solaris "patch" doesn't understand unified diffs, and will cause
# autogen.pl to hang with a "File to patch:" prompt. Default to Linux
# "patch", but use "gpatch" on Solaris.
if ($^O eq "solaris") {
$patch_prog = "gpatch";
}

$username = $ENV{USER} || getpwuid($>);
$full_hostname = $ENV{HOSTNAME} || `hostname`;
Expand Down
17 changes: 1 addition & 16 deletions config/ompi_setup_java.m4
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dnl Copyright (c) 2013 Intel, Inc. All rights reserved.
dnl Copyright (c) 2015-2018 Research Organization for Information Science
dnl and Technology (RIST). All rights reserved.
dnl Copyright (c) 2017 FUJITSU LIMITED. All rights reserved.
dnl Copyright (c) 2025 Nanook Consulting All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
Expand Down Expand Up @@ -128,17 +129,6 @@ AC_DEFUN([_OMPI_SETUP_JAVA],[
[AC_MSG_RESULT([not found])])])
fi

if test "$ompi_java_found" = "0"; then
# Solaris
ompi_java_dir=/usr/java
AC_MSG_CHECKING([for Java in Solaris locations])
AS_IF([test -d $ompi_java_dir && test -r "$ompi_java_dir/include/jni.h"],
[AC_MSG_RESULT([found ($ompi_java_dir)])
with_jdk_headers=$ompi_java_dir/include
with_jdk_bindir=$ompi_java_dir/bin
ompi_java_found=1],
[AC_MSG_RESULT([not found])])
fi
],
[ompi_java_found=1])

Expand Down Expand Up @@ -188,11 +178,6 @@ EOF
# too. Ugh.
AS_IF([test -d "$with_jdk_headers/linux"],
[OMPI_JDK_CPPFLAGS="$OMPI_JDK_CPPFLAGS -I$with_jdk_headers/linux"])
# Solaris JDK also require -I<blah>/solaris.
# See if that's there, and if so, add a -I for that,
# too. Ugh.
AS_IF([test -d "$with_jdk_headers/solaris"],
[OMPI_JDK_CPPFLAGS="$OMPI_JDK_CPPFLAGS -I$with_jdk_headers/solaris"])
# Darwin JDK also require -I<blah>/darwin.
# See if that's there, and if so, add a -I for that,
# too. Ugh.
Expand Down
69 changes: 0 additions & 69 deletions config/opal_check_os_flavors.m4

This file was deleted.

3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
# Copyright (c) 2019 Triad National Security, LLC. All rights
# reserved.
# Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand Down Expand Up @@ -995,7 +996,7 @@ AC_CACHE_SAVE
opal_show_title "System-specific tests"

##################################
OPAL_CHECK_OS_FLAVORS
OAC_CHECK_OS_FLAVORS



Expand Down
3 changes: 2 additions & 1 deletion opal/mca/if/bsdx_ipv4/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand All @@ -22,7 +23,7 @@ AC_DEFUN([MCA_opal_if_bsdx_ipv4_COMPILE_MODE], [
AC_DEFUN([MCA_opal_if_bsdx_ipv4_CONFIG], [
AC_CONFIG_FILES([opal/mca/if/bsdx_ipv4/Makefile])

AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
AC_REQUIRE([OAC_CHECK_OS_FLAVORS])

# If we found struct sockaddr and we're on any of the BSDs, we're
# happy. I.e., this:
Expand Down
3 changes: 2 additions & 1 deletion opal/mca/if/bsdx_ipv6/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand All @@ -22,7 +23,7 @@ AC_DEFUN([MCA_opal_if_bsdx_ipv6_COMPILE_MODE], [
AC_DEFUN([MCA_opal_if_bsdx_ipv6_CONFIG], [
AC_CONFIG_FILES([opal/mca/if/bsdx_ipv6/Makefile])

AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
AC_REQUIRE([OAC_CHECK_OS_FLAVORS])

# If we found struct sockaddr and we're on any of the BSDs, we're
# happy. I.e., this:
Expand Down
3 changes: 2 additions & 1 deletion opal/mca/if/linux_ipv6/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand All @@ -22,7 +23,7 @@ AC_DEFUN([MCA_opal_if_linux_ipv6_COMPILE_MODE], [
AC_DEFUN([MCA_opal_if_linux_ipv6_CONFIG], [
AC_CONFIG_FILES([opal/mca/if/linux_ipv6/Makefile])

AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
AC_REQUIRE([OAC_CHECK_OS_FLAVORS])

AC_MSG_CHECKING([if we are on Linux with TCP])
# If we have struct sockaddr and we're on Linux, then we're
Expand Down
3 changes: 2 additions & 1 deletion opal/mca/if/posix_ipv4/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand All @@ -25,7 +26,7 @@ AC_DEFUN([MCA_opal_if_posix_ipv4_CONFIG], [
OPAL_VAR_SCOPE_PUSH([opal_if_posix_ipv4_happy])
opal_if_posix_ipv4_happy=no

AC_REQUIRE([OPAL_CHECK_OS_FLAVORS])
AC_REQUIRE([OAC_CHECK_OS_FLAVORS])

# If we found struct sockaddr and we're NOT on most of the BSDs,
# we're happy. I.e., if posix but not:
Expand Down
11 changes: 3 additions & 8 deletions opal/mca/shmem/posix/shmem_posix_common_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* reserved.
* Copyright (c) 2022 IBM Corporation. All rights reserved
*
* Copyright (c) 2025 Nanook Consulting All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand All @@ -33,15 +34,9 @@
# include <fcntl.h>
#endif /* HAVE_FCNTL_H */
#include <string.h>
#if OPAL_HAVE_SOLARIS && !defined(_POSIX_C_SOURCE)
# define _POSIX_C_SOURCE 200112L /* Required for shm_{open,unlink} decls */
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
# undef _POSIX_C_SOURCE
#else
# ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
# endif /* HAVE_SYS_MMAN_H */
#endif
#endif /* HAVE_SYS_MMAN_H */
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
Expand Down
11 changes: 3 additions & 8 deletions opal/mca/shmem/posix/shmem_posix_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Copyright (c) 2019 Triad National Security, LLC. All rights
* reserved.
* Copyright (c) 2022 IBM Corporation. All rights reserved
* Copyright (c) 2025 Nanook Consulting All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand All @@ -30,15 +31,9 @@
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif /* HAVE_FCNTL_H */
#if OPAL_HAVE_SOLARIS && !defined(_POSIX_C_SOURCE)
# define _POSIX_C_SOURCE 200112L /* Required for shm_{open,unlink} decls */
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
# undef _POSIX_C_SOURCE
#else
# ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
# endif /* HAVE_SYS_MMAN_H */
#endif
#endif /* HAVE_SYS_MMAN_H */
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
Expand Down
17 changes: 5 additions & 12 deletions opal/mca/threads/pthreads/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Copyright (c) 2019 Sandia National Laboratories. All rights reserved.
# Copyright (c) 2019 Triad National Security, LLC. All rights
# reserved.
# Copyright (c) 2025 Nanook Consulting All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand Down Expand Up @@ -363,23 +364,15 @@ AC_DEFUN([OPAL_INTL_POSIX_THREADS_SPECIAL_FLAGS],[
# -Kthread:
# -kthread: FreeBSD kernel threads
# -pthread: Modern GCC (most all platforms)
# -pthreads: GCC on solaris
# -mthreads:
# -mt: Solaris native compilers / HP-UX aCC
# -mt: HP-UX aCC
#
# Put -mt before -mthreads because HP-UX aCC will properly compile
# with -mthreads (reading as -mt), but emit a warning about unknown
# flags hreads. Stupid compilers.
# flags threads. Stupid compilers.
OPAL_VAR_SCOPE_PUSH([pflags])

case "${host_cpu}-${host_os}" in
*solaris*)
pflags="-pthread -pthreads -mt"
;;
*)
pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads"
;;
esac
pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads"

# Only run C++ and Fortran if those compilers were found

Expand Down Expand Up @@ -705,7 +698,7 @@ AC_DEFUN([MCA_opal_threads_pthreads_COMPILE_MODE], [

# If component was selected, $1 will be 1 and we should set the base header
AC_DEFUN([MCA_opal_threads_pthreads_POST_CONFIG],[
AS_IF([test "$1" = "1"],
AS_IF([test "$1" = "1"],
[opal_thread_type_found="pthreads"
AC_DEFINE_UNQUOTED([MCA_threads_base_include_HEADER],
["opal/mca/threads/pthreads/threads_pthreads_threads.h"],
Expand Down
11 changes: 4 additions & 7 deletions opal/util/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Copyright (c) 2016 University of Houston. All rights reserved.
* Copyright (c) 2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2025 Nanook Consulting All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -86,7 +87,7 @@
#endif

/*
* Note that some OS's (e.g., NetBSD and Solaris) have statfs(), but
* Note that some OS's (e.g., NetBSD has statfs(), but
* no struct statfs (!). So check to make sure we have struct statfs
* before allowing the use of statfs().
*/
Expand Down Expand Up @@ -409,8 +410,8 @@ char *opal_find_absolute_path(char *app_name)

/**
* Read real FS type from /etc/mtab, needed to translate autofs fs type into real fs type
* TODO: solaris? OSX?
* Limitations: autofs on solaris/osx will be assumed as "nfs" type
* TODO: OSX?
* Limitations: autofs on osx will be assumed as "nfs" type
*/

static char *opal_check_mtab(char *dev_path)
Expand Down Expand Up @@ -457,10 +458,6 @@ static char *opal_check_mtab(char *dev_path)
* statvfs (const char *path, struct statvfs *buf);
* with unsigned long f_fsid; -- returns wrong info
* return 0 success, -1 on failure with errno set.
* Solaris:
* statvfs (const char *path, struct statvfs *buf);
* with f_basetype, contains a string of length FSTYPSZ
* return 0 success, -1 on failure with errno set.
* FreeBSD:
* statfs(const char *path, struct statfs *buf);
* with f_fstypename, contains a string of length MFSNAMELEN
Expand Down
7 changes: 0 additions & 7 deletions oshmem/mca/memheap/ptmalloc/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1263,9 +1263,6 @@ extern void* sbrk(ptrdiff_t);
#if USE_LOCKS
#ifndef WIN32
#include <pthread.h>
#if defined (__SVR4) && defined (__sun) /* solaris */
#include <thread.h>
#endif /* solaris */
#else
#ifndef _M_AMD64
/* These are already defined on AMD64 builds */
Expand Down Expand Up @@ -1544,15 +1541,11 @@ static FORCEINLINE int pthread_acquire_lock (MLOCK_T *sl) {
break;
}
if ((++spins & SPINS_PER_YIELD) == 0) {
#if defined (__SVR4) && defined (__sun) /* solaris */
thr_yield();
#else
#ifdef linux
sched_yield();
#else /* no-op yield on unknown systems */
;
#endif /* linux */
#endif /* solaris */
}
}
}
Expand Down
Loading