#9975: Update GnuTLS and clean up the package
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7.1
Component: packages | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Mariah Lenox
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by leif):
Replying to [comment:9 jhpalmieri]:
{{{
$ gcc -E -dM -x c /dev/null | egrep -i "std|ansi|iso|posix|gnu"
#define __GNUC_PATCHLEVEL__ 0
#define __STDC_HOSTED__ 1
#define __GNUC__ 4
#define __GNUC_MINOR__ 5
#define __GNUC_GNU_INLINE__ 1
}}}
Funny, it does not
{{{
#!C
#define __STDC__ 1
}}}
which might be the cause and a bug in GCC 4.5.0, so you could try adding
`-D__STDC__` to `CFLAGS`.
[[BR]]
Did you try any of the `-std=...`?
You could also try just
{{{
#!sh
gcc -std=gnu99 -E -dM -x c /dev/null | egrep -i "std|ansi|iso|posix|gnu"
}}}
and see if `__STDC__` gets defined then.
[[BR]]
> I could try to search `unistd.h`, but I wouldn't know a suspicious
`#if[def]` if it bit me.
:) You're not familiar with the C/C++ preprocessor?
It just adds a meta-level (all directives on lines starting with `#`) and
has things like `define`, `undef`ine, `if` or
`ifdef`inded-`elif`-`else`-`endif` and the usual expressions in
`if`-conditions, and of course also `include`.
You usually have constructs like
{{{
#!C
#ifdef __IMPORTANT_MACRO_SIGNALING_A_STANDARD__
// define the constants and functions required by that standard
#elif defined(__OTHER_IMPORTANT_STANDARD__) || defined(__SOMETHING_ELSE__)
#include <file_that_accommodates_these.h>
// perhaps other C declarations and macro definitions
#else
// perhaps define things that oppose the standard(s)
#endif
}}}
in C header files like `unistd.h`, located in `/usr/include/` or
`/usr/local/include/`.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9975#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.