From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 948953858D20 for ; Wed, 15 Nov 2023 21:31:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 948953858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 948953858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700083883; cv=none; b=RatMsPffkOcljypucQt25OWvFBy9zM3HcZPXFCiNoX0l4eEOK5SEJu90KX788LiYKTn4rGHYsHmN1LnVSu5NEBsJ7Ztc8XWq347yECmxjj8+V1PdU3Qyw/w3nzpICb4G8cwN5PHjNPyLzb6lp+MM/AnZ6D85Se3HsBp/odveXSk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700083883; c=relaxed/simple; bh=FLnzBmxO+5mSsrjFnXE30GFQW3nqbJfHDQZgkJzaZb0=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=uShAzcgYNZ+/YT4YvQjYXRuuVeBTuWOU1P3IX+jjJdn2lcEenpovxNV0cDM/KcDWBayhVGBaCz3vB0e7Jjyga2soSnipmffC2ufSAm26ThLQuGIOd+oKa3eE77voM+pEjiYt6jTHxA3cJqYmchycTShGjp8abOatiJjrwHVdxFI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9c41e95efcbso19918866b.3 for ; Wed, 15 Nov 2023 13:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700083880; x=1700688680; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WfyZb4oi50DpjxLIcTc27eXqX/JseKa6HSgkzJogyOw=; b=UoGc6I9kV4i8pav6howIIaI/La0pWf9hTsy/MCT/oitGo2WwJJBUoeIicFKA1AVYK+ M7DAjUA7EYCS0ifr+odAW/oNagEHdg/AMqgxX2fCQh34rnQ47RFyBt6vPYkL0jg6N369 y1HAyVnRcFrch7cECE4cGfqyTkqBwSG76IiOM92z77U/tMoJlwLBcupXx8J7nvh0whmX y0OHkgWL2+qFVTCx+VkKCaSmGYefqJdh5e2OqxIj4J3xn/PXrg540SamBhXjxXB7XTIu biSVCgb3SUHoMLBbDmvXrFh8rLIn1f0582m1s6Rz/k83tgFHLen+i+SN0Ce/thecMQow n9sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700083880; x=1700688680; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WfyZb4oi50DpjxLIcTc27eXqX/JseKa6HSgkzJogyOw=; b=esSZbeg4z9UyusLgvRklfByM4GzPEd0BuO0OdgaHypKp+9n2dJSthA6M2rhh1Ns3EW BtuSCkjE2af6BhBjPGOl/GQNNJlk4w5J7EqfPvcW5SrVhzGGBcFolOV1S0ZZ2dp2PUyX E9RalMgy93T/4MTLm8YL6bgR0AZgRpuNRLEat5RTxCc7K1Jywv8zc6A6GRN1s2TDEhoP KaT7AZkmqc1h29dyvxQjmBLp+RX+S6pZJyMMWrSawLl8b/zbHwz7yhZBiY/VsDap9vp7 QXvUyHWt3hNs8yjxWb934k5WJ8ryohVQUhvRhHru1h3x5XY2GxhzPODABzNq8GWtIyR3 lO2g== X-Gm-Message-State: AOJu0YydMnyNCbCZfU/HETx9ymMLrKrd5FG9oGVrmNuLwEjsuXklS+ka Z4kOjWVrWhCChre7kMbby2PggwQeKVZXmTbi1Ww= X-Google-Smtp-Source: AGHT+IGzyA9x6N/sbQqwjOx/ryjqcyNZy2ksHI7HM64fvv8waRcODrM/42A34JNsjYdYqK1okfj/yRk4bMArQFbQ5Rg= X-Received: by 2002:a17:906:a44e:b0:9e4:6b68:fbef with SMTP id cb14-20020a170906a44e00b009e46b68fbefmr9340306ejb.60.1700083879870; Wed, 15 Nov 2023 13:31:19 -0800 (PST) MIME-Version: 1.0 References: <3872428.LUUfaPJgs6@nimes> <4277517.TpOvJl0BfU@nimes> In-Reply-To: <4277517.TpOvJl0BfU@nimes> From: David Edelsohn Date: Wed, 15 Nov 2023 16:31:08 -0500 Message-ID: Subject: Re: building GNU gettext on AIX To: Bruno Haible Cc: =?UTF-8?Q?Arsen_Arsenovi=C4=87?= , GCC Patches , bug-gettext@gnu.org Content-Type: multipart/alternative; boundary="000000000000bf8729060a379f41" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000bf8729060a379f41 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2023 at 4:22=E2=80=AFPM Bruno Haible wrot= e: > David Edelsohn wrote: > > When I try to configure gettext-0.22.3, I receive the following error: > > > > checking for socklen_t equivalent... configure: error: Cannot find a ty= pe > > to use in place of socklen_t > > > > configure: error: > > /nasfarm/edelsohn/src/gettext-0.22.3/libtextstyle/configure failed for > > libtextstyle > > > > > > configure:43943: /nasfarm/edelsohn/install/GCC12/bin/gcc -c -g -O2 > > -D_THREAD_SAFE > > conftest.c >&5 > > > > conftest.c:112:18: error: two or more data types in declaration > specifiers > > > > 112 | #define intmax_t long long > > > > | ^~~~ > > > > conftest.c:112:23: error: two or more data types in declaration > specifiers > > > > 112 | #define intmax_t long long > > > > | ^~~~ > > > > In file included from conftest.c:212: > > > > conftest.c:214:24: error: conflicting types for 'ngetpeername'; have > > 'int(int, void *, long unsigned int *)' > > > > 214 | int getpeername (int, void *, unsigned long > int > > *); > > > > | ^~~~~~~~~~~ > > > > > /nasfarm/edelsohn/install/GCC12/lib/gcc/powerpc-ibm-aix7.2.5.0/12.1.1/inc= lude-fixed/sys/socket.h:647:9: > > note: previous declaration of 'ngetpeername' with type 'int(int, struct > > sockaddr * restrict, socklen_t * restrict)' {aka 'int(int, struct > > sockaddr * restrict, long unsigned int * restrict)'} > > > > 647 | int getpeername(int, struct sockaddr *__restrict__, socklen= _t > > *__restrict__); > > > > | ^~~~~~~~~~~ > > > > > > configure and config.h seems to get itself confused about types. > > There seem to be two problems, both related to the include files of > your compiler: > > - The configure test "checking for intmax_t..." must have found the > answer "no". But on a modern system, should be defining > intmax_t already. > > - This configure test that tries to find the getpeername declaration, > but cannot find it (maybe because of the first problem?): > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > for arg2 in "struct sockaddr" void; do > for t in int size_t "unsigned int" "long int" "unsigned long > int"; do > cat confdefs.h - <<_ACEOF >conftest.$ac_ext > /* end confdefs.h. */ > #include > #include > > int getpeername (int, $arg2 *, $t *); > int > main (void) > { > $t len; > getpeername (0, 0, &len); > ; > return 0; > } > _ACEOF > if ac_fn_c_try_compile "$LINENO" > then : > gl_cv_socklen_t_equiv=3D"$t" > fi > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > I would concentrate on the first problem. If you don't get it fixed, then > I'd > suggest to try 'gcc' from the AIX Toolbox [1] or 'xlc' (as an IBM product) > instead of 'gcc' (that looks like you built it yourself). > > Bruno > > [1] > https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/gcc12-12.3.0= -1.spec Bruno, I am using my own install of GCC for a reason. The build of GCC works for everything else, including bootstrap of GCC, GDB, GMP, etc. The only problem is gettext. Thanks, David --000000000000bf8729060a379f41--