From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.23]) by sourceware.org (Postfix) with ESMTPS id E8B393858D20 for ; Wed, 15 Nov 2023 21:22:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8B393858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=clisp.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=clisp.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E8B393858D20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=85.215.255.23 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700083357; cv=pass; b=bbTYFFM+dZXi4MWANe5+x3XkesAwLa4/3Ut8x/JXV6kip6WWldpvJFUxzCe5cf7IYGopqPHEjPCGNkEu0+IEcvdHvphsDBYcKAnHarmv7pxW1Go4vzTQSMYf0aLqQVxthPd26UVL5/BEdwyZJdPr8dPJI2rwx17mOBvq40Flti4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700083357; c=relaxed/simple; bh=jSJ9ahxfrQkgCxymOHzkcAXfb+BEZyd1dlzvd5qNl+U=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=sMz4nQVGEBZu6WV9skjZIVbPOJLfbvrl29TY2kOcwrZzq/UVTVStTW7Xx1f7p7tVxjqPYROT9Kx7AzSRdX+WlnP4blis7MPNbINLmz87ucHacNJDpQXYfjxqUX2uxnvMggKV+TgGqddmQ+XuBpW5kjKm9gEbCyX7l8GV2Srwflc= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1700083348; cv=none; d=strato.com; s=strato-dkim-0002; b=QsadB4A5oD14aWwFJueCSYA7xOF4h+o1tM/qq3QnJOhePRGVs5Ao94IKQDqJRLost7 MSSITvTkJ5UBMCH1sPco9vxQbc7UwpGzeKf4QwqwL83oIy0T/ilhymn2UlvsP5U705nh 0xpnFdXlqPTvkcb3ZTifB8FXpxYvzxKkESxijmzHw7XxuOCdGKK1RbrZ+Z2tz5PdS/CK kcMyvL5JH8pLiYsd3Qlb5TA5hydW34LSxqXeWgZuitMPMxCNMFRBYaXYklDB9XPWdV9C Py/RE9ZJwO/l86GdechzwtMOwNxDagYXOtt+4y17tVuTa3CjHlI4cFtE8mTwtlRVDJMN fIzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1700083348; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=dL216CPv0186O9S+5jW64CKQrqCi1yB0QtbXH60XXSE=; b=mBYYyMQGdT3WlRYJezLhx6hWPnf9/0AGs5sHWHb4EWBJyy/wKtrDKJln/FUzFuLGHv 4vR5E6pYoOdRRND6sdwTHsAjOk8TAZT3hstNXSZnwziLgIFd3if/yaWwgSHu0SDHyy/d kchc+UxEzVXlSLeqr+dLevPcRWCT9mTH3Cs3hgJjqAnnkae/WSaIAGmbliMRWlJ8KcXT P/3/BfKAqaRagpMDWc+1hrL4tJ/kSF5O9FAmjtB5YOivnf1iUX61J7DXo/BnP/FksETc JNt5/sWof+3Dtd3H2vaQji3IqZhKBW/WQBeBNCaqeStbEyIouGqVtMHOK81HqkgCwfq/ XPVw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1700083348; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=dL216CPv0186O9S+5jW64CKQrqCi1yB0QtbXH60XXSE=; b=dXM7csBEU1HDmeHdelZUL4oqfsB4IDK5NXa0msKTb0mpKitA9FY8yLJXPgPaq9Khpx 4KIQmgLd5mxWOT9KDkj4h0W7UqJTyrC4Oruo695E7n5jCngI4ObBy0pWR5Rn2nBBJIpp SItFNycOzXhwiuAxmpMN+lXYxHosp3hzrSWdrcpJdqw9mCvj3H/pGcVwyIJapK/Daz94 j3sI+STE7+O7wxOq6efe+jorMTs9y2pqozISIUhYBvyFiA6QR6hU5Y++dciaPGpatdVj HfcJpEAxRIukezzdJyNj9dN3laMGb9c4tMDyDmuhoLl0daEHHhBzlF8vW8tYFdKF/NwZ 4cew== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1700083348; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=dL216CPv0186O9S+5jW64CKQrqCi1yB0QtbXH60XXSE=; b=rODGYEh1OFLRlvO4yUPi0uUqdzXU8ASTMsdWayjvZMgt+Kx8zSv9fMG/DJ8XZW30Ma zQPlJydsMLpxfgn+fCAw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOS1Pdhpy3f268DFPX0NhSjcrZT" Received: from nimes.localnet by smtp.strato.de (RZmta 49.9.1 AUTH) with ESMTPSA id D75765zAFLMSFyQ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 15 Nov 2023 22:22:28 +0100 (CET) From: Bruno Haible To: David Edelsohn Cc: Arsen =?utf-8?B?QXJzZW5vdmnEhw==?= , GCC Patches , bug-gettext@gnu.org Subject: Re: building GNU gettext on AIX Date: Wed, 15 Nov 2023 22:22:27 +0100 Message-ID: <4277517.TpOvJl0BfU@nimes> In-Reply-To: References: <3872428.LUUfaPJgs6@nimes> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 type > 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/include-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?): ================================================================================ 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="$t" fi ================================================================================ 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