<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:dimitry@andric.com" title="Dimitry Andric <dimitry@andric.com>"> <span class="fn">Dimitry Andric</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - strtoll undefined"
href="https://bugs.llvm.org/show_bug.cgi?id=35849">bug 35849</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WONTFIX
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>dimitry@andric.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - strtoll undefined"
href="https://bugs.llvm.org/show_bug.cgi?id=35849#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - strtoll undefined"
href="https://bugs.llvm.org/show_bug.cgi?id=35849">bug 35849</a>
from <span class="vcard"><a class="email" href="mailto:dimitry@andric.com" title="Dimitry Andric <dimitry@andric.com>"> <span class="fn">Dimitry Andric</span></a>
</span></b>
<pre>First, please note that FreeBSD 8.4 is end-of-life, and unsupported. Same for
LLVM 3.5.0.
That said, <a href="https://svnweb.freebsd.org/base?view=revision&revision=297212">https://svnweb.freebsd.org/base?view=revision&revision=297212</a>, which
exposes a number of long long types and functions (among which strtoll), has
never been merged to stable/8. So indeed, under C++ mode, there is no strtoll
in stdlib.h.
As a workaround, you can manually merge this into your stdlib.h:
--- head/include/stdlib.h 2016/03/23 18:21:26 297211
+++ head/include/stdlib.h 2016/03/23 19:17:12 297212
@@ -125,7 +125,7 @@
*
* (The only other extension made by C99 in thie header is _Exit().)
*/
-#if __ISO_C_VISIBLE >= 1999
+#if __ISO_C_VISIBLE >= 1999 || defined(__cplusplus)
#ifdef __LONG_LONG_SUPPORTED
/* LONGLONG */
typedef struct {
Note that CMake is able to find strtoll, because it compiles a small C test
program, and for C strtoll is defined.
In any case, this will not be fixed anymore, either in FreeBSD or LLVM.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>