From mboxrd@z Thu Jan 1 00:00:00 1970 User-Agent: K-9 Mail for Android In-Reply-To: References: <877fl6ronj.fsf@rudra.copyninja.info> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: Ryan Gonzalez Date: Thu, 26 Nov 2015 12:15:42 -0600 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>, Charles Forsyth Message-ID: Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Compiling ken-cc on Linux Topicbox-Message-UUID: 77ea6ede-ead9-11e9-9d60-3106f5b1d025 On November 26, 2015 6:10:43 AM CST, Charles Forsyth wrote: >On 25 November 2015 at 17:10, Vasudev Kamath >wrote: > >> In file included from >> >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/include/l= ib9.h:9:0, >> from 9obj.c:5: >> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and >> _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] >> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use >> _DEFAULT_SOURCE" >> > >Of course, that particular one is just the latest crud from the >constantly >mutating gcc/clang environments. >Why "DEFAULT" if it's not in fact the default? That's actually mostly glibc, the only library on earth that makes me wan= t to bang my head on the floor. I don't remember what GNU extension it is where glibc declares a function= that Posix says should return no value as returning a value. So, when yo= u use it like you're supposed to, you get errors. Then there's also crap like https://github.com/kirbyfan64/qlibc/commit/fb= 550e9f35a20492bcb6a767e9e3d33e30c00c59. It was a PR I opened. strptime wa= s undefined. Depending on the system, you need to define one of: - _USE_XOPEN - _XOPEN_SOURCE - _BSD_SOURCE and now: - _DEFAULT_SOURCE --=20 Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.