From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5F4841F5AE for ; Sat, 22 May 2021 17:57:58 +0000 (UTC) Received: from localhost ([::1]:39502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkVsr-0000WZ-9v for normalperson@yhbt.net; Sat, 22 May 2021 13:57:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkVso-0000WR-IK for bug-gnulib@gnu.org; Sat, 22 May 2021 13:57:54 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkVsi-0000jm-Cy for bug-gnulib@gnu.org; Sat, 22 May 2021 13:57:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2755D2400FD for ; Sat, 22 May 2021 19:57:45 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FnWQx2b5Jz9rxR; Sat, 22 May 2021 19:57:45 +0200 (CEST) Date: Sat, 22 May 2021 17:57:40 +0000 (UTC) Message-Id: <20210522.195740.675831717576746236.wl@gnu.org> To: bruno@clisp.org Subject: Re: can't compile `stdlib.h` on mxe From: Werner LEMBERG In-Reply-To: <13187658.4rgUex5avo@omega> References: <2661657.bLj8NbuU8O@omega> <20210522.144551.551889804977514006.wl@gnu.org> <13187658.4rgUex5avo@omega> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=werner.lemberg@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" >> Note that this is a new error; it didn't happen in July 2019 (the >> last time I've tried to build ttfautohint with mxe and Qt5). > > Yes. We have added 'restrict' in many places, to match the function > declarations in POSIX. OK. > That's not enough. needs to be included before . > > The Qt documentation [1] recommends a Makefile rule such as > > moc $(DEFINES) $(INCPATH) -i $< -o $@ > > Try to change this to > > moc -fconfig.h $(DEFINES) $(INCPATH) -i $< -o $@ [The proper command line option for moc would be `-b config.h`, AFAICS.] This doesn't work; regardless of the used option, is always inserted first. > or > > { echo '#include '; moc $(DEFINES) $(INCPATH) -i $< ; } > $@.tmp > mv $@.tmp $@ This worked, thanks a lot! Werner