[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1381257 - sysinfo.c -

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 10 Sep 2012 22:16:26 +0100 (BST)

> On 10.09.2012 22:33, Julian Foad wrote:

>> Brane wrote:
>> [...]
>>
>>> +#if LINUX
>>> +static const char *linux_release_name(apr_pool_t *pool);
>>> +#endif
>> [...]
>>
>> On my Ubuntu GNU/Linux system:
>>
>> subversion/libsvn_subr/sysinfo.c:92:5: "LINUX" is not defined
>> subversion/libsvn_subr/sysinfo.c:116:7: "LINUX" is not defined
>> subversion/libsvn_subr/sysinfo.c:272:5: "LINUX" is not defined
>>
>
> That's extremely strange. It builds on my Ubuntu VM, where -DLINUX=2 is
> in CFLAGS.
> I think I can switch things around so that we don't have to depend on
> that symbol, but I'd be interested to figure out why you don't get the
> symbol.

The string "LINUX" doesn't appear in my subversion WC including build outputs (except for the tests you added), nor anywhere in /usr/include except this one test:

/usr/include/apr-1.0/apr_general.h:#if defined(CRAY) || (defined(__arm) && !defined(LINUX))

"cpp -dM" prints out the preprocessor's predefined macros; it isn't there either:

$ cpp -dM /dev/null | grep LINUX
$ cpp --version
cpp (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

So where does it come from on your system, and what does it mean?

- Julian
Received on 2012-09-10 23:17:02 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.