From patchwork Fri Feb 23 03:48:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haritha D X-Patchwork-Id: 13568539 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 534DF18EB0 for ; Fri, 23 Feb 2024 03:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708660121; cv=none; b=ntXs0XBoHsZdmRzDAUvAYOs218W3nPJJ91K+nrBqutgSlkF8Oe51lkSRaMeW0qNNhEYJT+odhGiKHaluaPnZHWDcQPrWO9vWhNt+OCH6DJt31c/nj2C4U0/Y4cgkzVWXvu6N8pCJKPp/wncugjc84hLVP6ILsHVdMzOyFuRjG0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708660121; c=relaxed/simple; bh=sXCTd7atIyxuwdwc8Sf10uZXyAwTEfuUOD7SGA28MwM=; h=Message-ID:In-Reply-To:References:From:Date:Subject:Content-Type: MIME-Version:To:Cc; b=lpcD2RMt0jyfwvP4ji/zrtX8JB0F6YtdCJXD/XTCNAskdugTbg9JoRrBrkE/W2l+3htmCPn0ga0E2fFHIUPUTcGXYkj9cG8piDxeywyCISSGIxQnGA7Pz3y4qEdoO2c02eWgGWjJFYJeRsHrsqMb5C7Kp8W9+6EWw0TYG4ReII4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MoxcmxRd; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MoxcmxRd" Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d22b8c6e0dso5340081fa.2 for ; Thu, 22 Feb 2024 19:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708660116; x=1709264916; darn=vger.kernel.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:from:to:cc:subject:date :message-id:reply-to; bh=/oLUi1T7PDdyyMpMYbo9eLV0mBr3CYDn1fwxIVim5mE=; b=MoxcmxRdyk/um/HTBze+BsxXILFbp9LBwAejRMGnk+lSIeII1y/pvcl29rRaYBdI3U BLboQ7ZhJClQDab/Qkrn4ZUk+urysE2KwzIbWAc7KetlvRXrRuRvZwSEWCmdI8uya4Hc w+nd3FT1uKLudSn2uW7zNC2H/Ja2wfcc2SyLDFuWPdSIhPGY1u5NlPcqyuL1gvku2o2f YOqZPOtPGpJ3Alqo5zkgFZCSejA19HJLndQfaglfIq3op9xgjs2BgYmX5FXMCr0rtqAj ZjhKsUQ/96TVzbGtWdwiYLIW9hrIzeE8gN0lSYfWrDVwkRtMVdEx6GBL6n0YAPuSiwul qqOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708660116; x=1709264916; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/oLUi1T7PDdyyMpMYbo9eLV0mBr3CYDn1fwxIVim5mE=; b=sDGqYL9RGAJUM9zBJvYfbfZOWKHz32o8Yec1q3N3WkGMFiY9wR2dsGY5mR/N2JSBO/ lvk0x2EL0txBBaLMbCUzUWbzfTLAs4wfBTrGaRafaRnIguASGfeT08z517w+BBDeM03S HMRAQbWdHE2O9Y937zhl4JImFcM6qRp9W0dZ0cMmZJ06ALQmhoWD/wSAfWunKA74/mny GDG/dpEnoAbaYwMhWiaB0zZr9nht0bMwiIzctxq6UApg1DfXtgj4EgvEP+SRpNnNp7MK x1R5Abo1n925kit6i2bON8V2VfwyLlehhJwCTmtPnvrGWTByezk3knHkximZrVEBaBhU 2lWw== X-Gm-Message-State: AOJu0YxkTmz4/7VlaKmUL+5BnWGUQkkJUaZBXB7+/NogBL8Satqpe9q9 /xhqgfcs4plN8mzyb4GXbGPNywJG61i3yT9J4B0pYCan/3aYelu6PP35ICid X-Google-Smtp-Source: AGHT+IE+tmZpDWFVSbkaGjVR4bkqx7vlh0gJhGiNDuSBHP5ArUAJP0IxXzDB2M53xsjqbhBHZT4h8w== X-Received: by 2002:a2e:83c7:0:b0:2d2:3978:a11 with SMTP id s7-20020a2e83c7000000b002d239780a11mr475053ljh.36.1708660116229; Thu, 22 Feb 2024 19:48:36 -0800 (PST) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id x3-20020adff643000000b0033b278cf5fesm1056121wrp.102.2024.02.22.19.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 19:48:34 -0800 (PST) Message-ID: <53e211d7a6551c5d86ea6ecba0ab0e9f6592843f.1708660111.git.gitgitgadget@gmail.com> In-Reply-To: References: Date: Fri, 23 Feb 2024 03:48:30 +0000 Subject: [PATCH v2 1/2] build: support z/OS (OS/390). Fcc: Sent Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: git@vger.kernel.org Cc: Kristoffer Haugsbakk , Haritha , Haritha D From: Haritha D From: Haritha D Since the z/OS linker does not support searching dynamic libraries, and the current setting of CC_LD_DYNPATH results in a directory to be supplied to the link step with no option as the suffix, it causes a linker error because the z/OS LD linker does not accept directories as input. Therefore, -L option is added. Also introduced z/OS (OS/390) as a platform in config.mak.uname Signed-off-by: Haritha D --- config.mak.uname | 12 ++++++++++++ configure.ac | 3 +++ 2 files changed, 15 insertions(+) diff --git a/config.mak.uname b/config.mak.uname index dacc95172dc..c8006f854e5 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -638,6 +638,18 @@ ifeq ($(uname_S),NONSTOP_KERNEL) SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin SHELL_PATH = /usr/coreutils/bin/bash endif +ifeq ($(uname_S),OS/390) + NO_SYS_POLL_H = YesPlease + NO_STRCASESTR = YesPlease + NO_REGEX = YesPlease + NO_MMAP = YesPlease + NO_NSEC = YesPlease + NO_STRLCPY = YesPlease + NO_MEMMEM = YesPlease + NO_GECOS_IN_PWENT = YesPlease + HAVE_STRINGS_H = YesPlease + NEEDS_MODE_TRANSLATION = YesPlease +endif ifeq ($(uname_S),MINGW) ifeq ($(shell expr "$(uname_R)" : '1\.'),2) $(error "Building with MSys is no longer supported") diff --git a/configure.ac b/configure.ac index d1a96da14eb..64569a80d53 100644 --- a/configure.ac +++ b/configure.ac @@ -463,6 +463,9 @@ else CC_LD_DYNPATH=-Wl,+b, else CC_LD_DYNPATH= + if test "$(uname -s)" = "OS/390"; then + CC_LD_DYNPATH=-L + fi AC_MSG_WARN([linker does not support runtime path to dynamic libraries]) fi fi From patchwork Fri Feb 23 03:48:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haritha D X-Patchwork-Id: 13568540 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 249611B965 for ; Fri, 23 Feb 2024 03:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708660124; cv=none; b=ek5rpl0feYvU5DyejSlpHPf3s55QgTiwqkUPJy0DAxc2NtWHNey1M+ButXR6ul8+p32/HsYoPpHa2hSLdGIbxuSNlC1mx1hfuJIC+d6aLlgmSLzt+vN5bwWk8/Qenmqi18B1HLkaEva5uX/uglkJEtMWIIbt46HQ9NV4DrJN+Lw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708660124; c=relaxed/simple; bh=zuNSn9DhCw6Ow1Go+PRAMJr6NrLexYgr4WwI9VTb9+s=; h=Message-ID:In-Reply-To:References:From:Date:Subject:Content-Type: MIME-Version:To:Cc; b=EFyFqFSBuR+m8za52DwaZPsSMeD6mTNw3/C8Z2mxfhCjqQvjjopIFoKKvLHQ6FaVH5J9sRfRalCHzcDqqidFZ3JRLoOEQLuqpXowVQ6rKyH/O60RuC09Jq+C6tvDfyBw9grUyY0g0fQIyo7bwKC1gCl8c+Yj4JvigN1GfAKdSBI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fO6genn/; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fO6genn/" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4128e15d5e5so3036805e9.2 for ; Thu, 22 Feb 2024 19:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708660118; x=1709264918; darn=vger.kernel.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:from:to:cc:subject:date :message-id:reply-to; bh=gHVT+69kEiRUOzPdcfjDU0VbSyYGSlyjD0ZPJwzS4KQ=; b=fO6genn/k6E2xeAm3XO1y+Q3+36jWU2IAIc4329M6vnvpPC0I1CUDApHs2Gk5DVUY1 uvAWi7jfam3CAtkySSGN/6ow6PXcibUZzuJLYwsFxrfBEnXrKmyf8CGic+/NxzpD9EOg lwwknflrmSD7wEkM72J7bs6HibzhuHuFNa2lN0h/3mPTSeSP630F92jT+bC1xcXlnzIq uVIDBSjwMcBImzPrhZhAekmypHT9lBRUPTPQAvIcq9vh+BTcqOZ7Oq1l1b8trcqYhagi w1pp6r1DdiK/845CErtQSCnzsmrwIxeWuky4RU/xVusQga4F38Ryon8gbGPP8v+vNU5F 35Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708660118; x=1709264918; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date:from :references:in-reply-to:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gHVT+69kEiRUOzPdcfjDU0VbSyYGSlyjD0ZPJwzS4KQ=; b=dYg54Wcd0nLQg3GlP95laamV8wBAKmRY17OfFVGvX5s7DiPT1tNZ+Htpe5EP42ixRx XQYApJf+TfpfFydmu6wjEWzq8F+QYoYGm5XQkK08b2MzcXIE6cxupVd3TpwoQeky/z+l 5cIU7YNZcwmJvO4qMAMGS9+i3Z9QXWW+yEnReVL7bD7A1WDE7NAMjwH+/b5bNgWoBmKU 4TR8W/GNPJWkquMH+FfxKESWVVKDNCDo+QDHoS6+vD6lauT44j1HI2xTNhv3/xLPHT5v +0ErgRPT1V0AudSQcV+Oz7M18irqg0PhA6iAQ46ygzFnqjfjo5XnhNBmbd1H1F6w5LZp fakQ== X-Gm-Message-State: AOJu0YxS64jBOA+9G1phw0AwdBqeNLDrtT0oy3FODzElxu7QcHWKIoVQ 4l8tY/8ySYaG51qn/DlQacWvH1gGtRyjDefynqtlArgTwb6WVst/BBs0hSzA X-Google-Smtp-Source: AGHT+IFlIfB8qUSYmRmDc4HpP2rhqgTJ1b+22EgXwgdqGbzmpqXLBZHhlgRmXtY+Plaj2RbJCRfCvw== X-Received: by 2002:a05:600c:34c9:b0:412:8f3f:9f83 with SMTP id d9-20020a05600c34c900b004128f3f9f83mr338778wmq.1.1708660118497; Thu, 22 Feb 2024 19:48:38 -0800 (PST) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id l28-20020a05600c1d1c00b0041270c2b95esm653413wms.29.2024.02.22.19.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 19:48:36 -0800 (PST) Message-ID: <05df5d7e2d50cba77f53273c781f97d24144efc6.1708660111.git.gitgitgadget@gmail.com> In-Reply-To: References: Date: Fri, 23 Feb 2024 03:48:31 +0000 Subject: [PATCH v2 2/2] an improvement: removed configure.ac changes Fcc: Sent Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: git@vger.kernel.org Cc: Kristoffer Haugsbakk , Haritha , Haritha D From: Haritha D From: Haritha D Hello Reviewers, as an improvement, I have removed the CC_LD_DYNPATH changes because I was able to achieve the desired outcome by passing it to the make step. Signed-off-by: Haritha D --- configure.ac | 3 --- 1 file changed, 3 deletions(-) diff --git a/configure.ac b/configure.ac index 64569a80d53..d1a96da14eb 100644 --- a/configure.ac +++ b/configure.ac @@ -463,9 +463,6 @@ else CC_LD_DYNPATH=-Wl,+b, else CC_LD_DYNPATH= - if test "$(uname -s)" = "OS/390"; then - CC_LD_DYNPATH=-L - fi AC_MSG_WARN([linker does not support runtime path to dynamic libraries]) fi fi