Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73221 invoked from network); 5 Oct 2016 16:59:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2016 16:59:48 -0000 Authentication-Results: pb1.pair.com header.from=bishop.bettini@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bishop.bettini@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: bishop.bettini@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-ua0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:34737] helo=mail-ua0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/06-23443-08135F75 for ; Wed, 05 Oct 2016 12:59:45 -0400 Received: by mail-ua0-f173.google.com with SMTP id p25so95314033uaa.1 for ; Wed, 05 Oct 2016 09:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Gq4PUsLH4z89bXdkKfvd9FaoQIHrufg4/nh1GCrIrq8=; b=uP2/PqTlf9lGI00v0lyLeF8q345xeMueXj/wRQf3F1bbceQmmHNsDediKgz6LCSeJa 2ve//4d/6A7mP3tjqz68Fvmy7r+4oks2AFak5ndCKI2zUKoaDM+rlpf8oIHb8CipNMYl HDsrvj53p6hf3y4GShGJgK+yGTZCMj9cPrpqXygE81iWCXnmWojI3DKKLBsn5RhDwowM /fIayzpbpbBbHDxVjw+bCSZEoxorfbe0RRP5E9OkFHsb+TJ6APIRjKEh3/NqVLPzqhww 1/0ZAZgf3R6F5r3lex++5LxnYaK9KxNqTztHERm2oLtD8RErSxiB50Q1Lu2ESTEXOdVC 5Ldw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:from:date:message-id:subject:to:cc; bh=Gq4PUsLH4z89bXdkKfvd9FaoQIHrufg4/nh1GCrIrq8=; b=KPXlpnoRoV1LePjIxKpCsGZZFbmhzhbQGhD/pjDJDA1ESBaFB+cqg32WdI+STGm41R cvSO/Lqd8RDTH+gTjfERH/lzbXb7NuS3ErI66zVdIWMIVTlV1y3KUttdEcVf1QdSotwK 90S4AEiig3dM0LzekMaz+12XmGV6gPGAiWRt5YZoHd0bFwKhiDpeuQvzwPhFC/iaRsB9 tNLSDAHSF0OuFtzR/aDQtMzbI4e7xYuo8FmQuVIkaeEmvaPStmjjOj3Ou9oizUfzSXO8 2Sg/L7eHK/1q0ICPlV02F944vR+ZHF/mPnrWj4hlP7m8JnFNGsoqto8aohbc9geO1dGw nBhA== X-Gm-Message-State: AA6/9RmW6ANHdkKce47CdiHTShd4FevFH4k1MG6iz34Zuyid1eUdRTx6Xlga0ydlvdEQPKGFBi2/3H6sYIAvfg== X-Received: by 10.176.86.23 with SMTP id y23mr7937435uaa.8.1475686781487; Wed, 05 Oct 2016 09:59:41 -0700 (PDT) MIME-Version: 1.0 Reply-To: bishop@php.net Sender: bishop.bettini@gmail.com Received: by 10.103.136.8 with HTTP; Wed, 5 Oct 2016 09:59:11 -0700 (PDT) In-Reply-To: <12ac5812-8fd8-488c-aca4-0116b590201b@blastwave.org> References: <090bbd8e-ebe9-0806-ca69-4ec28a56ce05@blastwave.org> <809f35f2-8018-5d13-377a-dd9c55e1392f@gmx.de> <12ac5812-8fd8-488c-aca4-0116b590201b@blastwave.org> Date: Wed, 5 Oct 2016 12:59:11 -0400 X-Google-Sender-Auth: YzAsG2I5tS1rOGHHIJ7uJqbeRCE Message-ID: To: Dennis Clarke Cc: PHP internals , Anatol Belski Content-Type: multipart/alternative; boundary=f403045daa66690edc053e211ad4 Subject: Re: [PHP-DEV] Re: ext/fileinfo/libmagic/apprentice.c", line 2195: error: syntax error From: bishop@php.net (Bishop Bettini) --f403045daa66690edc053e211ad4 Content-Type: text/plain; charset=UTF-8 On Wed, Oct 5, 2016 at 12:51 PM, Dennis Clarke wrote: > > Not sure where the definition of "offsetof()" is located but something >>> seems clearly not C compliant here. >>> >>> So this is using the Oracle Studio 12.5 compiler tools on a big old >>> SPARC box running Solaris 10. Any input would be appreciated. The cflags >>> were permissive and allowed for transition type elements as I note that >>> C99 with strict compliance will fail horribly. The configure stage was >>> reasonably clean also. >>> >>> In any case .. any input would be greatly appreciated. >>> >> >> offsetof() is supposed to be declared in [1]. Perhaps it >> would need a typedef for your system? >> > > hrmmm ... I don't think that is the issue here. Definately have that > header and this is a POSIX compliant system for sure. In fact, from my > $HOME/.profile : > > pretty sure I can carve that back to just items 1 to 6 above and use C99 > compiler /opt/developerstudio12.5/bin/c99 and cflags options -Xc to be > really really strict. > > I think the error message is about the use of the "struct" keyword there. > > [1] > stddef.h.html> >> > > yep .. know it well. > > I may just have to change the sources a wee bit and see what happens here. > Maybe this is a GCC GNUism that snuck in. Commit 2181ed2 introduced the change, and I note that is config guarded by ifdef HAVE_STDDEF_H. So, perhaps check your configured values to see if that header is detected properly. --f403045daa66690edc053e211ad4--